1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - PRC
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-18#$
15# $Rev: 8573 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19SUBDIRS				=
20
21#----------------------------------------------------------------------------
22TARGET_PLATFORM		= TWL NITRO
23
24SRCS				=
25PATTERN_SOURCE		= src/patterns.c
26PATTERN_HEADER		= include/patterns.h
27PATTERN_TARGETS		= $(PATTERN_SOURCE) $(PATTERN_HEADER)
28PATTERNS			= data/patterns.txt
29LNEWDIRS			= ./src ./include
30#LDIRT_CLEAN		= $(LNEWDIRS)
31TWL_FORCE_BUILD 	= 1
32
33#----------------------------------------------------------------------------
34include	$(TWLSDK_ROOT)/build/buildtools/commondefs
35
36do-build:			$(PATTERN_TARGETS)
37
38pattern:			$(PATTERN_TARGETS)
39
40$(PATTERN_SOURCE): $(PATTERNS)
41	$(PERL) $(ROOT)/tools/bin/pdic2c.pl -c -C $@ -H $(PATTERN_HEADER) 64 $<
42
43$(PATTERN_HEADER): $(PATTERNS)
44	$(PERL) $(ROOT)/tools/bin/pdic2c.pl -h -H $@ 64 $<
45
46include	$(TWLSDK_ROOT)/build/buildtools/modulerules
47
48#===== End of Makefile =====
49