Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / uc6502-stack-auto / spec.mk
blobe834252116ad0b0e87afad586686f424a75a01cf
1 # Regression test specification for the mos6502 target running with uCsim
3 # simulation timeout in cycles
4 SIM_CYCLES = 1000000000
6 ifdef SDCC_BIN_PATH
7 AS = $(SDCC_BIN_PATH)/sdas6500$(EXEEXT)
8 UC65 = $(SDCC_BIN_PATH)/ucsim_mos6502$(EXEEXT)
9 else
10 ifdef UCSIM_DIR
11 UC65 = $(UCSIM_DIR)/mos6502.src/ucsim_mos6502$(EXEEXT)
12 else
13 UC65 = $(top_builddir)/sim/ucsim/src/sims/mos6502.src/ucsim_mos6502$(EXEEXT)
14 endif
15 AS = $(WINE) $(top_builddir)/bin/sdas6500$(EXEEXT)
16 ifndef CROSSCOMPILING
17 SDCCFLAGS += --nostdinc -I$(top_srcdir)
18 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/mos6502-stack-auto
19 endif
20 endif
22 EMU = $(WINE) $(UC65)
24 ifdef CROSSCOMPILING
25 SDCCFLAGS += -I$(top_srcdir)
26 endif
28 SDCCFLAGS += -mmos6502 --stack-auto --less-pedantic --code-loc 0x8000 --xram-loc 0x0200 -DSTACK_SIZE=256
29 LINKFLAGS += mos6502.lib
31 OBJEXT = .rel
32 BINEXT = .ihx
34 # otherwise `make` deletes testfwk.rel and `make -j` will fail
35 .PRECIOUS: $(PORT_CASES_DIR)/%$(OBJEXT)
37 # Required extras
38 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
39 include $(srcdir)/fwk/lib/spec.mk
41 %$(OBJEXT): %.asm
42 $(AS) -plosgff $<
44 _clean: