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
/
hc08
/
spec.mk
diff --git
a/support/regression/ports/hc08/spec.mk
b/support/regression/ports/hc08/spec.mk
index 9cb3f95890a78786e26e884af0701f7835e39f40..113f4c64a90b4d8095461e5c2189c96146daecbf 100644
(file)
--- a/
support/regression/ports/hc08/spec.mk
+++ b/
support/regression/ports/hc08/spec.mk
@@
-1,18
+1,18
@@
# path to uCsim
# path to uCsim
-UCHC08A = $(
SDCC_DIR)/
sim/ucsim/hc08.src/shc08
-UCHC08B = $(
SDCC_DIR)/
bin/shc08
+UCHC08A = $(
top_builddir)
sim/ucsim/hc08.src/shc08
+UCHC08B = $(
top_builddir)
bin/shc08
UCHC08 = $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
UCHC08 = $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
-SDCCFLAGS +=-mhc08 --nostdinc --less-pedantic --out-fmt-ihx -DREENTRANT=reentrant
+SDCCFLAGS +=-mhc08 --nostdinc --less-pedantic --out-fmt-ihx -DREENTRANT=reentrant
-I$(top_srcdir)
LINKFLAGS = --nostdlib
LINKFLAGS += hc08.lib
LINKFLAGS = --nostdlib
LINKFLAGS += hc08.lib
-LIBDIR = $(
SDCC_DIR)/
device/lib/build/hc08
+LIBDIR = $(
top_builddir)
device/lib/build/hc08
OBJEXT = .rel
EXEEXT = .ihx
OBJEXT = .rel
EXEEXT = .ihx
-EXTRAS = $(PORT
S_DIR)/$(PORT)/testfwk$(OBJEXT) $(PORTS_DIR)/$(PORT
)/support$(OBJEXT)
+EXTRAS = $(PORT
_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR
)/support$(OBJEXT)
# Rule to link into .ihx
#%$(EXEEXT): %$(OBJEXT) $(EXTRAS)
# Rule to link into .ihx
#%$(EXEEXT): %$(OBJEXT) $(EXTRAS)
@@
-21,24
+21,26
@@
EXTRAS = $(PORTS_DIR)/$(PORT)/testfwk$(OBJEXT) $(PORTS_DIR)/$(PORT)/support$(OBJ
$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
%$(OBJEXT): %.asm
$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
%$(OBJEXT): %.asm
- $(
SDCC_DIR)/
bin/as-hc08 -plosgff $<
+ $(
top_builddir)
bin/as-hc08 -plosgff $<
%$(OBJEXT): %.c
$(SDCC) $(SDCCFLAGS) -c $< -o $@
%$(OBJEXT): %.c
$(SDCC) $(SDCCFLAGS) -c $< -o $@
-$(PORTS_DIR)/$(PORT)/%$(OBJEXT): fwk/lib/%.c
+$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.c
+ $(SDCC) $(SDCCFLAGS) -c $< -o $@
+
+$(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
$(SDCC) $(SDCCFLAGS) -c $< -o $@
# run simulator with 10 seconds timeout
$(SDCC) $(SDCCFLAGS) -c $< -o $@
# run simulator with 10 seconds timeout
-%.out: %$(EXEEXT)
fwk/lib
/timeout
- mkdir -p
`dirname $@`
- -
fwk/lib
/timeout 10 $(UCHC08) $< < $(PORTS_DIR)/$(PORT)/uCsim.cmd > $@ \
+%.out: %$(EXEEXT)
$(CASES_DIR)
/timeout
+ mkdir -p
$(dir $@)
+ -
$(CASES_DIR)
/timeout 10 $(UCHC08) $< < $(PORTS_DIR)/$(PORT)/uCsim.cmd > $@ \
|| echo -e --- FAIL: \"timeout, simulation killed\" in $(<:$(EXEEXT)=.c)"\n"--- Summary: 1/1/1: timeout >> $@
|| echo -e --- FAIL: \"timeout, simulation killed\" in $(<:$(EXEEXT)=.c)"\n"--- Summary: 1/1/1: timeout >> $@
- python get_ticks.py < $@ >> $@
+ python
$(srcdir)/
get_ticks.py < $@ >> $@
-grep -n FAIL $@ /dev/null || true
-grep -n FAIL $@ /dev/null || true
-fwk/lib/timeout: fwk/lib/timeout.c
+$(CASES_DIR)/timeout: fwk/lib/timeout.c
+ $(CC) $< -o $@
_clean:
_clean:
- rm -f ports/$(PORT)/*.asm ports/$(PORT)/*.lst ports/$(PORT)/*.rel ports/$(PORT)/*.sym
-