From: Alan Cox Date: Sun, 7 Oct 2018 20:55:46 +0000 (+0100) Subject: fsh: more Makefile hackery X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=091e5df404f879c263029cb4128aeaa945d97058;p=FUZIX.git fsh: more Makefile hackery --- diff --git a/Applications/V7/cmd/sh/Makefile.6502 b/Applications/V7/cmd/sh/Makefile.6502 index 8c94a903..1e59fd12 100644 --- a/Applications/V7/cmd/sh/Makefile.6502 +++ b/Applications/V7/cmd/sh/Makefile.6502 @@ -33,6 +33,13 @@ $(OBJS): $(INCS) $(FOBJS): $(INCS) +$(OBJS): %.o : %.c + $(CC) -c $(CFLAGS) $(COPT) $< + +$(FOBJS): fshbuild/%.o: %.c + $(CC) -c $(CFLAGS) -c -DBUILD_FSH $< -o $@ + + clean: rm -f $(OBJS) fsh sh *~ core diff --git a/Applications/V7/cmd/sh/Makefile.6809 b/Applications/V7/cmd/sh/Makefile.6809 index 8d3d1196..2677e511 100644 --- a/Applications/V7/cmd/sh/Makefile.6809 +++ b/Applications/V7/cmd/sh/Makefile.6809 @@ -34,7 +34,7 @@ $(OBJS): %.o : %.c $(CC) -c $(CFLAGS) $(COPT) $< $(FOBJS): fshbuild/%.o: %.c - $(CC) $(Z80_PLATFORM) -c -DBUILD_FSH $< -o $@ + $(CC) -c $(CFLAGS) $(COPT) -DBUILD_FSH $< -o $@ sh: $(OBJS) $(CRT0) $(LINKER) -o $@ $(LINKER_OPT) $^