From 12ff235aa725eaa29f725711ace5bdf6738858dd Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 17 Apr 2011 21:25:52 +0200 Subject: [PATCH 1/2] + --- src/tests/parser/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/parser/Makefile b/src/tests/parser/Makefile index e6cf706..bdbf145 100644 --- a/src/tests/parser/Makefile +++ b/src/tests/parser/Makefile @@ -1,5 +1,5 @@ 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: DIETLIB=/opt/diet/bin/diet make parser 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 2/2] + --- 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)