fsh: more Makefile hackery
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Oct 2018 20:55:46 +0000 (21:55 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Oct 2018 20:55:46 +0000 (21:55 +0100)
Applications/V7/cmd/sh/Makefile.6502
Applications/V7/cmd/sh/Makefile.6809

index 8c94a90..1e59fd1 100644 (file)
@@ -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
 
index 8d3d119..2677e51 100644 (file)
@@ -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) $^