1 # This Makefile is specifically tailored for the binaries of this tutorial.
3 # For your own project, you should use the one provided at
4 # http://simgrid.gforge.inria.fr/simgrid/latest/doc/install_yours.html
7 SIMGRID_INSTALL_PATH = ../.. # Where you installed simgrid
8 CC = gcc # Your compiler (on Mac, use clang instead)
10 # No change needed bellow for this tutorial.
11 ############################################################################
14 masterworker: masterworker.o
16 WARNING = -Wshadow -Wcast-align -Waggregate-return -Wmissing-prototypes \
17 -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes \
18 -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls \
19 -Wnested-externs -Wpointer-arith -Wwrite-strings
20 WARNING += -Werror # Comment that line to not be in paranoid mode
22 # CFLAGS = -std=gnu99 -g -O0 $(WARNINGS) # Use this line to make debugging easier
23 CFLAGS = -std=gnu99 -g -O2 $(WARNINGS) # Use this line to get better performance
25 # No change should be mandated past that line
26 #############################################
27 # The following are implicit rules, used by default to actually build
28 # the targets for which you listed the dependencies above.
30 # The blanks before the $(CC) must be a Tab char, not spaces
32 $(CC) -L$(strip $(SIMGRID_INSTALL_PATH))/lib/ $(CFLAGS) $^ -lsimgrid -o $@
34 $(CC) -I$(strip $(SIMGRID_INSTALL_PATH))/include $(CFLAGS) -c -o $@ $<
36 $(CC) -I$(strip $(SIMGRID_INSTALL_PATH))/include -L$(strip $(SIMGRID_INSTALL_PATH))/lib/ $(CFLAGS) $^ -lsimgrid -o $@
39 rm -f *.o *~ masterworker