1 # Port specification for the mcs51 port running with uCsim
3 S51 = ../../sim/ucsim/s51.src/s51
5 SDCCFLAGS += --lesspedantic -DREENTRANT=reentrant -DGENERIC=_generic
10 # Needs parts of gbdk-lib, namely the internal mul/div/mod functions.
11 EXTRAS = fwk/lib/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)
13 # Rule to link into .ihx
14 %.ihx: %$(OBJEXT) $(EXTRAS)
15 $(SDCC) $(SDCCFLAGS) $(EXTRAS) $<
16 mv fwk/lib/testfwk.ihx $@
17 mv fwk/lib/testfwk.map $(@:.ihx=.map)
20 # ../../bin/as-z80 -plosgff $@ $<
23 # ../../bin/as-z80 -plosgff $@ $<
26 $(SDCC) $(SDCCFLAGS) -c $<
28 # PENDING: Path to sdcc-extra
31 $(S51) -t32 -S in=$(shell tty),out=$@ $< < ports/mcs51/uCsim.cmd >/dev/null 2>&1
32 -grep -n FAIL $@ /dev/null || true