1 # Common regression test specification for the mcs51 targets running with uCsim
4 EMU_FLAGS
= -S in
=$(DEV_NULL
),out
=-
5 PORT_BASE
= mcs51-common
9 S51
= $(SDCC_BIN_PATH
)/ucsim_51
$(EXEEXT
)
12 S51A
= $(UCSIM_DIR
)/s51.src
/ucsim_51
$(EXEEXT
)
14 S51A
= $(top_builddir
)/sim
/ucsim
/src
/sims
/s51.src
/ucsim_51
$(EXEEXT
)
15 S51B
= $(top_builddir
)/bin
/ucsim_51
$(EXEEXT
)
18 EMU
= $(WINE
) $(shell if
[ -f
$(S51A
) ]; then echo
$(S51A
); else echo
$(S51B
); fi
)
21 SDCCFLAGS
+= --nostdinc
-I
$(INC_DIR
)/mcs51
-I
$(top_srcdir
)
22 LINKFLAGS
+= --nostdlib
-L
$(LIBDIR
)
28 SDCCFLAGS
+= -I
$(top_srcdir
)
33 SDCCFLAGS
+= --less-pedantic
34 LINKFLAGS
+= mcs51.lib libsdcc.lib liblong.lib libint.lib libfloat.lib liblonglong.lib
39 # otherwise `make` deletes testfwk.rel and `make -j` will fail
40 .PRECIOUS
: $(PORT_CASES_DIR
)/%$(OBJEXT
)
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