# PENDING: Path to gbdk-lib for stdarg
GBDK_LIB = ../../../gbdk-lib
-SDCCFLAGS += -I$(GBDK_LIB)/include
+RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
+
+SDCCFLAGS += -I$(GBDK_LIB)/include --lesspedantic
EXEEXT = .bin
# Rule to link into .ihx
%.ihx: %$(OBJEXT) $(EXTRAS)
- ../../bin/link-z80 -n -- -b_CODE=0x200 -b_DATA=0x8000 -i $@ $< $(EXTRAS)
+ ../../bin/link-z80 -n -- -b_CODE=0x200 -b_DATA=0x8000 -j -i $@ $< $(EXTRAS)
%$(OBJEXT): %.c fwk/include/*.h
$(SDCC) $(SDCCFLAGS) -c $<
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
mkdir -p `dirname $@`
- java -cp ../../../sdcc-extra/emu/rose ConsoleZ80 $< > $@
- if grep -q FAIL $@; then echo FAILURES in $@; fi
+ $(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
+ -grep -n FAIL $@ /dev/null || true
+