utils: Allow platform to be passed for special builds
authorAlan Cox <alan@linux.intel.com>
Sun, 8 Mar 2015 22:05:23 +0000 (22:05 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 8 Mar 2015 22:05:23 +0000 (22:05 +0000)
Applications/util/Makefile

index 0bcabd4..740a5c2 100644 (file)
@@ -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