From: Arnaud Giersch Date: Sun, 11 Mar 2018 21:24:28 +0000 (+0100) Subject: tuto-msg: use old-fashioned suffix rules in Makefile. X-Git-Tag: v3.19~86 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/51bdcb440d8738ac328b8cb422d5d9a122f1381b?ds=sidebyside tuto-msg: use old-fashioned suffix rules in Makefile. Try to be compatible with freebsd's make. --- diff --git a/doc/tuto-msg/Makefile b/doc/tuto-msg/Makefile index 18f9df5355..3ad9e0645f 100644 --- a/doc/tuto-msg/Makefile +++ b/doc/tuto-msg/Makefile @@ -26,9 +26,10 @@ CFLAGS = -std=gnu99 -g -O2 $(WARNINGS) $(EXTRA_CFLAGS) # Use this line to get be # The following are implicit rules, used by default to actually build # the targets for which you listed the dependencies above. +.SUFFIXES: .c # The blanks before the $(CC) must be a Tab char, not spaces -%: %.c - $(CC) -I$(strip $(SIMGRID_INSTALL_PATH))/include -L$(strip $(SIMGRID_INSTALL_PATH))/lib/ $(CFLAGS) $^ -lsimgrid -o $@ +.c: + $(CC) -I$(strip $(SIMGRID_INSTALL_PATH))/include -L$(strip $(SIMGRID_INSTALL_PATH))/lib/ $(CFLAGS) $^ -lsimgrid -o $@ clean: rm -f *.o *~ masterworker masterworker-sol1 masterworker-sol2 masterworker-sol3 masterworker-sol4