1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - tcl - demos.TWL - tcl-1
4# File:     Makefile
5#
6#  Copyright 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-10-07#$
15#  $Rev: 8888 $
16#  $Author: onozawa_yuki $
17#----------------------------------------------------------------------------
18TARGET_PLATFORM		= TWL
19
20include $(TWLSDK_ROOT)/build/buildtools/commondefs
21MAKEBANNER			= $(TWL_TOOLSDIR)/bin/makebanner.TWL.exe
22
23ICON_DIR			= ../../../../demos/tips/BuildFinalRom/etc/banner
24
25BANNER_ICON			= $(ICON_DIR)/myGameIcon.bmp
26BANNER_SPEC			= banner_v3.bsf
27
28TARGETS				= banner.bnr
29INSTALL_DIR			= .
30INSTALL_TARGETS		= $(TARGETS)
31
32BANNER_ICON_NAME	= $(basename $(BANNER_ICON))
33BANNER_ICON_MIDDLE	= $(addprefix $(BANNER_ICON_NAME), .nbfs .nbfc .nbfp)
34
35LDIRT_CLEAN			= $(TARGETS) \
36					  $(BANNER_ICON_MIDDLE) \
37					  $(TARGETS:.bnr=.srl)
38
39include $(TWLSDK_ROOT)/build/buildtools/modulerules
40
41#----------------------------------------------------------------------------
42#  build
43#----------------------------------------------------------------------------
44do-build:		$(TARGETS)
45
46$(TARGETS):		$(BANNER_SPEC) $(BANNER_ICON) $(BANNER_ICON_MIDDLE)
47				$(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS)
48
49#
50