z80: Add support for Rabbit as well as Z80 processors
authorAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 22:06:47 +0000 (23:06 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 29 Apr 2018 22:06:47 +0000 (23:06 +0100)
13 files changed:
Applications/MWC/cmd/Makefile.z80
Applications/MWC/cmd/asz80/Makefile.z80
Applications/SmallC/Makefile.z80
Applications/V7/cmd/Makefile.z80
Applications/V7/cmd/sh/Makefile.z80
Applications/V7/games/Makefile.z80
Applications/as09/Makefile.z80
Applications/cave/Makefile.z80
Applications/flashrom/Makefile.z80
Applications/games/Makefile.z80
Applications/ld09/Makefile.z80
Applications/netd/Makefile.z80
Applications/util/Makefile.z80

index 206cf4d..0398e4a 100644 (file)
@@ -1,8 +1,4 @@
-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
 FCCOPTS = -O2
 PLATFORM =
 #PLATFORM = -tzx128
index 7dd39d1..b3c7354 100644 (file)
@@ -1,5 +1,4 @@
-LINKER = sdcc
-FCC = ../../../../Library/tools/fcc -O2 -DTARGET_Z80
+FCC = ../../../../Library/tools/fcc -m($USERCPU) -O2 -DTARGET_Z80
 PLATFORM =
 #PLATFORM = -tzx128
 
index aa79af9..fcde409 100644 (file)
@@ -1,6 +1,6 @@
 .SUFFIXES: .c .rel
 
-CC = fcc
+CC = fcc -m$(USERCPU)
 CFLAGS = -DTINY
 COPT = -O2
 
index e19e33e..05a7d3c 100644 (file)
@@ -1,7 +1,4 @@
-CC = fcc
-ASM = sdasz80
-LINKER = ../../../Library/tools/fcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
 FCCOPTS = -O2
 PLATFORM =
 #PLATFORM = -tzx128
index 7e7973b..2f403b5 100644 (file)
@@ -1,5 +1,4 @@
-LINKER = sdcc
-FCC = ../../../../Library/tools/fcc -O2 -fsigned-char
+FCC = ../../../../Library/tools/fcc -m $(USERCPU) -O2 -fsigned-char
 PLATFORM =
 #PLATFORM = -tzx128
 
index fa19f1c..1d6d072 100644 (file)
@@ -1,8 +1,4 @@
-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
 FCCOPTS = -O2
 PLATFORM =
 #PLATFORM = -tzx128
index 0f11185..5efd6ad 100644 (file)
@@ -1,7 +1,7 @@
 .SUFFIXES: .c .rel
 
 PLATFORM = 6809
-CC = fcc
+CC = fcc -m$(USERCPU)
 CFLAGS = -c
 COPT = -O2
 
index 2527e85..a971616 100644 (file)
@@ -3,7 +3,7 @@
 #      do endian swapping if building on PC for 6809
 #
 
-FCC = fcc
+FCC = fcc -m$(USERCPU)
 FCCOPTS = -O2 --nostdio
 PLATFORM =
 
index 69f02ff..788ef16 100644 (file)
@@ -1,6 +1,6 @@
 .SUFFIXES: .c .rel
 
-FCC = ../../Library/tools/fcc 
+FCC = ../../Library/tools/fcc -m$(USERCPU)
 FCCOPTS = -O2
 SRCS  = flashrom.c
 OBJS = $(SRCS:.c=.rel)
index d47f5ef..c62c0aa 100644 (file)
@@ -1,15 +1,12 @@
 CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../Library/tools/fcc -O2
+FCC = ../../Library/tools/fcc -O2 -m$(USERCPU)
 PLATFORM =
 #PLATFORM = -tzx128
 
 PROGLOAD=`(cat ../../Kernel/platform/config.h; echo PROGLOAD) | cpp -E | tail -n1`
 
 # Used for programs that make sdcc go boom or take hours
-CC_CRAP = -mz80 --std-c99 -c --opt-code-size --max-allocs-per-node 1000 -I../../Library/include
+CC_CRAP = -m$(USERCPU) --std-c99 -c --opt-code-size --max-allocs-per-node 1000 -I../../Library/include
 ASM_OPT = -l -o -s
 LINKER_OPT = -mz80 --nostdlib --no-std-crt0 --code-loc $(PROGLOAD) --data-loc  0
 BINMAN = ../../Library/tools/binman
index f859d4d..56ee8d1 100644 (file)
@@ -1,6 +1,6 @@
 .SUFFIXES: .c .rel
 
-CC = fcc
+CC = fcc -m$(USERCPU)
 CFLAGS = -c -O2
 
 DEFS   =
index 7c2da1e..02699e9 100644 (file)
@@ -13,13 +13,13 @@ OPTS = -DNETD_LITTLE_ENDIAN
 all: $(APPS)
 
 netd-slip: $(OBJS)
-       fcc -o netd netd.rel uip.rel uiplib.rel timer.rel clock-arch.rel \
+       fcc -m$(USERCPU) -o netd netd.rel uip.rel uiplib.rel timer.rel clock-arch.rel \
               uip_arp.rel slip.rel
 
 $(OBJS): %.rel: %.c
 
 .c.rel:
-       fcc $(PLATFORM) $(OPTS) -c $<
+       fcc -m$(USERCPU) $(PLATFORM) $(OPTS) -c $<
 
 telnet:        telnet.rel gethostbyname.rel
        fcc -o $@ $^
index 481772b..bf8adf4 100644 (file)
@@ -1,8 +1,4 @@
-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../Library/tools/fcc
+FCC = ../../Library/tools/fcc -m$(USERCPU)
 FCCOPTS = -O2
 PLATFORM =
 #PLATFORM = -tzx128