📄 makefile
字号:
DIR_LOCAL := apps/tmdap
#***********************************************************************
# Do not change the following include
#***********************************************************************
include $(_TMROOT)/sde/environment.mk
#-----------------------------------------------------------------------
# Source environment variables
#-----------------------------------------------------------------------
CXX_SOURCES =
C_SOURCES = tmdap.c
VPATH += $(_TMTGTCPUCLASS)_$(_TMTGTOSCLASS)
#-----------------------------------------------------------------------
# Required components
#-----------------------------------------------------------------------
REQUIRES = \
tmosal \
tmutil \
tmml \
tmbslCore \
tmbslBoards \
tmDbg \
tmMain \
LIBS += \
tmDbg \
tmSpOsal \
tmutil \
tmml \
tmbslCore \
tmbslBoards \
tmMain \
#-------------------------------------------------------------------------------
# Required external libraries. Specify complete paths.
#-------------------------------------------------------------------------------
ifeq ($(findstring _pnx1700_, $(_TMDIVERSITY)),_pnx1700_)
DAVP_LIB_DIR= ../../../zpav8_lib/pnx1700/
else
DAVP_LIB_DIR= ../../../zpav8_lib/pnx1500/
endif #ifeq ($(findstring _pnx1700_, $(_TMDIVERSITY)),_pnx1700_)
EXTERNAL_LIBS = $(DAVP_LIB_DIR)/libzpav8 \
$(DAVP_LIB_DIR)/libzpav8mem \
$(DAVP_LIB_DIR)/libzpav8tools \
$(DAVP_LIB_DIR)/libzpav8avi \
#-----------------------------------------------------------------------
# Build flags for just this application:
#-----------------------------------------------------------------------
# Defining DBG_ENABLE_ALL enables tmDbg fcts even in release builds.
# So does DBG_ENABLE_ASSERTS. This flag overrides both DBG_ENABLE_ALL
# and DBG_DISABLE_ALL.
LOCAL_CFLAGS += -O5
#-----------------------------------------------------------------------
# Directory for non-default location of header files
# In this case, the environment specific location
#-----------------------------------------------------------------------
DIR_INCLUDE =
DIR_INCLUDE += ../../../zpav8_inc
#-----------------------------------------------------------------------
# Convert _pnxNNNN_ diversity into Nexperia NNNN (the PNX chip identifier)
# NOTE: The TMFL_PNX_ID flag is only defined if the pnxNNNN diversity exists.
#-----------------------------------------------------------------------
ifneq (,$(subst pnx,,$(filter pnx%, $(subst _, ,$(_TMDIVERSITY)))))
LOCAL_CFLAGS += -DTMFL_PNX_ID=$(subst pnx,,$(filter pnx%, $(subst _, ,$(_TMDIVERSITY))))
endif # ifneq (,$(subst pnx,,$(filter pnx%, $(subst _, ,$(_TMDIVERSITY)))))
#-------------------------------------------------------------------------------
# Handle the user-defined diversities _jtagmon_, _ethermon_ for monitor type
#-------------------------------------------------------------------------------
include $(_TMROOT)/$(_TMDIVERSITYMKLOC)/mon.mk
#-------------------------------------------------------------------------------
# Handle the user-defined diversity _td_ for TimeDoctor
#-------------------------------------------------------------------------------
include $(_TMROOT)/$(_TMDIVERSITYMKLOC)/td.mk
#-------------------------------------------------------------------------------
# Handle the user-defined diversity _md_ for tmMemDbg
#-------------------------------------------------------------------------------
include $(_TMROOT)/$(_TMDIVERSITYMKLOC)/md.mk
#-------------------------------------------------------------------------------
# Handle the user-defined diversity _tt_ for tmTfeTrace
#-------------------------------------------------------------------------------
include $(_TMROOT)/$(_TMDIVERSITYMKLOC)/tt.mk
#-----------------------------------------------------------------------
# name of the target to build
#-----------------------------------------------------------------------
TARGET = tmdap
#-----------------------------------------------------------------------
# Do not change this
#-----------------------------------------------------------------------
all: configuration target
ifneq ($(DIR_CONFIG),_)
include $(DIR_SDE)/$(DIR_CONFIG)/maketarget$(_TMBSL).mk
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -