1 # Regression test specification for the z80 target running with uCsim
5 UCZ80C
= $(SDCC_BIN_PATH
)/ucsim_z80
$(EXEEXT
)
7 AS_Z80C
= $(SDCC_BIN_PATH
)/sdasz80
$(EXEEXT
)
10 SZ80A
= $(UCSIM_DIR
)/z80.src
/ucsim_z80
$(EXEEXT
)
12 SZ80A
= $(top_builddir
)/sim
/ucsim
/src
/sims
/z80.src
/ucsim_z80
$(EXEEXT
)
13 SZ80B
= $(top_builddir
)/bin
/ucsim_z80
$(EXEEXT
)
16 EMU
= $(WINE
) $(shell if
[ -f
$(SZ80A
) ]; then echo
$(SZ80A
); else echo
$(SZ80B
); fi
)
18 AS
= $(WINE
) $(top_builddir
)/bin
/sdasz80
$(EXEEXT
)
21 SDCCFLAGS
+= --nostdinc
-I
$(top_srcdir
)
22 LINKFLAGS
+= --nostdlib
-L
$(top_builddir
)/device
/lib
/build
/z80
27 SDCCFLAGS
+= -I
$(top_srcdir
)
30 SDCCFLAGS
+= -mz80
--less-pedantic
--reserve-regs-iy
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
43 $(PORT_CASES_DIR
)/%$(OBJEXT
): $(PORTS_DIR
)/$(PORT
)/%.asm
44 @
# TODO: sdas should place it\'s output in the current dir
45 cp
$< $(PORT_CASES_DIR
)
46 $(AS
) -plosgff
$(PORT_CASES_DIR
)/$(notdir $<)
47 rm $(PORT_CASES_DIR
)/$(notdir $<)