]> AND Private Git Repository - loba.git/blobdiff - Makefile
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Makefile: improve rules for target "full".
[loba.git] / Makefile
index a80f02591c031fd33f698180d554b7d246f10c03..8a6bff430f18e8d85ecdee2bd9ad1e7787ae5961 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,16 @@ DEBUG_FLAGS += -g
 #DEBUG_FLAGS += -pg
 CHECK_FLAGS += -Wall -Wextra
 
 #DEBUG_FLAGS += -pg
 CHECK_FLAGS += -Wall -Wextra
 
+CC := gcc
 CXX := g++
 
 CPPFLAGS += -I $(SIMGRID_INSTALL_DIR)/include
 CPPFLAGS += $(CHECK_FLAGS)
 
 CXX := g++
 
 CPPFLAGS += -I $(SIMGRID_INSTALL_DIR)/include
 CPPFLAGS += $(CHECK_FLAGS)
 
+#CFLAGS += -std=c99
+#CFLAGS += -fgnu89-inline      # workaround simgrid bug
+CFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)
+
 #CXXFLAGS += -std=c++0x
 CXXFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)
 
 #CXXFLAGS += -std=c++0x
 CXXFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)
 
@@ -51,8 +56,11 @@ TARGETS := $(DEFAULT_TARGETS)        \
 all: $(DEFAULT_TARGETS)
 
 full:
 all: $(DEFAULT_TARGETS)
 
 full:
-       $(MAKE) $(FLAVOURED_LOBA)
-       $(MAKE) $(TARGETS)
+       @for target in $(FLAVOURED_LOBA); do    \
+               echo $(MAKE) "$$target";        \
+               $(MAKE) "$$target";             \
+       done
+       $(MAKE) $(DEFAULT_TARGETS)
 
 clean:
        $(RM) core core.[0-9]* vgcore.[0-9]*
 
 clean:
        $(RM) core core.[0-9]* vgcore.[0-9]*