Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / ucr3ka / spec.mk
blobc93a914853b4b208b895fae70d130afb93703656
1 # Regression test specification for the z80 target running with uCsim
3 EMU_PORT_FLAG=-tr3ka
5 # path to uCsim
6 ifdef SDCC_BIN_PATH
7 UCZ80C = $(SDCC_BIN_PATH)/ucsim_rxk$(EXEEXT)
9 AS_Z80C = $(SDCC_BIN_PATH)/sdasrab$(EXEEXT)
10 else
11 ifdef UCSIM_DIR
12 SZ80A = $(UCSIM_DIR)/rxk.src/ucsim_rxk$(EXEEXT)
13 else
14 SZ80A = $(top_builddir)/sim/ucsim/src/sims/rxk.src/ucsim_rxk$(EXEEXT)
15 SZ80B = $(top_builddir)/bin/ucsim_rxk$(EXEEXT)
16 endif
18 EMU = $(WINE) $(shell if [ -f $(SZ80A) ]; then echo $(SZ80A); else echo $(SZ80B); fi)
20 AS = $(WINE) $(top_builddir)/bin/sdasrab$(EXEEXT)
22 ifndef CROSSCOMPILING
23 SDCCFLAGS += --nostdinc -I$(top_srcdir)
24 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/r3ka
25 endif
26 endif
28 ifdef CROSSCOMPILING
29 SDCCFLAGS += -I$(top_srcdir)
30 endif
32 SDCCFLAGS += -mr3ka --less-pedantic
33 LINKFLAGS += r3ka.lib
35 OBJEXT = .rel
36 BINEXT = .ihx
38 # otherwise `make` deletes testfwk.rel and `make -j` will fail
39 .PRECIOUS: $(PORT_CASES_DIR)/%$(OBJEXT)
41 # Required extras
42 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
43 include $(srcdir)/fwk/lib/spec.mk
45 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.asm
46 @# TODO: sdas should place it\'s output in the current dir
47 cp $< $(PORT_CASES_DIR)
48 $(AS) -plosgff $(PORT_CASES_DIR)/$(notdir $<)
49 rm $(PORT_CASES_DIR)/$(notdir $<)
51 _clean: