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

📄 makefile

📁 au1200 linux2.6.11 硬件解码mae驱动和maiplayer播放器源码
💻
字号:
# <LIC_AMD_STD># Copyright (c) 2005 Advanced Micro Devices, Inc.# # This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.# # This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# # You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA# # The full GNU General Public License is included in this distribution in the# file called COPYING# </LIC_AMD_STD> # <CTL_AMD_STD># </CTL_AMD_STD> # <DOC_AMD_STD># Filename: Makefile# Targets:#    libmaiaacdec.so - Audio Renderer MAI component shared lib## Inputs (optional):			             #    BUILD_MODE: release, debug, profile#    BUILDSDIR:  top level output directory (binaries)#    INSTALLDIR:  directory to copy final target#    GCFLAGS: global compile flags (passed to all makefiles)# </DOC_AMD_STD> COMPNAME=maiaacdec# TOPDIR is the "main" top directoryTOPDIR=../../../../..MAIDIR=$(TOPDIR)/maiMAI_INC=$(MAIDIR)/incifeq ("$(BUILDSDIR)", "")# Default, MAI Components all go to same top level builds directoryBUILDSDIR=.endif# ARCHNAME can be used for CPU specific build options (i.e. mips, i686, etc.)ARCHNAME?=$(strip $(shell uname -m))# TARGETSTARGETFILE1=lib$(COMPNAME).soTARGETFILE2=lib$(COMPNAME).a# If no configuration is specified, "Debug" will be usedifeq ("$(BUILD_MODE)", "")BUILD_MODE = debugendif# Handle "CFG" which is the variable passed by SlickEditifeq ("$(CFG)","Release")BUILD_MODE = releaseendififeq ("$(CFG)","Debug")BUILD_MODE = debugendif# Setup build directories and target file namesBUILDSSUBDIR=$(BUILDSDIR)/$(ARCHNAME)ifeq ("$(BUILD_MODE)", "debug")BUILDSSUBDIR=$(BUILDSDIR)/$(ARCHNAME)dbgendififeq ("$(BUILD_MODE)", "release")BUILDSSUBDIR=$(BUILDSDIR)/$(ARCHNAME)relendififeq ("$(BUILD_MODE)", "profile")BUILDSSUBDIR=$(BUILDSDIR)/$(ARCHNAME)profendif# TARGETINTDIR is the intermediate path (for object files) TARGETINTDIR1=$(BUILDSSUBDIR)/$(COMPNAME)# TARGETDIR1 is the final path for target executablesTARGETDIR1=$(BUILDSSUBDIR)/$(COMPNAME)TARGETDIR2=$(BUILDSSUBDIR)/$(COMPNAME)/static# TARGETPATH is full target filename with pathTARGETPATH1=$(TARGETDIR1)/$(TARGETFILE1)TARGETPATH2=$(TARGETDIR2)/$(TARGETFILE2)# Make command to use for dependenciesMAKE=makeCC=gccCXX=g++LD=ldAR=arCOMPILER=$(CC)LINKER=$(CC)# Common compile/link attributesLDLIBS=-lc -lpthread -ldlLDFLAGS = -shared -Xlinker --no-undefinedCFLAGS=$(GCFLAGS) -O4DEFINES = -DLINUX -DOS_Linux -D_USRDLL -DNDEBUG -DHAVE_MEMCPY=1 -DHAVE_STRCHR=1 -DUSE_TAGGING=1 -DHAVE_STDINT_H=1 -DSTDC_HEADERS=1INCLUDES=-I../ -I../../ -I../../include -I../../libfaad/codebook -I$(MAI_INC)ifeq "$(BUILD_MODE)" "debug"CFLAGS+=-gendififeq ($(ARCHNAME),mips)DEFINES+= -DNDEBUG -D_CONSOLE -DMIPS  -D_MBCS -DUSE_TAGGING=1 -DHAVE_STDINT_H=1 -DSTDC_HEADERS=1 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trapelseDEFINES+=-DUSE_X11_DISPLAYendifOBJ = $(TARGETINTDIR1)/common.o $(TARGETINTDIR1)/bits.o $(TARGETINTDIR1)/cfft.o $(TARGETINTDIR1)/decoder.o $(TARGETINTDIR1)/drc.o $(TARGETINTDIR1)/error.o \	$(TARGETINTDIR1)/filtbank.o $(TARGETINTDIR1)/hcr.o $(TARGETINTDIR1)/huffman.o $(TARGETINTDIR1)/ic_predict.o $(TARGETINTDIR1)/is.o $(TARGETINTDIR1)/lt_predict.o \	$(TARGETINTDIR1)/mdct.o $(TARGETINTDIR1)/mp4.o $(TARGETINTDIR1)/ms.o $(TARGETINTDIR1)/output.o $(TARGETINTDIR1)/pns.o $(TARGETINTDIR1)/pulse.o \	$(TARGETINTDIR1)/rvlc.o $(TARGETINTDIR1)/sbr_dct.o $(TARGETINTDIR1)/sbr_dec.o $(TARGETINTDIR1)/sbr_e_nf.o $(TARGETINTDIR1)/sbr_fbt.o $(TARGETINTDIR1)/sbr_hfadj.o \	$(TARGETINTDIR1)/sbr_hfgen.o $(TARGETINTDIR1)/sbr_huff.o $(TARGETINTDIR1)/sbr_qmf.o $(TARGETINTDIR1)/sbr_syntax.o $(TARGETINTDIR1)/sbr_tf_grid.o \	$(TARGETINTDIR1)/specrec.o $(TARGETINTDIR1)/ssr.o $(TARGETINTDIR1)/ssr_fb.o $(TARGETINTDIR1)/ssr_ipqf.o $(TARGETINTDIR1)/syntax.o $(TARGETINTDIR1)/tns.o \	$(TARGETINTDIR1)/mai_osal.o $(TARGETINTDIR1)/mai_component.o $(TARGETINTDIR1)/mai_compbase.o \	$(TARGETINTDIR1)/maiaacdec.o $(TARGETINTDIR1)/aacdecode.o COMPILE=$(COMPILER) -c $(CFLAGS) $(DEFINES) -o "$(TARGETINTDIR1)/$(*F).o" $(INCLUDES) "$<"COMPILES=$(COMPILER) -S $(CFLAGS) $(DEFINES) -o "$(TARGETINTDIR1)/$(*F).s" $(INCLUDES) "$<"# Pattern rules$(TARGETINTDIR1)/%.o : ../%.c	$(COMPILE)$(TARGETINTDIR1)/%.o : ../../%.c	$(COMPILE)$(TARGETINTDIR1)/%.o : ../../libfaad/%.c	$(COMPILE)#	$(COMPILES)# Build rulesall: target install# Build target onlytarget: $(TARGETPATH1) $(TARGETPATH2)# Install target in new locationifeq ("$(INSTALLDIR)", "")install:elseinstall:	@echo Installing $(COMPNAME) to $(INSTALLDIR)...	@mkdir -p $(INSTALLDIR)/static	@cp $(TARGETPATH1) $(INSTALLDIR)	@cp $(TARGETPATH2) $(INSTALLDIR)/staticendif$(TARGETPATH1): $(TARGETINTDIR1) $(OBJ)	mkdir -p "$(TARGETDIR1)" 	$(LINKER) $(LDFLAGS) -o "$(TARGETPATH1)" $(OBJ) $(LDLIBS)$(TARGETPATH2): $(TARGETINTDIR1) $(OBJ)	mkdir -p "$(TARGETDIR2)"	$(AR) rcs "$(TARGETPATH2)" $(OBJ)$(TARGETINTDIR1):	mkdir -p "$(TARGETINTDIR1)"$(TARGETINTDIR1)/%.o:	$(MAIDIR)/%.c	$(COMPILE)$(TARGETINTDIR1)/%.o:	$(MAIDIR)/src/%.c	$(COMPILE)# Rebuild this projectrebuild: cleanall all# Clean this projectclean:	rm -f $(TARGETPATH1)	rm -f $(OBJ)# Clean this project and all dependenciescleanall: clean

⌨️ 快捷键说明

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