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