1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - wvr - with_mb - child
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:: 2009-12-02#$
15# $Rev: 11218 $
16# $Author: okubata_ryoma $
17#----------------------------------------------------------------------------
18
19# Only SRL files that are NITRO or TWL-HYBRID builds allow children to distribute data.
20# The MB library distributes NITRO applications, so even if a HYBRID ROM is distributed to a TWL system, it will boot in NTR mode.
21#
22#
23# See the MB Library Overview in the Function Reference Manual for more information.
24
25TARGET_PLATFORM	:=	ALL
26TWL_ARCHGEN		:=	HYBRID
27
28INCDIR      =   ../common/include ./include
29SRCDIR      =   ./src ../common/src
30
31LLIBRARIES  =   libwvr$(TWL_LIBSUFFIX).a
32
33SRCS        =   main.c      \
34                font.c      \
35                disp.c      \
36                common.c    \
37                gmain.c
38
39# WH module was moved to wireless_shared
40WH_DIR      =   $(ROOT)/build/demos/wireless_shared/wh
41SRCDIR      +=  $(WH_DIR)
42INCDIR      +=  $(WH_DIR)
43SRCS        +=  $(WH_DIR)/wh.c
44MACRO_FLAGS += -DSHARED_WH
45
46
47TARGET_BIN  =   child.srl
48
49#------------------------------------------------------#
50# Component definition where the wireless library is positioned inside VRAM #
51
52DEFAULT_COMP_ARM7	=	ichneumon
53
54#------------------------------------------------------#
55
56include $(TWLSDK_ROOT)/build/buildtools/commondefs
57
58
59#-------------------------------#
60#   install target              #
61#-------------------------------#
62INSTALL_TARGETS =   $(TARGETS)
63
64INSTALL_DIR = ../data
65
66
67#----------------------------------------------------------------------------
68
69do-build:       $(TARGETS)
70
71include $(TWLSDK_ROOT)/build/buildtools/modulerules
72
73
74
75#===== End of Makefile =====
76