📄 makefile
字号:
## Copyright 2008 by Texas Instruments Incorporated.# # All rights reserved. Property of Texas Instruments Incorporated.# Restricted rights to use, duplicate or disclose this code are# granted through contract.# ### ======== makefile ========# GNUmake-based makefile.## This file describes the build for a Codec Engine Server. This makefile has# special sections to accomodate inclusion of the Codec Engine, while the rest# is standard GNU make. Codec Engine-specific additions are marked with# the [CE] tag.# [CE] define EXAMPLES_ROOTDIR to point to root of <CE/examples> directoryEXAMPLES_ROOTDIR := $(CURDIR)/../../../../../../..# [CE] include the file that defines paths to XDC packages and XDC toolsinclude $(EXAMPLES_ROOTDIR)/xdcpaths.mak# [CE] name of the server executableSERVER_EXE := video_copy.x64P# [CE] name of the server release packageSERVER_PKG := ti.sdo.ce.examples.servers.video_copy.evmDM6446SERVER_PKG_ARCHIVE := $(subst .,_,$(SERVER_PKG)).tar# add the examples repository to the package path.# This is necessary because this server's configuration uses the codecs# in the examples repositoryXDC_PATH := $(EXAMPLES_ROOTDIR);$(XDC_PATH)# The compiler path and name are read from xdcpaths.mak aboveCGTOOLS = $(CGTOOLS_C64X)# compiler, linkerCC = $(CGTOOLS)/$(CC_C64X)LINK = $(subst cl6x,lnk6x,$(CC))# [CE] Configuro settings. CONFIGPKG is the basename of your application's# config scriptCONFIGPKG = video_copy# [CE] Name the xdc target and platformXDCTARGET = ti.targets.C64PXDCPLATFORM = ti.platforms.evmDM6446# [CE] configuro-generated filesCOMPILER_FILE = $(CONFIGPKG)/compiler.optLINKER_FILE = $(CONFIGPKG)/linker.cmd# [CE] The path to the configuro utilityCONFIGURO = XDCPATH="$(XDC_PATH)" $(XDC_INSTALL_DIR)/xs xdc.tools.configuro# [CE] Augment the standard $(CFLAGS) variable, adding the# Configuro-generated compiler file.CFLAGS = -@ $(COMPILER_FILE)# final executableall: $(SERVER_PKG_ARCHIVE)# [CE] The generated linker and compiler files depend on the generated# config package$(LINKER_FILE) $(COMPILER_FILE) : $(CONFIGPKG)# [CE] The generated config package depends on the 2 config scripts$(CONFIGPKG) : $(CONFIGPKG).cfg $(CONFIGPKG).tcf $(CONFIGURO) -c $(CGTOOLS) -o $(CONFIGPKG) \ -t $(XDCTARGET) -p $(XDCPLATFORM) \ --tcf $(CONFIGPKG).cfg# "normal" makefile settings and rules follow.%.obj : %.c $(COMPILER_FILE) $(CC) $(CFLAGS) -c $<# app.out, in addition to its standard stuff, must specify the# auto-generated $(LINKER_FILE)$(SERVER_EXE): main.obj $(LINKER_FILE) $(LINK) -o $@ -c $^# @cp $(CONFIGPKG)/$@.info.js . # create server release package and archive it; the package # contains the executable and some meta-info files$(SERVER_PKG_ARCHIVE): $(SERVER_EXE) @echo "Creating server release:" @rm -rf package package.* @echo "package $(SERVER_PKG) {}" > package.xdc @echo "Pkg.otherFiles = ['./$(SERVER_EXE)','package/info']" > package.bld @mkdir package ; cp -R $(CONFIGPKG)/package/info package @$(XDC_INSTALL_DIR)/xdc XDCPATH="$(XDC_PATH)" release @rm -f package.bld package.mak .[idle]*# clean ruleclean: rm -rf $(SERVER_EXE) $(SERVER_PKG_ARCHIVE) *.obj package package.* $(CONFIGPKG)## @(#) ti.sdo.ce.examples.servers.video_copy.evmDM6446; 1, 0, 0,55; 1-14-2008 09:54:58; /db/atree/library/trees/ce-g30x/src/#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -