-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
PLATFORM =
#PLATFORM = -tzx128
-LINKER = sdcc
-FCC = ../../../../Library/tools/fcc -O2 -DTARGET_Z80
+FCC = ../../../../Library/tools/fcc -m($USERCPU) -O2 -DTARGET_Z80
PLATFORM =
#PLATFORM = -tzx128
.SUFFIXES: .c .rel
-CC = fcc
+CC = fcc -m$(USERCPU)
CFLAGS = -DTINY
COPT = -O2
-CC = fcc
-ASM = sdasz80
-LINKER = ../../../Library/tools/fcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
PLATFORM =
#PLATFORM = -tzx128
-LINKER = sdcc
-FCC = ../../../../Library/tools/fcc -O2 -fsigned-char
+FCC = ../../../../Library/tools/fcc -m $(USERCPU) -O2 -fsigned-char
PLATFORM =
#PLATFORM = -tzx128
-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../../Library/tools/fcc
+FCC = ../../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
PLATFORM =
#PLATFORM = -tzx128
.SUFFIXES: .c .rel
PLATFORM = 6809
-CC = fcc
+CC = fcc -m$(USERCPU)
CFLAGS = -c
COPT = -O2
# do endian swapping if building on PC for 6809
#
-FCC = fcc
+FCC = fcc -m$(USERCPU)
FCCOPTS = -O2 --nostdio
PLATFORM =
.SUFFIXES: .c .rel
-FCC = ../../Library/tools/fcc
+FCC = ../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
SRCS = flashrom.c
OBJS = $(SRCS:.c=.rel)
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
.SUFFIXES: .c .rel
-CC = fcc
+CC = fcc -m$(USERCPU)
CFLAGS = -c -O2
DEFS =
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 $@ $^
-CC = sdcc
-ASM = sdasz80
-AR = sdar
-LINKER = sdcc
-FCC = ../../Library/tools/fcc
+FCC = ../../Library/tools/fcc -m$(USERCPU)
FCCOPTS = -O2
PLATFORM =
#PLATFORM = -tzx128