diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |