From 41b297b59d7d5f700d12b7833423d0f985529524 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 7 Apr 2013 00:14:30 +0200 Subject: [PATCH] Makefile tweaks to deal with the protobuf dependency. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: -- 2.39.2