makefile

来自「Introduce how to Change the DVEVM6446 Me」· 代码 · 共 89 行

TXT
89
字号
##  Copyright 2007 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 for linuxonly speech sample app.## This file describes the build for a generic Linux application that# happens to use Codec Engine. This makefile has special sections to# accomodate inclusion of the codec engine, while the rest is standard.# 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] add the examples repository to the package path.# This is necessary because this application's configuration uses the codecs# in the examples repositoryXDC_PATH := $(EXAMPLES_ROOTDIR);$(XDC_PATH)# Update this to your build environment!CGTOOLS = /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le# compilerCC = $(CGTOOLS)/armv5tl-montavista-linuxeabi/bin/gcc# [CE] Configuro settings.  CONFIGPKG is the basename of your application's# config scriptCONFIGPKG = ceapp# [CE] Name the xdc target and platformXDCTARGET = gnu.targets.MVArm9XDCPLATFORM = 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 $(CPPFLAGS) variable, adding the# Configuro-generated compiler file.CPPFLAGS +=  $(shell cat $(COMPILER_FILE)) -g -Wall -Os# final executableall: app.out# [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	$(CONFIGURO) -c $(CGTOOLS) -o $(CONFIGPKG) \		-t $(XDCTARGET) -p $(XDCPLATFORM) \		$(CONFIGPKG).cfg# "normal" makefile settings and rules follow, with some additions for CE# This app consists of the main, codec-engine unrelated main.c file, and# the codec-engine-using app.c file.%.o : %.c $(COMPILER_FILE)	$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<# app.out, in addition to its standard stuff, must specify the# auto-generated $(LINKER_FILE)app.out: app.o ceapp.o $(LINKER_FILE)	$(CC) -o $@ $^ -lpthread# clean ruleclean:	rm -rf app.out *.o $(CONFIGPKG)##  @(#) ti.sdo.ce.examples.apps.video_copy.dualcpu; 1,0,0,33; 4-6-2007 17:42:32; /db/atree/library/trees/ce-f22x/src/#

⌨️ 快捷键说明

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