1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - WM - demo - wireless-all 4# File: Makefile.icon 5# 6# Copyright 2006-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:: 2009-01-27#$ 15# $Rev: 9920 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18TARGET_PLATFORM = TWL NITRO 19 20include $(TWLSDK_ROOT)/build/buildtools/commondefs 21 22#---------------------------------------------------------------------------- 23 24DATA_DIR = ./data/image 25WLICON_DIR = $(ROOT)/data/wl_icons 26 27SRC_FILES = $(wildcard $(WLICON_DIR)/wireless_strength_level_*_b.bmp) 28TGT_FILES = $(patsubst $(WLICON_DIR)/wireless_strength_level_%_b.bmp,linkimg%.dat,$(SRC_FILES)) 29 30TARGETS = $(addprefix $(DATA_DIR)/,$(TGT_FILES)) 31 32LDIRT_CLEAN = $(TARGETS) 33 34#---------------------------------------------------------------------------- 35 36do-build: $(TARGETS) 37 38 39# Convert the bitmap for the link strength icon to binary data 40$(DATA_DIR)/linkimg%.dat : $(WLICON_DIR)/wireless_strength_level_%_b.bmp 41 $(ROOT)/tools/bin/ntexconv.exe -no -bg -bgb -bgf palette16 $(call cygpathm,$<) >/dev/null && \ 42 cat $(basename $<).nbfp $(basename $<).nbfc > $(basename $@).dat && \ 43 rm $(basename $<).nbfp $(basename $<).nbfc $(basename $<).nbfs 44 45 46#---------------------------------------------------------------------------- 47 48include $(TWLSDK_ROOT)/build/buildtools/modulerules 49 50#===== End of Makefile ===== 51