X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3cbdff2439bf851c8bfe40bb452dc3a6f702424d..3ac9e81ace9b9a129314e7e5e489dcdf583547da:/testsuite/simdag/Makefile diff --git a/testsuite/simdag/Makefile b/testsuite/simdag/Makefile new file mode 100644 index 0000000000..4dd24071a5 --- /dev/null +++ b/testsuite/simdag/Makefile @@ -0,0 +1,31 @@ +# Temporary Makefile for SimDag testing + +INSTALL_PATH = $(HOME) +CC = gcc +PEDANTIC_PARANOID_FREAK = -O0 -Wshadow -Wcast-align \ + -Waggregate-return -Wmissing-prototypes -Wmissing-declarations \ + -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \ + -Wmissing-noreturn -Wredundant-decls -Wnested-externs \ + -Wpointer-arith -Wwrite-strings -finline-functions +REASONABLY_CAREFUL_DUDE = -Wall +NO_PRAYER_FOR_THE_WICKED = -w -O2 +WARNINGS = $(REASONABLY_CAREFUL_DUDE) +CFLAGS = -g $(WARNINGS) + +INCLUDES = -I../../include -I../../src/include +DEFS = -L$(INSTALL_PATH)/lib +LIBS = -lm -lsimgrid + +all: sd_test +sd_test: sd_test.o ../../src/simdag/global.o ../../src/simdag/link.o ../../src/simdag/task.o ../../src/simdag/workstation.o + +%: %.o + $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS) $(LDADD) -o $@ + +%.o: %.c + $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $< + +clean: + rm -f *.o *~ ../../src/simdag/*.o ../../src/simdag/*.~ +.SUFFIXES: +.PHONY : clean