summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 14a7242..ee0f6d2 100644
--- a/Makefile
+++ b/Makefile
@@ -37,9 +37,12 @@ clean:
rm -df $(OBJ) test.o version.h
rm -Rdf $(BUILDDIR)/lib $(BUILDDIR)/inc $(BUILDDIR)/test doc/
-run: test
+run: gentest
./$(BUILDDIR)/test/test
+memleak: gentest
+ valgrind ./$(BUILDDIR)/test/test
+
genversion:
@echo Building Version
@echo "//Generated by MAKEFILE. DO NOT Edit." > version.h
@@ -50,9 +53,11 @@ genversion:
@echo "#define DATE \"`date +'%d.%m.20%y'`\"" >> version.h
@echo "#define TIME \"`date +'%H:%M:%S'`\"" >> version.h
-test: genversion test.o $(OBJ)
+gentest: genversion test.o $(OBJ)
mkdir -p $(BUILDDIR)/test
$(CC) $(DEBUGFLAGS) -o $(BUILDDIR)/test/test test.o $(OBJ) $(LDFLAGS)
+
+test: gentest
./$(BUILDDIR)/test/test test
doc: