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
$(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.$$@))