From e3192d3c12cfaab84a34e5764bdc6524030f8399 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 17 Apr 2011 21:46:00 +0200 Subject: [PATCH] + --- src/tests/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/tests/Makefile b/src/tests/Makefile index bd38e3c..3ccdd4a 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -1,10 +1,16 @@ -CFLAGS=-I.. -DDEBUG -LDFLAGS=-L.. -lpsyc +CFLAGS=-I../../include -DDEBUG -g -O0 +LDFLAGS=-L.. +LOADLIBES=-lpsyc +TARGETS=testParser testMatch -works: - cc -I../../include -g -O0 -DDEBUG -L.. parser/testParser.c -o testParser -lpsyc +all: $(TARGETS) -it: testParser +# special case because not in the same directory +testParser: + ${CC} ${CFLAGS} ${LDFLAGS} parser/testParser.c ${LOADLIBES} -o testParser test: for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done + +clean: + rm $(TARGETS)