aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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