1#! make -f 2#--------------------------------------------------------------------------- 3# Project: TwlSDK - tools - makebanner-default 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 20 21include $(TWLSDK_ROOT)/build/buildtools/commondefs 22 23BANNER_ICON = default.bmp 24BANNER_SPEC = default.bsf 25 26TARGETS = $(BANNER_SPEC:.bsf=.bnr) 27INSTALL_DIR = $(TWL_INSTALL_INCDIR)/nitro/specfiles 28INSTALL_TARGETS = $(TARGETS) 29 30BANNER_ICON_NAME = $(basename $(BANNER_ICON)) 31 32LDIRT_CLEAN = $(TARGETS) \ 33 $(BANNER_ICON_NAME).nbfs \ 34 $(BANNER_ICON_NAME).nbfc \ 35 $(BANNER_ICON_NAME).nbfp \ 36 $(TARGETS:.bnr=.srl) 37 38include $(TWLSDK_ROOT)/build/buildtools/modulerules 39 40#---------------------------------------------------------------------------- 41# build 42#---------------------------------------------------------------------------- 43do-build: $(TARGETS) 44 45$(TARGETS): $(BANNER_SPEC) $(BANNER_ICON_NAME).nbfc $(BANNER_ICON_NAME).nbfp 46 $(MAKEBANNER) -N $(BANNER_ICON_NAME) $(BANNER_SPEC) $(TARGETS) 47 48#---------------------------------------------------------------------------- 49# test 50#---------------------------------------------------------------------------- 51include $(TWLSDK_ROOT)/build/buildtools/nitro/commondefs.emtype.IS 52 53test: $(TARGETS) 54 $(ADDBANNER) $(TARGETS) $(TARGETS:.bnr=.srl) 55ifdef ISD_NITLOAD 56 $(ISD_NITLOAD) $(TARGETS:.bnr=.srl) 57endif 58 59# 60