1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - buildsetup - libcxx
4# File:     Makefile
5#
6# Copyright 2003-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
19TARGET_PLATFORM		= NITRO
20NITRO_FORCE_BUILD	= True
21
22include	$(TWLSDK_ROOT)/build/buildtools/commondefs
23
24TARGET_SRC_LIBDIR	= $(CW_ARMDIR)/msl/MSL_C++/MSL_ARM/Lib
25TARGET_SRC_LIBS		= MSL_C++_NITRO_A_LE.a			\
26					  MSL_C++_NITRO_A_LE_strb.a		\
27					  MSL_C++_NITRO_Ai_LE.a			\
28					  MSL_C++_NITRO_Ai_LE_strb.a	\
29					  MSL_C++_NITRO_T_LE.a			\
30					  MSL_C++_NITRO_T_LE_strb.a
31
32TMPDIR				= ./lib
33
34# install
35INSTALL_TARGETS		= $(addprefix $(TMPDIR)/,$(subst C++,CXX,$(TARGET_SRC_LIBS)))
36INSTALL_DIR			= $(ROOT)/lib/CodeWarrior
37LDIRT_CLEAN			= $(ROOT)/lib/CodeWarrior
38
39#----------------------------------------------------------------------------
40
41do-build:
42	@$(MKDIRP) $(TMPDIR)
43	@$(foreach FILE,$(TARGET_SRC_LIBS),\
44		$(CP) $(TARGET_SRC_LIBDIR)/$(FILE) \
45			$(TMPDIR)/$(subst _C++_,_CXX_,$(FILE)) $(AND)) true
46
47include	$(TWLSDK_ROOT)/build/buildtools/modulerules
48
49#----- End of Makefile -----
50