CFLAGS = -g
|
|
CPPFLAGS = -I/opt/local/include
|
|
LDFLAGS = -L/opt/local/lib
|
|
LDLIBS = -lgc -lm
|
|
|
|
all : main
|
|
|
|
%.c : %.leg
|
|
leg -o $@ $<
|
|
|
|
% : %.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
|
|
|
|
test : main
|
|
./main -vv test.txt
|
|
|
|
demo : main
|
|
for i in demofiles/*.c; do echo $$i; ./main $$i; done
|
|
|
|
demov : main
|
|
for i in demofiles/*.c; do echo $$i; ./main -vv $$i; done
|
|
|
|
spotless : clean
|
|
rm -rf *~ *.dSYM
|
|
|
|
clean : .FORCE
|
|
rm -f main
|
|
|
|
.FORCE :
|