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 66e9d86d755249f3aebac29250239f1c36262968..f9ee40865673c92a3814bff6fae73c79360e72ea 100644
(file)
--- a/
support/regression/ports/z80/spec.mk
+++ b/
support/regression/ports/z80/spec.mk
@@
-3,36
+3,40
@@
RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
-SDCCFLAGS += --lesspedantic --profile -DREENTRANT=
+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)
+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
- $(
SDCC_DIR
)/bin/makebin -s 32768 < $< > $@
+ $(
top_builddir
)/bin/makebin -s 32768 < $< > $@
# Rule to link into .ihx
%.ihx: %.c $(EXTRAS)
# Rule to link into .ihx
%.ihx: %.c $(EXTRAS)
- $(SDCC) $(SDCCFLAGS) $
< $(EXTRAS)
+ $(SDCC) $(SDCCFLAGS) $
(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
-
%$(OBJEXT):
%.asm
- $(
SDCC_DIR
)/bin/as-z80 -plosgff $@ $<
+
$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/
%.asm
+ $(
top_builddir
)/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.s
%$(OBJEXT): %.s
- $(
SDCC_DIR
)/bin/as-z80 -plosgff $@ $<
+ $(
top_builddir
)/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.c
%$(OBJEXT): %.c
- $(SDCC) $(SDCCFLAGS) -c $<
+ $(SDCC) $(SDCCFLAGS) -c $<
-o $@
-
fwk/lib/testfwk$(OBJEXT): fwk/lib/testfwk
.c
- $(SDCC) $(SDCCFLAGS) -c $<
+
$(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%
.c
+ $(SDCC) $(SDCCFLAGS) -c $<
-o $@
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
- mkdir -p
`dirname $@`
+ mkdir -p
$(dir $@)
$(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
-grep -n FAIL $@ /dev/null || true
$(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@
-grep -n FAIL $@ /dev/null || true
+_clean: