spec.mk

来自「Small Device C Compiler 面向Inter8051」· MK 代码 · 共 42 行

MK
42
字号
# Port specification for the z80 port running ontop of the Java based# 'ConsoleZ80' emulator.RRZ80 = $(SDCC_EXTRA_DIR)/emu/rrz80/rrz80SDCCFLAGS +=-mz80 --less-pedantic --profile -DREENTRANT=EXEEXT = .bin# Needs parts of gbdk-lib, namely the internal mul/div/mod functions.EXTRAS = ports/$(PORT)/testfwk$(OBJEXT) ports/$(PORT)/support$(OBJEXT)# Rule to generate a Emulator .bin file from the .ihx linker output.%$(EXEEXT): %.ihx	$(SDCC_DIR)/bin/makebin -s 32768 < $< > $@# Rule to link into .ihx%.ihx: %.c $(EXTRAS)	$(SDCC) $(SDCCFLAGS) $< $(EXTRAS) -o $@%$(OBJEXT): %.asm	$(SDCC_DIR)/bin/as-z80 -plosgff $@ $<%$(OBJEXT): %.s	$(SDCC_DIR)/bin/as-z80 -plosgff $@ $<%$(OBJEXT): %.c	$(SDCC) $(SDCCFLAGS) -c $< -o $@ports/$(PORT)/%$(OBJEXT): fwk/lib/%.c	$(SDCC) $(SDCCFLAGS) -c $< -o $@# PENDING: Path to sdcc-extra%.out: %$(EXEEXT)	mkdir -p `dirname $@`	$(RRZ80) --maxruntime=3 --mapfile=$(<:.bin=.sym) $< > $@	-grep -n FAIL $@ /dev/null || true_clean:	rm -f ports/$(PORT)/testfwk.asm ports/$(PORT)/*.lst ports/$(PORT)/*.o ports/$(PORT)/*.sym

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?