2011-04-17 19:46:00 +00:00
|
|
|
CFLAGS=-I../../include -DDEBUG -g -O0
|
|
|
|
LDFLAGS=-L..
|
|
|
|
LOADLIBES=-lpsyc
|
|
|
|
TARGETS=testParser testMatch
|
2011-02-18 13:03:45 +00:00
|
|
|
|
2011-04-17 19:46:00 +00:00
|
|
|
all: $(TARGETS)
|
2011-02-18 13:03:45 +00:00
|
|
|
|
2011-04-17 19:46:00 +00:00
|
|
|
# special case because not in the same directory
|
|
|
|
testParser:
|
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} parser/testParser.c ${LOADLIBES} -o testParser
|
2011-02-18 13:03:45 +00:00
|
|
|
|
2011-04-17 12:17:11 +00:00
|
|
|
test:
|
|
|
|
for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done
|
2011-04-17 19:46:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(TARGETS)
|