Mercurial > MadButterfly
changeset 4:399517bf65dc
Add rules for X_main to Makefile
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 25 Jul 2008 11:42:37 +0800 |
parents | 164162781a7a |
children | 9c331ec9e210 |
files | src/Makefile |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"; \