Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / ds390 / spec.mk
blobded6bb1ef0d16374193b818e8efdd7e76607290b
1 # Regression test specification for the ds390 target running with uCsim
3 .PRECIOUS: %.c
5 CC_FOR_BUILD = $(CC)
7 # simulation timeout in seconds
8 SIM_TIMEOUT = 240
10 EMU_PORT_FLAG = -tds390
11 EMU_FLAGS = -S in=$(DEV_NULL),out=-
13 # path to uCsim
14 ifdef SDCC_BIN_PATH
15 S51 = $(SDCC_BIN_PATH)/ucsim_51$(EXEEXT)
16 else
17 ifdef UCSIM_DIR
18 S51A = $(UCSIM_DIR)/s51.src/ucsim_51$(EXEEXT)
19 else
20 S51A = $(top_builddir)/sim/ucsim/src/sims/s51.src/ucsim_51$(EXEEXT)
21 S51B = $(top_builddir)/bin/ucsim_51$(EXEEXT)
22 endif
24 EMU = $(WINE) $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
26 ifndef CROSSCOMPILING
27 SDCCFLAGS += --nostdinc -I$(top_srcdir)
28 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/ds390
29 endif
30 endif
32 ifdef CROSSCOMPILING
33 DEV_NULL ?= NUL
34 SDCCFLAGS += -I$(top_srcdir)
35 else
36 DEV_NULL ?= /dev/null
37 endif
39 SDCCFLAGS += -mds390 --less-pedantic -Wl-r
40 LINKFLAGS += libsdcc.lib liblong.lib liblonglong.lib libint.lib libfloat.lib
41 LINKFLAGS += libds390.lib
43 OBJEXT = .rel
44 BINEXT = .ihx
46 # otherwise `make` deletes testfwk.rel and `make -j` will fail
47 .PRECIOUS: $(PORT_CASES_DIR)/%$(OBJEXT)
49 # Required extras
50 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
51 include $(srcdir)/fwk/lib/spec.mk
53 _clean: