blob: c9b2741eb391e9d86f31d44e9e0e67d27aff178c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
BENCHMARKS= \
over \
over-xlib \
over-clipped \
over-clipped-xlib \
add \
add-xlib \
upsample-bilinear \
upsample-bilinear-xlib \
upsample-nearest \
upsample-nearest-xlib \
downsample-bilinear \
downsample-bilinear-xlib \
downsample-nearest \
downsample-nearest-xlib \
lines \
lines-xlib \
curves \
curves-xlib \
gradients-linear \
gradients-linear-xlib \
multiple-clip-rectangles \
multiple-clip-rectangles-xlib \
solidtext \
solidtext-xlib \
textpath \
textpath-xlib \
texturedtext \
texturedtext-xlib \
remenic-gradient
MYCFLAGS=-Wall `pkg-config --cflags cairo libpng12` -I/usr/X11R6/include
MYLDFLAGS=`pkg-config --libs cairo libpng12` -L/usr/X11R6/lib
MYOBJS=tools.o
all: $(MYOBJS) $(BENCHMARKS)
memcpy-helper: memcpy-helper.c
$(CC) -Wall -fPIC -shared -o memcpy-helper.so memcpy-helper.c -ldl
%.o: %.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} $< -o $@
%-xlib: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} ${MYLDFLAGS} ${MYOBJS} $^ -o $@
%: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} ${MYLDFLAGS} ${MYOBJS} $^ -o $@
clean:
rm -f ${BENCHMARKS} *.o *.so *-out.png
|