Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a simple test program for SimDag.
[simgrid.git] / testsuite / simdag / Makefile
1 # Temporary Makefile for SimDag testing
2
3 INSTALL_PATH = $(HOME)
4 CC = gcc
5 PEDANTIC_PARANOID_FREAK =       -O0 -Wshadow -Wcast-align \
6                                 -Waggregate-return -Wmissing-prototypes -Wmissing-declarations \
7                                 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
8                                 -Wmissing-noreturn -Wredundant-decls -Wnested-externs \
9                                 -Wpointer-arith -Wwrite-strings -finline-functions
10 REASONABLY_CAREFUL_DUDE =       -Wall
11 NO_PRAYER_FOR_THE_WICKED =      -w -O2 
12 WARNINGS =                      $(REASONABLY_CAREFUL_DUDE)
13 CFLAGS = -g $(WARNINGS)
14
15 INCLUDES = -I../../include -I../../src/include
16 DEFS = -L$(INSTALL_PATH)/lib
17 LIBS = -lm -lsimgrid
18
19 all: sd_test
20 sd_test: sd_test.o ../../src/simdag/global.o  ../../src/simdag/link.o  ../../src/simdag/task.o  ../../src/simdag/workstation.o
21
22 %: %.o
23         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS) $(LDADD) -o $@
24
25 %.o: %.c
26         $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $<
27
28 clean:
29         rm -f *.o *~ ../../src/simdag/*.o ../../src/simdag/*.~
30 .SUFFIXES:
31 .PHONY : clean