1 # Port specification for the z80 port running ontop of the Java based
2 # 'ConsoleZ80' emulator.
4 RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
6 SDCCFLAGS +=-mz80 --lesspedantic --profile -DREENTRANT=
10 # Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
11 EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
13 # Rule to generate a Emulator .bin file from the .ihx linker output.
15 $(SDCC_DIR)/bin/makebin -s 32768 < $< > $@
17 # Rule to link into .ihx
19 $(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
22 $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
25 $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
28 $(SDCC) $(SDCCFLAGS) -c $<
30 fwk/lib/testfwk$(OBJEXT): fwk/lib/testfwk.c
31 $(SDCC) $(SDCCFLAGS) -c $<
33 # PENDING: Path to sdcc-extra
36 $(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
37 -grep -n FAIL $@ /dev/null || true
40 rm -f ports/$(PORT)/*.lst ports/$(PORT)/*.o ports/$(PORT)/*.sym