1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - MB
4# File:     Makefile
5#
6# Copyright 2004-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#----------------------------------------------------------------------------
22# Only NITRO programs can run on child devices
23TARGET_PLATFORM	:= NITRO
24
25INCDIR			 =	../common/include ./include
26SRCDIR			 =	./src ../common/src
27
28SRCS			 =	main.c		\
29					font.c		\
30					disp.c		\
31					common.c	\
32					gmain.c
33
34SHARED_WH		:= TRUE
35
36ifdef	SHARED_WH
37# WH module was moved to wireless_shared
38
39WH_DIR			 =	$(ROOT)/build/demos/wireless_shared/wh
40SRCDIR			+=	$(WH_DIR)
41INCDIR			+=	$(WH_DIR)
42SRCS			+=	$(WH_DIR)/wh.c
43MACRO_FLAGS		+= -DSHARED_WH
44
45else
46# The original source code has been retained as well
47
48SRCS			+=	wmhigh.c
49
50endif	#SHARED_WH
51
52
53TARGET_BIN		 =	child.srl
54
55include	$(TWLSDK_ROOT)/build/buildtools/commondefs
56
57#-------------------------------#
58#   Install target		#
59#-------------------------------#
60INSTALL_TARGETS	 =	$(TARGETS)
61INSTALL_DIR		 = ../data
62
63#----------------------------------------------------------------------------
64
65do-build:		$(TARGETS)
66
67include	$(TWLSDK_ROOT)/build/buildtools/modulerules
68
69
70#===== End of Makefile =====
71