From: Phil Burk Date: Sun, 13 Sep 2020 20:36:19 +0000 (-0700) Subject: Merge pull request #80 from letoh/use-pattern-rules X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/commitdiff_plain/798a86ce907ac460e8646a2f57697d8b997c35d2?hp=7260a8255869f3c801885a8a74315536f709bae9 Merge pull request #80 from letoh/use-pattern-rules use pattern rules instead of suffix rules in the Makefile --- diff --git a/build/unix/Makefile b/build/unix/Makefile index e80b56d..626d0ce 100644 --- a/build/unix/Makefile +++ b/build/unix/Makefile @@ -73,10 +73,10 @@ LINK = $(CC) $(LDFLAGS) PFOBJS = $(PFSOURCE:.c=.o) PFEMBOBJS = $(PFSOURCE:.c=.eo) -.c.o: $(PFINCLUDES) +%.o: %.c $(PFINCLUDES) $(COMPILE) -c -o $@ $< -.c.eo: $(PFINCLUDES) pfdicdat.h +%.eo: %.c $(PFINCLUDES) pfdicdat.h $(COMPILE) $(EMBCCOPTS) -c -o $@ $< .PHONY: all clean test