struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / ports / mcs51-common / spec.mk
blob8013d71a3ae9adcc4f8d3c0744abf8af1d1c3324
1 # Common regression test specification for the mcs51 targets running with uCsim
3 EMU_PORT_FLAG = -t32
4 EMU_FLAGS = -S in=$(DEV_NULL),out=-
5 PORT_BASE = mcs51-common
7 # path to uCsim
8 ifdef SDCC_BIN_PATH
9 S51 = $(SDCC_BIN_PATH)/ucsim_51$(EXEEXT)
10 else
11 ifdef UCSIM_DIR
12 S51A = $(UCSIM_DIR)/s51.src/ucsim_51$(EXEEXT)
13 else
14 S51A = $(top_builddir)/sim/ucsim/src/sims/s51.src/ucsim_51$(EXEEXT)
15 S51B = $(top_builddir)/bin/ucsim_51$(EXEEXT)
16 endif
18 EMU = $(WINE) $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
20 ifndef CROSSCOMPILING
21 SDCCFLAGS += --nostdinc -I$(INC_DIR)/mcs51 -I$(top_srcdir)
22 LINKFLAGS += --nostdlib -L$(LIBDIR)
23 endif
24 endif
26 ifdef CROSSCOMPILING
27 DEV_NULL ?= NUL
28 SDCCFLAGS += -I$(top_srcdir)
29 else
30 DEV_NULL ?= /dev/null
31 endif
33 SDCCFLAGS += --less-pedantic
34 LINKFLAGS += mcs51.lib libsdcc.lib liblong.lib libint.lib libfloat.lib liblonglong.lib
36 OBJEXT = .rel
37 BINEXT = .ihx
39 # otherwise `make` deletes testfwk.rel and `make -j` will fail
40 .PRECIOUS: $(PORT_CASES_DIR)/%$(OBJEXT)
42 # Required extras
43 EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
44 include $(srcdir)/fwk/lib/spec.mk
45 FWKLIB += $(PORT_CASES_DIR)/T2_isr$(OBJEXT)
47 SPEC_LIB = $(PORTS_DIR)/mcs51-common/fwk.lib
49 _clean: