1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - MB 4# File: Makefile 5# 6# Copyright 2005-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-10-15#$ 15# $Rev: 8948 $ 16# $Author: nishimoto_takashi $ 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# When distributing a TWL-HYBRID child, add CHILD_ROM_TYPE=HYBRID to make. 24# The MB library distributes NITRO applications, so even on a TWL system the distributed HYBRID ROM will boot in NTR mode. 25# 26# 27# See the MB Library Overview in the Function Reference for details. 28 29ifeq ($(CHILD_ROM_TYPE),HYBRID) 30 TARGET_PLATFORM := TWL 31 TWL_ARCHGEN := HYBRID 32else 33 TARGET_PLATFORM := NITRO 34endif 35 36include ../make_common 37 38 39############################################################################### 40# Settings specific for children 41 42SRCS += main.c child.c 43# Module for the overlay test 44SRCS_OVERLAY += overlay_test/func_1.c \ 45 overlay_test/func_2.c \ 46 overlay_test/func_3.cpp 47 48MAKEROM_ROMROOT = . 49MAKEROM_ROMFILES = ./data 50 51include $(TWLSDK_ROOT)/build/buildtools/commondefs 52 53#---------------------------------------------------------------------------- 54 55ifeq ($(TARGET_PLATFORM),TWL) 56LCFILE_SPEC = main.TWL.lsf 57else 58LCFILE_SPEC = main.lsf 59endif 60 61INSTALL_TARGETS = $(BINDIR)/$(TARGET_BIN) 62INSTALL_DIR = ../parent/data 63 64#---------------------------------------------------------------------------- 65 66do-build: $(TARGETS) 67 68include $(TWLSDK_ROOT)/build/buildtools/modulerules 69 70 71#===== End of Makefile ===== 72 73