From: Arnaud Giersch Date: Mon, 23 May 2011 06:35:44 +0000 (+0200) Subject: Makefile: add compiler flags to MAKEDEPEND, define MAKEDEPEND.C. X-Git-Tag: v0.1~62^2~14 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/a0dfe581d60447126e94ee12f3db1dd86de87755?ds=sidebyside Makefile: add compiler flags to MAKEDEPEND, define MAKEDEPEND.C. --- 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):