📄 makefile
字号:
#
# All application Makefiles should define the following macros:
#
# NETOS_DIR : relative path to the "netos" toplevel
# BUILD_RAM_IMAGE : set to "0" if not desired, and to "1"
# if desired (and supported by platform)
# BUILD_ROM_IMAGE : set to "0" if not desired, and to "1"
# if desired (and supported by platform)
# APP_C_FILES : list of application specific "C" files
# (must all have a ".c" suffix)
# APP_C_FLAGS : application specific CFLAGS
# APP_CC_FILES : list of application specific "C++" files
# (must all have either a ".cc", ".C", or ".cxx" suffix)
# APP_CC_FLAGS : application specific CFLAGS for C++ compilation
# APP_ASM_FILES : list of application specific assembly files
# (must all have either a ".s", ".S", or ".arm" suffix)
# APP_ASM_FLAGS : application specific ASFLAGS for assembly
# APP_INCDIRS : list of application specific include directories
# in "-I.." format.
#
# APP_DESCRIPTION : Simple one line description of application
# (for applicable platforms, will be incorporated
# into the binary VPD)
#
# USE_SIMPLE_WEB_SERVER : set to "1" if desired (used for compatibility
# with older examples... links against a different
# set of libraries)
#
# INCLUDE_CXX_STARTUP : set to "1" to include C++ initialization libraries
#
# APP_OBJ_FILES : An optional veriable which can specify "extra"
# objects to be linked into an image which are
# not derived from c, c++, or assembly. The
# application Makefile bears the burden of providing
# rules to build these files if necessary.
#
# The application Makefile should also include VPATH specifications
# for all application source.
#
NETOS_DIR= ../../../..
BUILD_RAM_IMAGE= 1
BUILD_ROM_IMAGE= 0
APP_DESCRIPTION="NAFTPAPP Example Application"
vpath %.c ..
#
# This application is required to be platform specific. So, choose
# the code file based on the platform. At present, two platform
# "types" are supported, the standard one (used by the Net+50 and
# ns7520 hardware development kits) and the "Connect" one (used by
# the Connect ME, Connect EM, and Connect SP).
#
NAFTP_CODE_FILE := naftpapp.c
ifneq (,$(findstring :$(PLATFORM):,:connectme_lsk:))
vpath %.c $(NETOS_DIR)/connect/src/naftpapp
NAFTP_CODE_FILE := naftpapp_connect.c
endif
APP_C_FILES=root.c \
$(NAFTP_CODE_FILE)
APP_CC_FILES=
APP_ASM_FILES=
APP_C_FLAGS=
APP_CC_FLAGS=
APP_ASM_FLAGS=
APP_INCDIRS= -I..
#
# All "required" elements must be supplied prior to including the
# "core" Makefile and targets.
#
include $(NETOS_DIR)/src/linkerScripts/Makefile.app.inc
#
# Application specific macros and targets can go below here.
#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -