1 # Port specification for the gbz80 port.
3 EMU = $(SDCC_EXTRA_DIR)/emu/rrgb/rrgb
5 SDCCFLAGS +=-mgbz80 --nostdinc --less-pedantic -DREENTRANT=
8 LIBDIR = $(top_builddir)/device/lib/build/gbz80
12 # Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
13 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
15 # Rule to link into .ihx
17 $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
19 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.asm
20 ../../bin/as-gbz80 -plosgff $@ $<
23 $(SDCC) $(SDCCFLAGS) -c $< -o $@
25 $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
26 $(SDCC) $(SDCCFLAGS) -c $< -o $@
28 # PENDING: Path to sdcc-extra
32 -grep -n FAIL $@ /dev/null || true