📄 targets.mf
字号:
# makefile fragment targets.mf
# this file specifies the targets and build types for this project
FRAGMENTS := $(FRAGMENTS) $(TopDir)/targets.mf
# EMBTARGETS and ALLTARGETS are defined to simplify source fragments
# EMBTARGETS specifies the embedded targets
EMBTARGETS := idp ads sh3
# PCTARGETS specifies the PC-based targets (DOS and Win32)
#PCTARGETS := dos win32
PCTARGETS := dos
# ...ALLTARGETS should be obvious
ALLTARGETS := $(PCTARGETS) $(EMBTARGETS)
# information for each target platform is stored in a makefile fragment
# with that target's name, eg "dos.mf" stores the variables for building DOS apps
# BUILDS specifies the names of the build types
# by default we define two build types, 'debug' and 'release'
BUILDS := debug release
# unique flags for each build type
# these flags 'add on' to the flags already specified in the individual makefiles,
# which for most cases means that they can also override the makefile
# if no extra flags are needed, leave the definition blank or don't define it at all
# variable names take the form <flagname>.<buildname>
# Valid flag names are CFLAGS and LDFLAGS
# valid build names are those listed in BUILDS above
# CFLAGS determines the compiler flags during each compilation
CFLAGS.debug := -g -O
CFLAGS.release := -O2
# LDFLAGS determines the flags passed to the linker
LDFLAGS.debug = -Wl,-M >$(@:.$(EXE)=.map)
LDFLAGS.release :=
ARFLAGS.dos = rv
# end of targets.mf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -