-SIMGRID_INSTALL_DIR := ./simgrid-3.5-install
-#SIMGRID_INSTALL_DIR := ../simgrid-git-install
+SIMGRID_INSTALL_DIR := ./simgrid-stable
+#SIMGRID_INSTALL_DIR := ./simgrid-dev
OPTIM_FLAGS += -O3
DEBUG_FLAGS += -g
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 \
neighbor.cpp \
options.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.$$@))