1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - simpleShoot-2 4# File: Makefile 5# 6# Copyright 2007-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-15#$ 15# $Rev: 8479 $ 16# $Author: kitase_hirotake $ 17#---------------------------------------------------------------------------- 18 19SUBDIRS = 20 21#---------------------------------------------------------------------------- 22TARGET_PLATFORM := TWL 23 24TARGET_BIN = main.srl 25MAKEROM_ROMROOT = $(TWLSDK_ROOT)/data 26MAKEROM_ROMFILES = shutter_sound/*.wav videorec_sound/*.wav 27 28SRCS = main.c snd_data.c 29 30SRCDIR = src ../simpleShoot-1/src 31INCDIR = include ../simpleShoot-1/include 32 33DATA_DIR = $(ROOT)/data/rec_icon 34DATA_OBJS = $(OBJDIR)/rec_icon.o 35EXT_OBJS += $(DATA_OBJS) 36 37include $(TWLSDK_ROOT)/build/buildtools/commondefs 38include $(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib 39 40 41#---------------------------------------------------------------------------- 42 43do-build: $(TARGETS) 44 45include $(TWLSDK_ROOT)/build/buildtools/modulerules 46 47$(OBJDIR)/%.o : $(DATA_DIR)/%.bmp 48 $(NTEXCONV) -no -bg -bgb -bgf direct $(call cygpathm,$<) >/dev/null && \ 49 $(BIN2OBJ) --compatible $(basename $(call cygpathm,$<)).nbfs $@ >/dev/null 50 rm $(basename $<).nbfs 51 52#===== End of Makefile ===== 53