From a94557f5119ca5cac0ecf970b02180152af83f5d Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 4 Mar 2019 00:47:23 +0100 Subject: Started collision detection, working progress Move now triggers CheckCollision for every move action Hit direction detection still missing --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3