1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - MB 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#---------------------------------------------------------------------------- 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 for details. 27 28TARGET_PLATFORM := ALL 29TWL_ARCHGEN := HYBRID 30 31include ../make_common 32 33 34############################################################################### 35# Settings specific for children 36 37SRCS += main.c child.c 38# Module for the overlay test 39SRCS_OVERLAY += overlay_test/func_1.c \ 40 overlay_test/func_2.c \ 41 overlay_test/func_3.cpp 42 43MAKEROM_ROMROOT = . 44MAKEROM_ROMFILES = ./data 45 46include $(TWLSDK_ROOT)/build/buildtools/commondefs 47 48#---------------------------------------------------------------------------- 49 50ifeq ($(TARGET_PLATFORM),TWL) 51LCFILE_SPEC = main.TWL.lsf 52else 53LCFILE_SPEC = main.lsf 54endif 55 56INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) 57INSTALL_DIR = ../parent/data 58 59#---------------------------------------------------------------------------- 60 61do-build: $(TARGETS) 62 63include $(TWLSDK_ROOT)/build/buildtools/modulerules 64 65 66#===== End of Makefile ===== 67 68