X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/431784fbebda861a137730be550d1981776e686d..a0dfe581d60447126e94ee12f3db1dd86de87755:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 751418c..c714785 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #SIMGRID_INSTALL_DIR ?= $(PWD)/simgrid-stable SIMGRID_INSTALL_DIR ?= $(PWD)/simgrid-dev -OPTIM_FLAGS += -O3 +OPTIM_FLAGS += -pipe -O3 DEBUG_FLAGS += -g #DEBUG_FLAGS += -pg CHECK_FLAGS += -Wall -Wextra @@ -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):