Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups (among which example simplification)
[simgrid.git] / examples / msg / properties / Makefile
1 all: msg_prop 
2 masterslave: msg_prop.o
3
4 INSTALL_PATH = $$HOME
5 CC = gcc
6 PEDANTIC_PARANOID_FREAK =       -O0 -Wshadow -Wcast-align \
7                                 -Waggregate-return -Wmissing-prototypes -Wmissing-declarations \
8                                 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
9                                 -Wmissing-noreturn -Wredundant-decls -Wnested-externs \
10                                 -Wpointer-arith -Wwrite-strings -finline-functions
11 REASONABLY_CAREFUL_DUDE =       -Wall
12 NO_PRAYER_FOR_THE_WICKED =      -w -O2 
13 WARNINGS =                      $(REASONABLY_CAREFUL_DUDE)
14 CFLAGS = -g $(WARNINGS)
15
16 INCLUDES = -I$(INSTALL_PATH)/include
17 DEFS = -L$(INSTALL_PATH)/lib/
18 LDADD = -lm -lsimgrid 
19 LIBS = 
20
21 %: %.o
22         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS) $(LDADD) -o $@ 
23
24 %.o: %.c
25         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $<
26
27 clean:
28         rm -f $(BIN_FILES) *.o *~
29 .SUFFIXES:
30 .PHONY : clean