aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-03-04 00:47:23 +0100
committerGravatar jonas <himself@jonasgunz.de> 2019-03-04 00:47:23 +0100
commita94557f5119ca5cac0ecf970b02180152af83f5d (patch)
tree905245f181305d0fc40edd802423294acb5c4686 /Makefile
parentd25296d03fdaeaadd002cd37171ef2b20695cf26 (diff)
downloadtermgl-a94557f5119ca5cac0ecf970b02180152af83f5d.tar.gz
Started collision detection, working progress
Move now triggers CheckCollision for every move action Hit direction detection still missing
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: