]> git.cworth.org Git - cairo-spline/blob - Makefile
Add cairo-spline demonstration program.
[cairo-spline] / Makefile
1 PROGS=cairo-spline
2
3 # I'd like to put a bunch of compiler-specific warning flags here, but
4 # I don't know a good way to choose the right flags based on the
5 # compiler in use.
6 #
7 # So, for now, if you want more warnings, set them in CFLAGS before
8 # calling make. For example, for gcc:
9 #
10 # CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing" make
11
12 MYCFLAGS=`pkg-config --cflags cairo-xlib`
13 MYLDFLAGS=`pkg-config --libs cairo-xlib`
14
15 all: $(PROGS)
16
17 %.o: %.c
18         $(CC) -c $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} $< -o $@
19
20 %: %.c
21         $(CC) $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} ${MYLDFLAGS} $^ -o $@
22
23 clean:
24         rm -f $(PROGS) *.o