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

📄 makefile

📁 au1200 linux2.6.11 硬件解码mae驱动和maiplayer播放器源码
💻
字号:
# <LIC_AMD_STD># Copyright (C) 2003-2005 Advanced Micro Devices, Inc.  All Rights Reserved.# # Unless otherwise designated in writing, this software and any related # documentation are the confidential proprietary information of AMD. # THESE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY# UNLESS OTHERWISE NOTED IN WRITING, EXPRESS OR IMPLIED WARRANTY OF ANY # KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, # NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR PURPOSE AND IN NO # EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES WHATSOEVER. # # AMD does not assume any responsibility for any errors which may appear # in the Materials nor any responsibility to support or update the# Materials.  AMD retains the right to modify the Materials at any time, # without notice, and is not obligated to provide such modified # Materials to you. AMD is not obligated to furnish, support, or make# any further information available to you.# </LIC_AMD_STD> # <CTL_AMD_STD># </CTL_AMD_STD> # <DOC_AMD_STD># Filename: Makefile# Targets:#    libmaividrend.so - video 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=maividrend# TOPDIR is the "main" top directoryTOPDIR=../../../..MAIDIR=$(TOPDIR)/maiMAI_INC=$(MAIDIR)/incMAEDIR=$(TOPDIR)/maeifeq ("$(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)# commands usedMAKE=makeCC=gccCXX=g++LD=ldAR=arCOMPILER=$(CC)LINKER=$(LD)# Common compile/link attributesLDLIBS=-lc -lpthread -ldlLDFLAGS = -sharedCFLAGS=$(GCFLAGS) -O4DEFINES = -DLINUX -DOS_Linux -D_USRDLL -DNDEBUGINCLUDES=-I../ -I../../ -I$(MAIDIR)/inc  -I$(MAEDIR)/mae-driver-2 -I$(MAEDIR)/mae-wrapperifeq "$(BUILD_MODE)" "debug"CFLAGS+=-gendififeq ($(ARCHNAME),mips)DEFINES+=-DMIPS DEFINES+=-DMAE_SUPPORT endifOBJ = $(TARGETINTDIR1)/mai_osal.o \	$(TARGETINTDIR1)/mai_component.o \	$(TARGETINTDIR1)/video_out.o \	$(TARGETINTDIR1)/mai_compbase.o \	$(TARGETINTDIR1)/maividrend.oCOMPILE=$(COMPILER) -c $(CFLAGS) $(DEFINES) -o "$(TARGETINTDIR1)/$(*F).o" $(INCLUDES) "$<"# Pattern rules$(TARGETINTDIR1)/%.o : ../../%.c	$(COMPILE)$(TARGETINTDIR1)/%.o:	$(MAIDIR)/src/%.c	$(COMPILE)$(TARGETINTDIR1)/%.o:	$(MAIDIR)/%.c	$(COMPILE)# 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)"# 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 + -