projects
/
pforth
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7260a82
)
Merge pull request #80 from letoh/use-pattern-rules
author
Phil Burk
<philburk@mobileer.com>
Sun, 13 Sep 2020 20:36:19 +0000
(13:36 -0700)
committer
GitHub
<noreply@github.com>
Sun, 13 Sep 2020 20:36:19 +0000
(13:36 -0700)
use pattern rules instead of suffix rules in the Makefile
build/unix/Makefile
patch
|
blob
|
blame
|
history
diff --git
a/build/unix/Makefile
b/build/unix/Makefile
index
e80b56d
..
626d0ce
100644
(file)
--- a/
build/unix/Makefile
+++ b/
build/unix/Makefile
@@
-73,10
+73,10
@@
LINK = $(CC) $(LDFLAGS)
PFOBJS = $(PFSOURCE:.c=.o)
PFEMBOBJS = $(PFSOURCE:.c=.eo)
PFOBJS = $(PFSOURCE:.c=.o)
PFEMBOBJS = $(PFSOURCE:.c=.eo)
-
.c.o:
$(PFINCLUDES)
+
%.o: %.c
$(PFINCLUDES)
$(COMPILE) -c -o $@ $<
$(COMPILE) -c -o $@ $<
-
.c.eo:
$(PFINCLUDES) pfdicdat.h
+
%.eo: %.c
$(PFINCLUDES) pfdicdat.h
$(COMPILE) $(EMBCCOPTS) -c -o $@ $<
.PHONY: all clean test
$(COMPILE) $(EMBCCOPTS) -c -o $@ $<
.PHONY: all clean test