projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* support/regression/Makefile: Improved clean
[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 dab2071e7d40e39e147f06503a4b551c912f87bc..b14249d49d90da8a89ffeb88a0deaf8c0cad3e95 100644
(file)
--- a/
support/regression/ports/z80/spec.mk
+++ b/
support/regression/ports/z80/spec.mk
@@
-3,7
+3,7
@@
RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80
-SDCCFLAGS += --lesspedantic
+SDCCFLAGS += --lesspedantic
--profile -DREENTRANT=
EXEEXT = .bin
EXEEXT = .bin
@@
-12,17
+12,23
@@
EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/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
+ $(SDCC_DIR)/bin/makebin -s 32768 < $< > $@
# Rule to link into .ihx
%.ihx: %.c $(EXTRAS)
$(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
%$(OBJEXT): %.asm
# Rule to link into .ihx
%.ihx: %.c $(EXTRAS)
$(SDCC) $(SDCCFLAGS) $< $(EXTRAS)
%$(OBJEXT): %.asm
-
../..
/bin/as-z80 -plosgff $@ $<
+
$(SDCC_DIR)
/bin/as-z80 -plosgff $@ $<
%$(OBJEXT): %.s
%$(OBJEXT): %.s
- ../../bin/as-z80 -plosgff $@ $<
+ $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
+
+%$(OBJEXT): %.c
+ $(SDCC) $(SDCCFLAGS) -c $<
+
+fwk/lib/testfwk$(OBJEXT): fwk/lib/testfwk.c
+ $(SDCC) $(SDCCFLAGS) -c $<
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
@@
-30,3
+36,6
@@
EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
$(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:
+ rm -f ports/$(PORT)/*.lst ports/$(PORT)/*.o ports/$(PORT)/*.sym
+