📄 spec.mk
字号:
# Port specification for the pic16 port running with gpsim# path to gpsimifdef GPSIM_PATH GPSIM := $(GPSIM_PATH)/gpsimelse GPSIM := gpsimendifSDCCFLAGS += -mpic16 -pp18f452 -I$(top_srcdir)/device/include/pic16 --nostdinc --less-pedantic -Wl,-q -DREENTRANT=reentrant -I$(top_srcdir)LINKFLAGS = --nostdlibLINKFLAGS += libsdcc.lib libc18f.lib libm18f.libLIBDIR = $(top_builddir)device/lib/build/pic16OBJEXT = .oEXEEXT = .codEXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)# Rule to link into .ihx%$(EXEEXT): %$(OBJEXT) $(EXTRAS) -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@%$(OBJEXT): %.c -$(SDCC) $(SDCCFLAGS) -c $< -o $@$(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.c -$(SDCC) $(SDCCFLAGS) -c $< -o $@.PRECIOUS: gen/pic16/testfwk.o gen/pic16/support.o$(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c $(SDCC) $(SDCCFLAGS) -c $< -o $@# run simulator with 25 seconds timeout%.out: %$(EXEEXT) $(CASES_DIR)/timeout mkdir -p $(dir $@) -$(CASES_DIR)/timeout 25 "$(GPSIM)" -i -s $< -c $(PORTS_DIR)/pic16/gpsim.cmd > $@ || \ echo -e --- FAIL: \"timeout, simulation killed\" in $(<:$(EXEEXT)=.c)"\n"--- Summary: 1/1/1: timeout >> $@ python $(srcdir)/get_ticks.py < $@ >> $@ -grep -n FAIL $@ /dev/null || true$(CASES_DIR)/timeout: fwk/lib/timeout.c $(CC) $< -o $@_clean:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -