From 51bdcb440d8738ac328b8cb422d5d9a122f1381b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 11 Mar 2018 22:24:28 +0100 Subject: [PATCH 1/1] tuto-msg: use old-fashioned suffix rules in Makefile. Try to be compatible with freebsd's make. --- doc/tuto-msg/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.20.1