.SUFFIXES: .c .rel
PLATFORM = 6809
-CC = fcc -m$(USERCPU)
+CC = fcc -m$(USERCPU) $(Z80_PLATFORM)
CFLAGS = -c
COPT = -O2
FCC = fcc -m$(USERCPU)
FCCOPTS = -O2 --nostdio
-PLATFORM =
+Z80_PLATFORM =
SRC = advent.c adventdb.c database.c english.c itverb.c lib.c saveadv.c \
turn.c verb.c
cc advgen.c -o ./advgen
.c.rel:
- $(FCC) $(PLATFORM) $(FCCOPTS) -c $<
+ $(FCC) $(Z80_PLATFORM) $(FCCOPTS) -c $<
advent: $(OBJ)
- $(FCC) $(PLATFORM) $(FCCOPTS) -o $@ $(OBJ)
+ $(FCC) $(Z80_PLATFORM) $(FCCOPTS) -o $@ $(OBJ)
clean:
rm -f advent advent.db advgen *.rel *.asm *.lst core *.sym *.map *.noi *.lk *.ihx *.tmp *.bin
#
+# We can't build this for platforms other than 0 based so don't bother
+# with Z80_PLATFORM
#
BASE=49152
#
-CC = sdcc
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
ASM_OPT = -l -o -s
LINKER_OPT = -mz80 --nostdlib --no-std-crt0 --code-loc $(PROGLOAD) --data-loc 0
BINMAN = ../../Library/tools/binman
$(OBJS): %.rel: %.c
.c.rel:
- $(FCC) $(PLATFORM) -c $<
+ $(FCC) $(Z80_PLATFORM) -c $<
%: %.rel
- $(FCC) $(PLATFORM) $(LIBS) $< -o $@
+ $(FCC) $(Z80_PLATFORM) $(LIBS) $< -o $@
sizes: $(APPS)
ls -l $(APPS) >size.report
.SUFFIXES: .c .rel
FCC = ../../Library/tools/fcc -m$(USERCPU)
-FCCOPTS = -O2
+FCCOPTS = -O2 $(Z80_PLATFORM)
SRCS = flashrom.c
OBJS = $(SRCS:.c=.rel)
APPS = $(OBJS:.rel=)
.SUFFIXES: .c .rel
-CC = fcc -m$(USERCPU)
+CC = fcc -m$(USERCPU) $(Z80_PLATFORM)
CFLAGS = -c -O2
DEFS =
-CC = fcc -m $(USERCPU)
+CC = fcc -m $(USERCPU) $(Z80_PLATFORM)
.SUFFIXES: .c -vt52.rel -ansi.rel -termcap.rel