From: Steinar H. Gunderson Date: Sat, 6 Apr 2013 22:14:30 +0000 (+0200) Subject: Makefile tweaks to deal with the protobuf dependency. X-Git-Tag: 1.0.0~201 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=41b297b59d7d5f700d12b7833423d0f985529524 Makefile tweaks to deal with the protobuf dependency. --- diff --git a/Makefile b/Makefile index 704ee73..257966a 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,9 @@ all: cubemap %.pb.cc %.pb.h : %.proto $(PROTOC) --cpp_out=. $< -%.o: %.cpp +%.o: %.cpp state.pb.h + $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< +%.pb.o: %.pb.cc $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< cubemap: $(OBJS) $(CXX) -o cubemap $(OBJS) $(LDLIBS) @@ -20,5 +22,7 @@ DEPS=$(OBJS:.o=.d) -include $(DEPS) clean: - $(RM) cubemap $(OBJS) $(DEPS) + $(RM) cubemap $(OBJS) $(DEPS) state.pb.h state.pb.cc +.PHONY: clean +.SUFFIXES: