From: Alan Cox Date: Sun, 8 Mar 2015 22:05:23 +0000 (+0000) Subject: utils: Allow platform to be passed for special builds X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=259c857ea2e125bd3692ddbcfee91739c2bdc558;p=FUZIX.git utils: Allow platform to be passed for special builds --- diff --git a/Applications/util/Makefile b/Applications/util/Makefile index 0bcabd4d..740a5c21 100644 --- a/Applications/util/Makefile +++ b/Applications/util/Makefile @@ -3,6 +3,8 @@ ASM = sdasz80 AR = sdar LINKER = sdcc FCC = ../../Library/tools/fcc +#PLATFORM = +PLATFORM = -tzx128 PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1` @@ -111,10 +113,10 @@ $(OBJSBAD): $(SRCSBAD) $(CC) $(CC_CRAP) $(@:.rel=.c) .c.rel: - $(FCC) -c $< + $(FCC) $(PLATFORM) -c $< %: %.rel - $(FCC) $< -o $@ + $(FCC) $(PLATFORM) $< -o $@ clean: rm -f $(OBJS) $(APPS) $(SRCS:.c=) core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin