⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 TI达芬奇DSP.rar 好的例子
💻
字号:
##  ======== makefile =======#  GNUmake-based makefile for linuxonly speech sample app.## This file simulates 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 AUDCP_ROOTDIR to point to root of example directoryAUDCP_ROOTDIR := $(CURDIR)/..# [CE] include the file that defines paths to XDC packages and XDC toolsinclude $(AUDCP_ROOTDIR)/xdcpaths.mak# [CE] add the examples directory itself to the list of paths to packagesXDC_PATH := $(AUDCP_ROOTDIR);$(XDC_PATH)# [CE] include the makefile that runs XDC configuration step for our# program configuration script.## Input:# XDC_CFGFILE: location of the program configuration script (if in different#              directory, include the relative path to the file)# Implicit input: XDC_ROOT and XDC_PATH defined by the xdcpaths.mak above## Output:# XDC_FLAGS:   additional compiler flags that must be added to existing #              CFLAGS or CPPFLAGS# XDC_CFILE:   name of the XDC-generated C file; usually does not need to be#              used explicitly, the existing .c->.o rules will take care of it# XDC_OFILE:   name of object file produced by compiling XDC-generated C file;#              must be linked with the user's application# XDC_LFILE:   list of Codec Engine libraries that must be supplied to the#              linker (usually as `cat $(XDC_LFILE)`)# Implicit output: rule that generates .c file from the program configuration#              script (XDC_CFGFILE); rule to generate dummy package one dir.#              level below the script; rule that cleans generated files# File "xdccfg_linuxarm.mak" is included here to run XDC configuration step.XDC_CFGFILE = ./ceapp.cfginclude       $(AUDCP_ROOTDIR)/xdccfg_linuxarm.mak# [CE] Augment the standard $(CPPFLAGS) variable, adding the# $(XDC_FLAGS) variable, defined by the file above, to it.CPPFLAGS += $(XDC_FLAGS)# "normal" makefile settings and rules follow, with some additions for CE# This app consists of the main, codec-engine unrelated app.c file, and# the codec-engine-using appcfg.c file.%.o : %.c	$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<# compiler (do we need -MD for dependencies?)CC=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi/bin/gcc \    -g -Wall -Os# link all the object files# [CE] app.out, in addition to its standard stuff, includes a compiled# XDC-generated $(XDC_CFILE) and link list file $(XDC_LFILE)app.out: app.o ceapp.o $(XDC_OFILE)	$(CC) -g -o $@ $^ `cat $(XDC_LFILE)` -lpthreadall: app.out# clean rule; must be a :: rule because CE's xdccfg.mak defines clean::, tooclean::	rm -rf app.out *.o testruns

⌨️ 快捷键说明

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