1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - GX - demos - UnitTours/2D_CharBg_256BMP
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#----------------------------------------------------------------------------
18TARGET_PLATFORM	= TWL NITRO
19
20SUBDIRS			 =
21
22#----------------------------------------------------------------------------
23SRCS			 = main.c
24PICTURES		 = pictures/picture_256_256_8bit.ppm
25LABEL_NAME		 = bitmapBG_256color
26
27PICTURES_C		 = $(PICTURES:.ppm=.autogen.c)
28SRCS			+= $(PICTURES_C)
29
30TARGET_BIN		 = main.srl
31LINCLUDES		 = pictures
32
33#SRCDIR			 = # using default
34#LCFILE			 = # using default
35
36LDIRT_CLEAN		 = $(PICTURES_C)
37
38include	$(TWLSDK_ROOT)/build/buildtools/commondefs
39include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
40
41#----------------------------------------------------------------------------
42
43PPMCONV8		 = $(TOOLSDIR)/bin/ppmconv8.exe
44
45#----------------------------------------------------------------------------
46
47do-build:		$(TARGETS)
48
49
50include	$(TWLSDK_ROOT)/build/buildtools/modulerules
51
52%.autogen.c:	%.ppm
53	$(PPMCONV8) $< $(LABEL_NAME) > $@
54
55#===== End of Makefile =====
56