# HG changeset patch # User Thinker K.F. Li # Date 1216957357 -28800 # Node ID 399517bf65dcbdaca12f199c62522e9df50788f4 # Parent 164162781a7a95b4aab7da8c6e30fb90ece82637 Add rules for X_main to Makefile diff -r 164162781a7a -r 399517bf65dc src/Makefile --- a/src/Makefile Fri Jul 25 10:09:53 2008 +0800 +++ b/src/Makefile Fri Jul 25 11:42:37 2008 +0800 @@ -1,7 +1,7 @@ SRCS = coord.c TESTCASE_OBJS = ${SRCS:C/(.*)\.c/testcase-\1.o/g} CFLAGS = -I/usr/local/include -BINS = testcase +BINS = testcase X_main all: $(BINS) @@ -16,6 +16,12 @@ testcase.o: testcase.c $(CC) $(CFLAGS) -c $(.ALLSRC) +X_main: X_main.o + $(CC) $(CFALGS) `pkg-config --libs cairo` -o $@ $(.ALLSRC) + +X_main.o: X_main.c + $(CC) $(CFLAGS) `pkg-config --cflags cairo` -c $(.ALLSRC) + clean: for i in *.o *~ *.core $(BINS); do \ echo "delete $$i"; \