From 3a4b5d8abb88db04ca454b4f718930fda20c1759 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)