1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - libraries - dsp - g711 4# File: Makefile 5# 6# Copyright 2007-2008 Nintendo. All rights reserved. 7# 8# These coded instructions, statements, and computer programs contain 9# proprietary information of Nintendo of America Inc. and/or Nintendo 10# Company Ltd., and are protected by Federal copyright law. They may 11# not be disclosed to third parties or copied or duplicated in any form, 12# in whole or in part, without the prior written consent of Nintendo. 13# 14# $Date:: 2008-09-18#$ 15# $Rev: 8573 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18 19SUBDIRS = 20 21#---------------------------------------------------------------------------- 22override TARGET_PLATFORM := TWL 23 24TWL_CODEGEN ?= ALL 25TWL_PROC = ARM9 26TWL_ARCHGEN ?= ALL 27 28SRCDIR = ../ARM9.TWL/src src 29INCDIR = ../common/include 30 31SRCS = dsp_g711.c 32 33# Standard DSP component group that should be statically linked 34DSPCOMPONENTS_NAME = audio 35 36DSPCOMPONENTS_DIR = $(ROOT)/dspcomponents 37DSPCOMPONENTS_SRCS = $(foreach name,$(DSPCOMPONENTS_NAME),$(DSPCOMPONENTS_DIR)/$(name)/$(name)) 38DSPCOMPONENTS_OBJS = $(patsubst %,$(OBJDIR)/dsp_firm_%.o,$(DSPCOMPONENTS_NAME)) 39 40TARGET_LIB = libdsp_g711$(TWL_LIBSUFFIX).a 41 42#---------------------------------------------------------------------------- 43include $(TWLSDK_ROOT)/build/buildtools/commondefs 44 45INSTALL_TARGETS = $(TARGETS) 46INSTALL_DIR = $(TWL_INSTALL_LIBDIR) 47 48#---------------------------------------------------------------------------- 49 50do-build: $(DSPCOMPONENTS_OBJS) $(TARGETS) 51 52include $(TWLSDK_ROOT)/build/buildtools/modulerules 53 54OBJS_M += $(DSPCOMPONENTS_OBJS) 55 56$(OBJDIR)/dsp_firm_audio.o : $(DSPCOMPONENTS_DIR)/audio/audio.a 57 $(BIN2OBJ) --compatible -r -b DSPiFirmware_audio $(call empath,$<) $@ >/dev/null 58 59 60#===== End of Makefile ===== 61