From a0dfe581d60447126e94ee12f3db1dd86de87755 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 23 May 2011 08:35:44 +0200 Subject: [PATCH] Makefile: add compiler flags to MAKEDEPEND, define MAKEDEPEND.C. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f7e2171..c714785 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,8 @@ LINK.o = $(CXX) $(CXXFLAGS) $(LDFLAGS) $(TARGET_ARCH) LDLIBS := -lsimgrid MAKEDEPEND.FLAGS = $(CPPFLAGS) -MM -MG -MF $@ $< -MAKEDEPEND.CXX = $(CXX) $(MAKEDEPEND.FLAGS) +MAKEDEPEND.C = $(CC) $(CFLAGS) $(MAKEDEPEND.FLAGS) +MAKEDEPEND.CXX = $(CXX) $(CXXFLAGS) $(MAKEDEPEND.FLAGS) SRC.loba := main.cpp \ communicator.cpp \ @@ -73,6 +74,8 @@ realclean: clean $(RM) $(XML_DEV_FILES) $(RM) *~ +.%.d: %.c ; $(MAKEDEPEND.C) + .%.d: %.cpp ; $(MAKEDEPEND.CXX) $(FLAVOURED_LOBA): -- 2.39.5