CPPFLAGS += $(CHECK_FLAGS)
CFLAGS += -std=c99
-CFLAGS += -fgnu89-inline # workaround simgrid bug
+#CFLAGS += -fgnu89-inline # workaround simgrid bug
CFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)
+#CXXFLAGS += -std=c++0x
CXXFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)
LDFLAGS += -L $(SIMGRID_INSTALL_DIR)/lib
SRC.loba := main.cpp \
communicator.cpp \
cost_func.cpp \
+ deployment.cpp \
hostdata.cpp \
$(wildcard loba_*.cpp) \
misc.cpp \
$(shell $(SETLOCALVERSION))
-.PHONY: all depend clean
+.PHONY: all clean realclean
all: $(TARGETS)
version.o: $(patsubst %.cpp,%.o,$(filter-out version.cpp, $(SRC.loba)))
+ifneq ($(MAKECMDGOALS),clean)
+ifneq ($(MAKECMDGOALS),realclean)
-include $(DEP)
+endif
+endif
.SECONDEXPANSION:
$(TARGETS): $$(patsubst %.cpp,%.o,$$(SRC.$$@))