* support/regression/Makefile.in,
[fw/sdcc] / support / regression / ports / xa51 / spec.mk
old mode 100755 (executable)
new mode 100644 (file)
index eb50f01..a469755
@@ -1,8 +1,12 @@
 # Port specification for the xa51 port running with uCsim
 
+ifndef DEV_NULL
+  DEV_NULL = /dev/null
+endif
+
 # path to uCsim
-SXA_A = $(top_builddir)sim/ucsim/xa.src/sxa
-SXA_B = $(top_builddir)bin/sxa
+SXA_A = $(top_builddir)/sim/ucsim/xa.src/sxa
+SXA_B = $(top_builddir)/bin/sxa
 
 SXA = $(shell if [ -f $(SXA_A) ]; then echo $(SXA_A); else echo $(SXA_B); fi)
 
@@ -29,11 +33,11 @@ $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
 # run simulator with 1 second timeout
 %.out: %$(EXEEXT) $(CASES_DIR)/timeout
        mkdir -p $(dir $@)
-       -$(CASES_DIR)/timeout 1 $(SXA) -S in=/dev/null,out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \
+       -$(CASES_DIR)/timeout 1 $(SXA) -S in=$(DEV_NULL),out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \
           echo -e --- FAIL: \"timeout, simulation killed\" in $(<:.ihx=.c)"\n"--- Summary: 1/1/1: timeout >> $@
        -grep -n FAIL $@ /dev/null || true
 
 $(CASES_DIR)/timeout: fwk/lib/timeout.c
-       $(CC) $< -o $@
+       $(CC) $(CFLAGS) $< -o $@
 
 _clean: