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
7 # So, for now, if you want more warnings, set them in CFLAGS before
8 # calling make. For example, for gcc:
10 # CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing" make
12 MYCFLAGS=`pkg-config --cflags cairo-xlib`
13 MYLDFLAGS=`pkg-config --libs cairo-xlib`
18 $(CC) -c $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} $< -o $@
21 $(CC) $(CFLAGS) $(CPPFLAGS) ${MYCFLAGS} ${MYLDFLAGS} $^ -o $@