X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/e0701bfb3e9047a565191d1e582f7f5d97a79f5f..457cb99f57292bc855e53abcdcb7b12d6681e847:/build/unix/Makefile diff --git a/build/unix/Makefile b/build/unix/Makefile index 3e9f3e7..626d0ce 100644 --- a/build/unix/Makefile +++ b/build/unix/Makefile @@ -58,7 +58,7 @@ PFSOURCE = $(PFBASESOURCE) $(IO_SOURCE) VPATH = .:$(CSRCDIR):$(CSRCDIR)/posix:$(CSRCDIR)/stdio:$(CSRCDIR)/win32_console:$(CSRCDIR)/win32 XCFLAGS = $(CCOPTS) -XCPPFLAGS = -DPF_SUPPORT_FP -D_GNU_SOURCE +XCPPFLAGS = -DPF_SUPPORT_FP -D_DEFAULT_SOURCE -D_GNU_SOURCE XLDFLAGS = $(WIDTHOPT) CPPFLAGS = -I. $(XCPPFLAGS) @@ -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