1#! make -f
2#---------------------------------------------------------------------------
3#  Project:  TwlSDK - tools
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 TWL
20
21include $(TWLSDK_ROOT)/build/buildtools/commondefs
22
23ifneq ($(filter TWL,$(TARGET_PLATFORM_LIST)),)
24BANNER_ICON		+= myGameIcon.TWL.bin
25BANNER_SPEC		+= myGameBanner.TWL.bsf
26endif
27ifneq ($(filter NITRO,$(TARGET_PLATFORM_LIST)),)
28BANNER_ICON		+= myGameIcon.bmp
29BANNER_SPEC		+= myGameBanner.bsf
30endif
31
32
33TARGETS			 = $(BANNER_SPEC:.bsf=.bnr)
34INSTALL_DIR		 = ..
35INSTALL_TARGETS	 = $(TARGETS)
36
37BANNER_ICON_NAME = $(basename $(BANNER_ICON))
38BANNER_ICON_MIDDLE	= $(addprefix $(BANNER_ICON_NAME), .nbfs .nbfc .nbfp)
39
40LDIRT_CLEAN		 = $(TARGETS) \
41				   $(BANNER_ICON_MIDDLE) \
42				   $(TARGETS:.bnr=.srl)
43
44include $(TWLSDK_ROOT)/build/buildtools/modulerules
45
46#----------------------------------------------------------------------------
47#  build
48#----------------------------------------------------------------------------
49do-build:		$(TARGETS)
50
51ifeq ($(TARGET_PLATFORM),TWL)
52$(TARGETS):		$(BANNER_SPEC) $(BANNER_ICON)
53			$(MAKEBANNER) -p TWL $(BANNER_SPEC) $(TARGETS)
54else
55$(TARGETS):		$(BANNER_SPEC) $(BANNER_ICON) $(BANNER_ICON_MIDDLE)
56			$(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS)
57endif
58
59#----------------------------------------------------------------------------
60#  test
61#----------------------------------------------------------------------------
62ifeq ($(TARGET_PLATFORM),TWL)
63include $(TWLSDK_ROOT)/build/buildtools/twl/commondefs.emtype.IS
64else
65include $(TWLSDK_ROOT)/build/buildtools/nitro/commondefs.emtype.IS
66endif
67
68test:			$(TARGETS)
69			$(ADDBANNER) $(TARGETS) $(TARGETS:.bnr=.srl)
70ifdef	ISD_NITLOAD
71			$(ISD_NITLOAD) $(TARGETS:.bnr=.srl)
72endif
73
74#
75