defines.gnu

来自「采用ST20 CPU的机顶盒的烧写程序」· GNU 代码 · 共 26 行

GNU
26
字号
# Generic macros for GNU makefiles

include $(MKFROOT)/defines.mkf

ifeq ($(OS), Windows_NT)
_PATH=$(subst cygdrive,cygwin, $(PATH))
ifneq (, $(findstring cygwin, $(_PATH)))
# For Cygwin on Windows (we looked for cygwin or cygdrive in the PATH
# environment variable - if present assume Cygwin is on the path).
CP=cp -f
RM=rm -f
# We override the command for RLTOOL too as the one in defines.mkf doesn't work
# under Cygwin on Windows.  We use 'which' to locate the compiler and extract
# the path to it in creating the rltool command line.
_CC_LOCATION=$(shell which $(CC))
_ST40ROOT_BIN=$(shell cygpath -m $(_CC_LOCATION:$(CC)=))
RLTOOL=perl -w $(_ST40ROOT_BIN)sh4rltool.pl
else
CP=-copy /y
RM=-del /q /f
endif
else
CP=cp -f
RM=rm -f
endif

⌨️ 快捷键说明

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