1 # Regression test specification for the z80 target running with uCsim
7 UCZ80C
= $(SDCC_BIN_PATH
)/ucsim_rxk
$(EXEEXT
)
9 AS_Z80C
= $(SDCC_BIN_PATH
)/sdasrab
$(EXEEXT
)
12 SZ80A
= $(UCSIM_DIR
)/rxk.src
/ucsim_rxk
$(EXEEXT
)
14 SZ80A
= $(top_builddir
)/sim
/ucsim
/src
/sims
/rxk.src
/ucsim_rxk
$(EXEEXT
)
15 SZ80B
= $(top_builddir
)/bin
/ucsim_rxk
$(EXEEXT
)
18 EMU
= $(WINE
) $(shell if
[ -f
$(SZ80A
) ]; then echo
$(SZ80A
); else echo
$(SZ80B
); fi
)
20 AS
= $(WINE
) $(top_builddir
)/bin
/sdasrab
$(EXEEXT
)
23 SDCCFLAGS
+= --nostdinc
-I
$(top_srcdir
)
24 LINKFLAGS
+= --nostdlib
-L
$(top_builddir
)/device
/lib
/build
/r3ka
29 SDCCFLAGS
+= -I
$(top_srcdir
)
32 SDCCFLAGS
+= -mr3ka
--less-pedantic
38 # otherwise `make` deletes testfwk.rel and `make -j` will fail
39 .PRECIOUS
: $(PORT_CASES_DIR
)/%$(OBJEXT
)
42 EXTRAS
= $(PORT_CASES_DIR
)/testfwk
$(OBJEXT
) $(PORT_CASES_DIR
)/support
$(OBJEXT
)
43 include $(srcdir)/fwk
/lib
/spec.mk
45 $(PORT_CASES_DIR
)/%$(OBJEXT
): $(PORTS_DIR
)/$(PORT
)/%.asm
46 @
# TODO: sdas should place it\'s output in the current dir
47 cp
$< $(PORT_CASES_DIR
)
48 $(AS
) -plosgff
$(PORT_CASES_DIR
)/$(notdir $<)
49 rm $(PORT_CASES_DIR
)/$(notdir $<)