aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-05-11 21:24:57 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-05-11 21:24:57 +0200
commitce356164bac0f739fea97b8bee61c066b9f2ae87 (patch)
treebf73239c76e0288de9378f06c322766889ef1fb9 /Makefile
parentbfd76241386fe54c4394171c861f4b1676b5bf32 (diff)
Add <<debug<< log, clean up some code and let find return a list instead of 1 element
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index eb34638..381b573 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CFLAGS=-Wall -O2
CPPFLAGS=-Wall -O2 -std=c++11
BINARIES=engine
-OBJS=enginedata.o
+OBJS=enginedata.o util.o
DEPFILES=$(OBJS:.o=.d)
@@ -19,12 +19,12 @@ clean:
-include $(OBJS:.o=.d)
-engine: engine.cpp enginedata.o
+engine: engine.cpp enginedata.o util.o
$(CXX) $(CPPFLAGS) -o $@ $^
-#enginedata: enginedata.cpp enginedata.h
-# $(CXX) $(CPPFLAGS) -o %@ enginedata.cpp
+enginedata: enginedata.cpp enginedata.h util.o
+ $(CXX) $(CPPFLAGS) -o %@ enginedata.cpp
-%.o: %.cpp
+%.o: %.cpp %.h
$(CXX) $(CPPFLAGS) $*.cpp -c -o $*.o
$(CXX) -MM $(CPPFLAGS) $*.cpp > $*.d