1 # Port specification for the xxxx port running with uCsim
5 UCZ80 = $(SDCC_DIR)/bin/sz80
6 #UCZ80 = $(SDCC_DIR)/bin/s51
8 SDCCFLAGS +=-mz80 --lesspedantic --profile -DREENTRANT=
9 #SDCCFLAGS +=--lesspedantic -DREENTRANT=reentrant --stack-after-data
14 EXTRAS = fwk/lib/testfwk$(OBJEXT) $(PORTS_DIR)/$(PORT)/support$(OBJEXT)
16 # Rule to link into .ihx
17 #%$(EXEEXT): %$(OBJEXT) $(EXTRAS)
19 %$(EXEEXT): %.c $(EXTRAS)
20 $(SDCC) $(SDCCFLAGS) $< $(EXTRAS) -o $@
23 $(SDCC_DIR)/bin/as-z80 -plosgff $@ $<
26 $(SDCC) $(SDCCFLAGS) -c $< -o $@
28 # run simulator with 10 seconds timeout
29 %.out: %$(EXEEXT) fwk/lib/timeout
31 -fwk/lib/timeout 10 $(UCZ80) -t32 $< < $(PORTS_DIR)/$(PORT)/uCsim.cmd > $@ \
32 || echo -e --- FAIL: \"timeout, simulation killed\" in $(<:$(EXEEXT)=.c)"\n"--- Summary: 1/1/1: timeout >> $@
33 -grep -n FAIL $@ /dev/null || true
35 fwk/lib/timeout: fwk/lib/timeout.c
38 rm -f fwk/lib/timeout fwk/lib/timeout.exe $(PORTS_DIR)/$(PORT)/*.rel $(PORTS_DIR)/$(PORT)/*.rst \
39 $(PORTS_DIR)/$(PORT)/*.lst $(PORTS_DIR)/$(PORT)/*.sym temp.lnk