Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yet another attempt at testing the tuto on jenkins
[simgrid.git] / doc / tuto-msg / Makefile
index 01981ad..147e42f 100644 (file)
@@ -4,7 +4,7 @@
 # http://simgrid.gforge.inria.fr/simgrid/latest/doc/install_yours.html
 
 # Some configuration
-SIMGRID_INSTALL_PATH = ../.. # Where you installed simgrid 
+SIMGRID_INSTALL_PATH ?= ../.. # Where you installed simgrid 
 CC = gcc                            # Your compiler (on Mac, use clang instead)
 
 # No change needed bellow for this tutorial.
@@ -19,8 +19,8 @@ WARNING = -Wshadow -Wcast-align -Waggregate-return -Wmissing-prototypes \
          -Wnested-externs -Wpointer-arith -Wwrite-strings
 WARNING += -Werror # Comment that line to not be in paranoid mode
 
-# CFLAGS = -g -O0 $(WARNINGS) # Use this line to make debugging easier
-CFLAGS = -g -O2 $(WARNINGS) # Use this line to get better performance
+# CFLAGS = -std=gnu99 -g -O0 $(WARNINGS) # Use this line to make debugging easier
+CFLAGS = -std=gnu99 -g -O2 $(WARNINGS) # Use this line to get better performance
 
 # No change should be mandated past that line
 #############################################
@@ -36,6 +36,6 @@ CFLAGS = -g -O2 $(WARNINGS) # Use this line to get better performance
        $(CC) -I$(strip $(SIMGRID_INSTALL_PATH))/include -L$(strip $(SIMGRID_INSTALL_PATH))/lib/  $(CFLAGS) $^ -lsimgrid -o $@ 
 
 clean:
-       rm -f *.o *~ masterworker
+       rm -f *.o *~ masterworker masterworker-sol1 masterworker-sol2 masterworker-sol3 masterworker-sol4
 .PHONY: clean