projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* configure.in: added missing mcs51 in status output
[fw/sdcc]
/
support
/
regression
/
ports
/
z80
/
spec.mk
diff --git
a/support/regression/ports/z80/spec.mk
b/support/regression/ports/z80/spec.mk
index e30da7de15574dc09808da9b6d93bded6f74d58e..f9ee40865673c92a3814bff6fae73c79360e72ea 100644
(file)
--- a/
support/regression/ports/z80/spec.mk
+++ b/
support/regression/ports/z80/spec.mk
@@
-1,34
+1,42
@@
# Port specification for the z80 port running ontop of the Java based
# 'ConsoleZ80' emulator.
# Port specification for the z80 port running ontop of the Java based
# 'ConsoleZ80' emulator.
-# PENDING: Patch to gbdk-lib for stdarg
-SDCCFLAGS += -I/home/michaelh/projects/gbdk-lib/include
+RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
+
+SDCCFLAGS +=-mz80 --nostdinc --less-pedantic --profile -DREENTRANT= -I$(top_srcdir)
+LINKFLAGS = --nostdlib
+LINKFLAGS += z80.lib
+LIBDIR = $(top_builddir)/device/lib/build/z80
EXEEXT = .bin
# Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
EXEEXT = .bin
# Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
-EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT) \
- /home/michaelh/projects/gbdk-lib/libc/asm/z80/mul$(OBJEXT) \
- /home/michaelh/projects/gbdk-lib/libc/asm/z80/div$(OBJEXT)
+EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
# Rule to generate a Emulator .bin file from the .ihx linker output.
%$(EXEEXT): %.ihx
# Rule to generate a Emulator .bin file from the .ihx linker output.
%$(EXEEXT): %.ihx
- ../makebin/makebin -s 32768 < $< > $@ # Must be 32768 due to a bug in ConsoleZ80
+ $(top_builddir)/bin/makebin -s 32768 < $< > $@
# Rule to link into .ihx
# Rule to link into .ihx
-%.ihx: %$(OBJEXT) $(EXTRAS)
- ../../bin/link-z80 -n -- -b_CODE=0x200 -b_DATA=0x8000 -i $@ $< $(EXTRAS)
-
-%$(OBJEXT): %.c fwk/include/*.h
- $(SDCC) $(SDCCFLAGS) -c $<
+%.ihx: %.c $(EXTRAS)
+ $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
-
%$(OBJEXT):
%.asm
-
../..
/bin/as-z80 -plosgff $@ $<
+
$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/
%.asm
+
$(top_builddir)
/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.s
%$(OBJEXT): %.s
- ../../bin/as-z80 -plosgff $@ $<
+ $(top_builddir)/bin/as-z80 -plosgff $@ $<
+
+%$(OBJEXT): %.c
+ $(SDCC) $(SDCCFLAGS) -c $< -o $@
+$(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
+ $(SDCC) $(SDCCFLAGS) -c $< -o $@
+
+# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
%.out: %$(EXEEXT)
- mkdir -p `dirname $@`
- java -cp /home/michaelh/projects/rose ConsoleZ80 $< > $@
- if grep -q FAIL $@; then echo FAILURES in $@; fi
+ mkdir -p $(dir $@)
+ $(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
+ -grep -n FAIL $@ /dev/null || true
+
+_clean: