1 # Regression test specification for the stm8-large target running with uCsim
5 UCSTM8C
= $(SDCC_BIN_PATH
)/ucsim_stm8
$(EXEEXT
)
7 AS_STM8C
= $(SDCC_BIN_PATH
)/sdasstm8
$(EXEEXT
)
10 UCSTM8A
= $(UCSIM_DIR
)/stm8.src
/ucsim_stm8
$(EXEEXT
)
12 UCSTM8A
= $(top_builddir
)/sim
/ucsim
/src
/sims
/stm8.src
/ucsim_stm8
$(EXEEXT
)
13 UCSTM8B
= $(top_builddir
)/bin
/ucsim_stm8
$(EXEEXT
)
16 EMU
= $(WINE
) $(shell if
[ -f
$(UCSTM8A
) ]; then echo
$(UCSTM8A
); else echo
$(UCSTM8B
); fi
)
18 AS
= $(WINE
) $(top_builddir
)/bin
/sdasstm8
$(EXEEXT
)
21 SDCCFLAGS
+= --nostdinc
-I
$(top_srcdir
)
22 LINKFLAGS
+= --nostdlib
-L
$(top_builddir
)/device
/lib
/build
/stm8-large
27 SDCCFLAGS
+= -I
$(top_srcdir
)
30 SDCCFLAGS
+= -mstm8
--model-large
--less-pedantic
--out-fmt-ihx
36 # otherwise `make` deletes testfwk.rel and `make -j` will fail
37 .PRECIOUS
: $(PORT_CASES_DIR
)/%$(OBJEXT
)
40 EXTRAS
= $(PORT_CASES_DIR
)/testfwk
$(OBJEXT
) $(PORT_CASES_DIR
)/support
$(OBJEXT
)
41 include $(srcdir)/fwk
/lib
/spec.mk