1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - GX - demos - UnitTours/2D_CharBg_Direct
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
22LINCLUDES		=	pictures
23
24#----------------------------------------------------------------------------
25
26SRCS			=	main.c data.c
27PICTURES		=	pictures/picture_256_256.ppm
28
29PICTURES_C		=	$(PICTURES:.ppm=.autogen.c)
30
31TARGET_BIN		=	main.srl
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
43PPMCONV			=	$(TOOLSDIR)/bin/ppmconv.exe
44
45#----------------------------------------------------------------------------
46
47do-build:		$(TARGETS)
48
49include	$(TWLSDK_ROOT)/build/buildtools/modulerules
50
51%.autogen.c:	%.ppm
52	$(PPMCONV) $< > $@
53
54$(OBJDIR)/data.o: data.c $(PICTURES_C)
55
56#===== End of Makefile =====
57