1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - MB - multiboot
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# Because the MB library samples use the multiboot functionality, multiple development units with the same communications environment (wired or wireless) are required.
22# The mb_child.bin sample program in the $TwlSDK/bin/ARM9-TS/Release directory provides the same functionality as a commercial system that is a multiboot child. Load this binary on other systems just like a sample program and run them together.
23#
24#
25#
26#
27#
28
29#----------------------------------------------------------------------------
30TARGET_PLATFORM		=	TWL NITRO
31
32SRCS				=	common.c data.c dispfunc.c parent.c main.c
33TARGET_NEF			=	main.nef
34TARGET_BIN			=	main.srl
35
36#SRCDIR				=	# using default
37
38# makerom settings
39MAKEROM_ROMROOT		=	./data
40MAKEROM_ROMFILES	=	*.srl
41
42include	$(TWLSDK_ROOT)/build/buildtools/commondefs
43
44#----------------------------------------------------------------------------
45
46ifeq ($(TARGET_PLATFORM),TWL)
47ROM_SPEC			=	main.TWL.rsf
48LCFILE_SPEC			=	ARM9.TWL-$(TWL_PLATFORM).lsf
49else
50ROM_SPEC			=	main.rsf
51LCFILE_SPEC			=	ARM9-$(NITRO_PLATFORM).lsf
52endif
53
54#----------------------------------------------------------------------------
55
56do-build:			$(TARGETS)
57
58include	$(TWLSDK_ROOT)/build/buildtools/modulerules
59
60ifdef	NITRO_ELFTOBIN
61$(TARGETS): $(ELFTOBIN_ARM7)
62
63else	#NITRO_ELFTOBIN
64$(TARGETS): $(MAKEROM_ARM7)
65
66endif	#NITRO_ELFTOBIN
67
68
69#===== End of Makefile =====
70