struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / ports / stm8-large / spec.mk
blob4990eb67b6d19f38203d547010301616671839d9
1 # Regression test specification for the stm8-large target running with uCsim
3 # path to uCsim
4 ifdef SDCC_BIN_PATH
5 UCSTM8C = $(SDCC_BIN_PATH)/ucsim_stm8$(EXEEXT)
7 AS_STM8C = $(SDCC_BIN_PATH)/sdasstm8$(EXEEXT)
8 else
9 ifdef UCSIM_DIR
10 UCSTM8A = $(UCSIM_DIR)/stm8.src/ucsim_stm8$(EXEEXT)
11 else
12 UCSTM8A = $(top_builddir)/sim/ucsim/src/sims/stm8.src/ucsim_stm8$(EXEEXT)
13 UCSTM8B = $(top_builddir)/bin/ucsim_stm8$(EXEEXT)
14 endif
16 EMU = $(WINE) $(shell if [ -f $(UCSTM8A) ]; then echo $(UCSTM8A); else echo $(UCSTM8B); fi)
18 AS = $(WINE) $(top_builddir)/bin/sdasstm8$(EXEEXT)
20 ifndef CROSSCOMPILING
21 SDCCFLAGS += --nostdinc -I$(top_srcdir)
22 LINKFLAGS += --nostdlib -L$(top_builddir)/device/lib/build/stm8-large
23 endif
24 endif
26 ifdef CROSSCOMPILING
27 SDCCFLAGS += -I$(top_srcdir)
28 endif
30 SDCCFLAGS += -mstm8 --model-large --less-pedantic --out-fmt-ihx
31 LINKFLAGS += stm8.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: