Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / ports / hc08 / spec.mk
blob559ee3ddeb658dbb9e1a639a86313caa4ed8568f
1 # Regression test specification for the hc08 target running with uCsim
3 # path to uCsim
4 ifdef SDCC_BIN_PATH
5 UCHC08C = $(SDCC_BIN_PATH)/ucsim_m68hc08$(EXEEXT)
7 AS_HC08C = $(SDCC_BIN_PATH)/sdas6808$(EXEEXT)
8 else
9 ifdef UCSIM_DIR
10 UCHC08A = $(UCSIM_DIR)/m68hc08.src/ucsim_m68hc08$(EXEEXT)
11 else
12 UCHC08A = $(top_builddir)/sim/ucsim/src/sims/m68hc08.src/ucsim_m68hc08$(EXEEXT)
13 UCHC08B = $(top_builddir)/bin/ucsim_m68hc08$(EXEEXT)
14 endif
16 EMU = $(WINE) $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
18 AS = $(WINE) $(top_builddir)/bin/sdas6808$(EXEEXT)
20 ifndef CROSSCOMPILING
21 SDCCFLAGS += --nostdinc -I$(top_srcdir)
22 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/hc08
23 endif
24 endif
26 ifdef CROSSCOMPILING
27 SDCCFLAGS += -I$(top_srcdir)
28 endif
30 SDCCFLAGS += -mhc08 --less-pedantic --out-fmt-ihx
31 LINKFLAGS += hc08.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 %$(OBJEXT): %.asm
44 $(AS) -plosgff $<
46 _clean: