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