1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - MB - multiboot-PowerSave
4# File:     Makefile
5#
6# Copyright 2005-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# Because the MB library samples use wireless features, multiple development units with the same communications environment (wireless or wired LAN) are required.
22#
23# The mb_child_NITRO.srl and mb_child_TWL.srl sample programs in the $TwlSDK/bin/ARM9-TS/Rom/ directory provide the same features as those present with a commercial system's IPL for a child during DS Download Play. Load these binaries on other systems just like any sample program and then run them together.
24#
25#
26#
27#
28
29#----------------------------------------------------------------------------
30TARGET_PLATFORM		 =	TWL NITRO
31
32SRCS				 =	common.c data.c dispfunc.c menu.c parent.c main.c
33
34TARGET_NEF			 =	main.nef
35TARGET_BIN			 =	main.srl
36
37# makerom settings
38MAKEROM_ROMROOT		 =	./data
39MAKEROM_ROMFILES	 =	*.srl
40
41
42include	$(TWLSDK_ROOT)/build/buildtools/commondefs
43
44#----------------------------------------------------------------------------
45
46ifeq ($(TARGET_PLATFORM),TWL)
47ROM_SPEC			 =	main.TWL.rsf
48LCFILE_SPEC			 =	main.TWL.lsf
49else
50ROM_SPEC			 =	main.rsf
51LCFILE_SPEC			 =	main.lsf
52endif
53
54#----------------------------------------------------------------------------
55
56do-build:			$(TARGETS)
57
58include	$(TWLSDK_ROOT)/build/buildtools/modulerules
59
60ifdef	TWL_ELFTOBIN
61$(TARGETS): $(ELFTOBIN_ARM7)
62
63else	#TWL_ELFTOBIN
64$(TARGETS): $(MAKEROM_ARM7)
65
66endif	#TWL_ELFTOBIN
67
68
69#===== End of Makefile =====
70