From 890c2ad78d6ecd2759d4813d2fc484a0aafeaded Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Sun, 17 Apr 2011 14:17:11 +0200 Subject: [PATCH] makefile fixes; gitignore --- src/.gitignore | 3 +++ src/Makefile | 4 ++-- src/tests/Makefile | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/.gitignore diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..b96ae54 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,3 @@ +*.o +*.a +tests/testParser diff --git a/src/Makefile b/src/Makefile index 08a36c7..5695fa1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,8 +8,8 @@ default: @/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc" diet: - /opt/diet/bin/diet ${CC} -static -c -Os $S -DDEBUG - /opt/diet/bin/diet ar rcs libpsyc.a $O + diet ${CC} -static -c -Os $S -DDEBUG -DPSYC_COMPILE_LIBRARY + diet ar rcs libpsyc.a $O lib: $S ${CC} -static -c -g -O0 $S -lc -DDEBUG -DPSYC_COMPILE_LIBRARY diff --git a/src/tests/Makefile b/src/tests/Makefile index 1afe909..bd38e3c 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -6,3 +6,5 @@ works: it: testParser +test: + for f in parser/*txt; do echo -e "\n>> $$f"; ./testParser $$f; done