1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - MB
4# File:     Makefile
5#
6# Copyright 2004-2009 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-06-04#$
15# $Rev: 10698 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19SUBDIRS			 =
20
21#----------------------------------------------------------------------------
22# You can distribute an SRL file for a child only if it is a NITRO or TWL-HYBRID build.
23# The MB library distributes NITRO applications, so even on a TWL system, the distributed hybrid ROM will boot in NTR mode.
24#
25#
26# See the MB Library Overview in the Function Reference Manual for more information.
27TARGET_PLATFORM	:=	ALL
28TWL_ARCHGEN		:=	HYBRID
29
30INCDIR			 =	../common/include ./include
31SRCDIR			 =	./src ../common/src
32
33SRCS			 =	main.c		\
34					font.c		\
35					disp.c		\
36					common.c	\
37					gmain.c
38
39SHARED_WH		:= TRUE
40
41ifdef	SHARED_WH
42# WH module was moved to wireless_shared
43
44WH_DIR			 =	$(ROOT)/build/demos/wireless_shared/wh
45SRCDIR			+=	$(WH_DIR)
46INCDIR			+=	$(WH_DIR)
47SRCS			+=	$(WH_DIR)/wh.c
48MACRO_FLAGS		+= -DSHARED_WH
49
50else
51# The original source code has been retained as well
52
53SRCS			+=	wmhigh.c
54
55endif	#SHARED_WH
56
57
58TARGET_BIN		 =	child.srl
59
60include	$(TWLSDK_ROOT)/build/buildtools/commondefs
61
62#-------------------------------#
63#   Install target		#
64#-------------------------------#
65INSTALL_TARGETS	 =	$(TARGETS)
66INSTALL_DIR		 = ../data
67
68#----------------------------------------------------------------------------
69
70do-build:		$(TARGETS)
71
72include	$(TWLSDK_ROOT)/build/buildtools/modulerules
73
74
75#===== End of Makefile =====
76