1#! make -f 2#--------------------------------------------------------------------------- 3# Project: TwlSDK - tips - TWLBanner_anim2 - banner 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-29#$ 15# $Rev: 8733 $ 16# $Author: ooshimay $ 17#--------------------------------------------------------------------------- 18 19TARGET_PLATFORM = TWL 20 21include $(TWLSDK_ROOT)/build/buildtools/commondefs 22 23BANNER_BASE = NBF 24BANNER_BMP = $(wildcard $(BANNER_BASE)/*.bmp) 25BANNER_SPEC = banner.bsf 26BANNER_XML = $(BANNER_BASE)/sample.xml 27 28TARGETS = $(BANNER_SPEC:.bsf=.bnr) 29 30# ntexconv conversion 31 32BANNER_ICON_NBF = $(patsubst %.bmp, %.nbfs,$(BANNER_BMP)) 33BANNER_NBF_FILES = $(patsubst %.bmp, %.nbfp,$(BANNER_BMP)) \ 34 $(patsubst %.bmp, %.nbfc,$(BANNER_BMP)) 35NTEXCONV_FLAGS = -f palette16 36 37# bannercvtr conversion 38 39BANNER_ICON_MIDDLE = $(addprefix $(basename $(BANNER_SPEC)), .ban) 40MAKEBANNER_FLAGS = -A $(BANNER_ICON_MIDDLE) 41 42BANNERCVTR_SRCS = $(BANNER_XML) 43 44LDIRT_CLEAN = $(TARGETS) \ 45 $(BANNER_ICON_NBF) \ 46 $(BANNER_ICON_MIDDLE) \ 47 $(BANNER_NBF_FILES) 48 49#---------------------------------------------------------------------------- 50 51do-build: $(BANNER_ICON_NBF) $(BANNER_ICON_MIDDLE) $(TARGETS) 52 53#---------------------------------------------------------------------------- 54include $(TWLSDK_ROOT)/build/buildtools/modulerules 55 56#===== End of Makefile ===== 57