1 # Port specification for the gbz80 port.
3 EMU = $(SDCC_EXTRA_DIR)/emu/rrgb/rrgb
5 SDCCFLAGS +=-mgbz80 --lesspedantic -DREENTRANT=
9 # Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
10 EXTRAS = ports/$(PORT)/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
12 # Rule to link into .ihx
14 $(SDCC) $(SDCCFLAGS) $< $(EXTRAS) -o $@
17 ../../bin/as-gbz80 -plosgff $@ $<
20 ../../bin/as-gbz80 -plosgff $@ $<
24 $(SDCC) $(SDCCFLAGS) -c $< -o $@
26 ports/$(PORT)/%$(OBJEXT): fwk/lib/%.c
27 $(SDCC) $(SDCCFLAGS) -c $< -o $@
29 # PENDING: Path to sdcc-extra
33 -grep -n FAIL $@ /dev/null || true
36 rm -f ports/$(PORT)/testfwk.asm ports/$(PORT)/*.lst ports/$(PORT)/*.o ports/$(PORT)/*.sym