projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc]
/
support
/
regression
/
ports
/
gbz80
/
spec.mk
diff --git
a/support/regression/ports/gbz80/spec.mk
b/support/regression/ports/gbz80/spec.mk
index ef48258249b054cba364a19fc5273c8c71ee2d36..367a2f56c3568354ac35f3da4c05b14cb1873837 100644
(file)
--- a/
support/regression/ports/gbz80/spec.mk
+++ b/
support/regression/ports/gbz80/spec.mk
@@
-5,36
+5,30
@@
EMU = $(SDCC_EXTRA_DIR)/emu/rrgb/rrgb
SDCCFLAGS +=-mgbz80 --nostdinc --less-pedantic -DREENTRANT=
LINKFLAGS = --nostdlib
LINKFLAGS += gbz80.lib
SDCCFLAGS +=-mgbz80 --nostdinc --less-pedantic -DREENTRANT=
LINKFLAGS = --nostdlib
LINKFLAGS += gbz80.lib
-LIBDIR = $(
SDCC_DIR)/
device/lib/build/gbz80
+LIBDIR = $(
top_builddir)
device/lib/build/gbz80
EXEEXT = .gb
# Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
EXEEXT = .gb
# Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
-EXTRAS =
ports/$(PORT)/testfwk$(OBJEXT) ports/$(PORT
)/support$(OBJEXT)
+EXTRAS =
$(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR
)/support$(OBJEXT)
# Rule to link into .ihx
%.gb: %.c $(EXTRAS)
$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
# Rule to link into .ihx
%.gb: %.c $(EXTRAS)
$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
-%$(OBJEXT): %.asm
- ../../bin/as-gbz80 -plosgff $@ $<
-
-%$(OBJEXT): %.s
+$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.asm
../../bin/as-gbz80 -plosgff $@ $<
%$(OBJEXT): %.c
../../bin/as-gbz80 -plosgff $@ $<
%$(OBJEXT): %.c
- echo $(OBJEXT)
$(SDCC) $(SDCCFLAGS) -c $< -o $@
$(SDCC) $(SDCCFLAGS) -c $< -o $@
-
ports/$(PORT
)/%$(OBJEXT): fwk/lib/%.c
+
$(PORT_CASES_DIR
)/%$(OBJEXT): fwk/lib/%.c
$(SDCC) $(SDCCFLAGS) -c $< -o $@
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
$(SDCC) $(SDCCFLAGS) -c $< -o $@
# PENDING: Path to sdcc-extra
%.out: %$(EXEEXT)
- mkdir -p
`dirname $@`
+ mkdir -p
$(dir $@)
$(EMU) -k -m $< > $@
-grep -n FAIL $@ /dev/null || true
_clean:
$(EMU) -k -m $< > $@
-grep -n FAIL $@ /dev/null || true
_clean:
- rm -f ports/$(PORT)/testfwk.asm ports/$(PORT)/*.lst ports/$(PORT)/*.o ports/$(PORT)/*.sym
-