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