1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

Merge branch 'master' of supraverse.net:libpsyc

This commit is contained in:
Marenz 2011-04-18 10:09:57 +02:00
commit a97063210d
2 changed files with 12 additions and 6 deletions

View file

@ -1,10 +1,16 @@
CFLAGS=-I.. -DDEBUG CFLAGS=-I../../include -DDEBUG -g -O0
LDFLAGS=-L.. -lpsyc LDFLAGS=-L..
LOADLIBES=-lpsyc
TARGETS=testParser testMatch
works: all: $(TARGETS)
cc -I../../include -g -O0 -DDEBUG -L.. parser/testParser.c -o testParser -lpsyc
it: testParser # special case because not in the same directory
testParser:
${CC} ${CFLAGS} ${LDFLAGS} parser/testParser.c ${LOADLIBES} -o testParser
test: test:
for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done
clean:
rm $(TARGETS)

View file

@ -1,5 +1,5 @@
parser: parser:
$(DIETLIB) cc -L../.. -I../.. -DDEBUG -lpsyc testParser.c -lpsyc -o testParser $(DIETLIB) cc -L../.. -I../../../include -DDEBUG -lpsyc testParser.c -lpsyc -o testParser
diet: diet:
DIETLIB=/opt/diet/bin/diet make parser DIETLIB=/opt/diet/bin/diet make parser