Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / ez80-z80 / spec.mk
blob78668039cb611007391a8ac8e895fb331c8b23f2
1 # Regression test specification for the ez80_z80 target running with uCsim
3 EMU_PORT_FLAG = -tez80
5 # path to uCsim
6 ifdef SDCC_BIN_PATH
7 UCZ80C = $(SDCC_BIN_PATH)/ucsim_z80$(EXEEXT)
9 AS_Z80C = $(SDCC_BIN_PATH)/sdasz80$(EXEEXT)
10 else
11 ifdef UCSIM_DIR
12 SZ80A = $(UCSIM_DIR)/z80.src/ucsim_z80$(EXEEXT)
13 else
14 SZ80A = $(top_builddir)/sim/ucsim/src/sims/z80.src/ucsim_z80$(EXEEXT)
15 SZ80B = $(top_builddir)/bin/ucsim_z80$(EXEEXT)
16 endif
18 EMU = $(WINE) $(shell if [ -f $(SZ80A) ]; then echo $(SZ80A); else echo $(SZ80B); fi)
20 AS = $(WINE) $(top_builddir)/bin/sdasz80$(EXEEXT)
22 ifndef CROSSCOMPILING
23 SDCCFLAGS += --nostdinc -I$(top_srcdir)
24 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/ez80_z80
25 endif
26 endif
28 ifdef CROSSCOMPILING
29 SDCCFLAGS += -I$(top_srcdir)
30 endif
32 SDCCFLAGS += -mez80_z80 --less-pedantic
33 LINKFLAGS += ez80_z80.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: