struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / ports / s08 / spec.mk
blob6fe63fbbd2a810a4c5b3df13cf3289328b9a648d
1 # Regression test specification for the s08 target running with uCsim
3 EMU_PORT_FLAG=-thcs08
5 # path to uCsim
6 ifdef SDCC_BIN_PATH
7 UCHC08C = $(SDCC_BIN_PATH)/ucsim_m68hc08$(EXEEXT)
9 AS_HC08C = $(SDCC_BIN_PATH)/sdas6808$(EXEEXT)
10 else
11 ifdef UCSIM_DIR
12 UCHC08A = $(UCSIM_DIR)/m68hc08.src/ucsim_m68hc08$(EXEEXT)
13 else
14 UCHC08A = $(top_builddir)/sim/ucsim/src/sims/m68hc08.src/ucsim_m68hc08$(EXEEXT)
15 UCHC08B = $(top_builddir)/bin/ucsim_m68hc08$(EXEEXT)
16 endif
18 EMU = $(WINE) $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
20 AS = $(WINE) $(top_builddir)/bin/sdas6808$(EXEEXT)
22 ifndef CROSSCOMPILING
23 SDCCFLAGS += --nostdinc -I$(top_srcdir)
24 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/s08
25 endif
26 endif
28 ifdef CROSSCOMPILING
29 SDCCFLAGS += -I$(top_srcdir)
30 endif
32 SDCCFLAGS += -ms08 --less-pedantic --out-fmt-ihx
33 LINKFLAGS += s08.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 %$(OBJEXT): %.asm
46 $(AS) -plosgff $<
48 _clean: