1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - wvr - with_mb 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:: 2008-12-22#$ 15# $Rev: 9714 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18 19TARGET_PLATFORM := NITRO 20 21# Creates child boot binary 22SUBDIRS = child 23 24 25# Because the MB library samples use the multiboot functionality, multiple development units with the same communications environment (wired or wireless) are required. 26# 27# The mb_child.bin program in the directory $NitroSDK/bin/ARM9-TS/Release/ is a sample providing the same features as the multiboot child in the final commercial unit. Load this binary into other development units using the same method as for sample programs, and execute them together. 28# 29# 30# 31# 32 33 34#---------------------------------------------------------------------------- 35 36INCDIR = common/include parent/include 37SRCDIR = common/src parent/src 38SRCS = main.c \ 39 common.c \ 40 disp.c \ 41 font.c \ 42 gmain.c 43 44LLIBRARIES = libwvr$(NITRO_LIBSUFFIX).a 45 46# WH module was moved to wireless_shared 47 48WH_DIR = $(ROOT)/build/demos/wireless_shared/wh 49SRCDIR += $(WH_DIR) 50INCDIR += $(WH_DIR) 51SRCS += $(WH_DIR)/wh.c 52 53# MBP was moved to wireless_shared 54 55MBP_DIR = $(ROOT)/build/demos/wireless_shared/mbp 56SRCDIR += $(MBP_DIR) 57INCDIR += $(MBP_DIR) 58SRCS += $(MBP_DIR)/mbp.c 59 60 61TARGET_NEF = main.nef 62TARGET_BIN = main.srl 63 64ROM_SPEC = main.rsf 65 66# It is safer to set a slightly large IRQ stack size in the LCF file when running complex processes within the MB callback. 67# 68# Because OS_Printf() in particular consumes a large amount of stack, try using the lighter version, OS_TPrintf(), in callbacks whenever possible. 69# 70 71# ifeq ($(NITRO_PLATFORM),TEG) 72# MAKELCF_FLAGS += -DADDRESS_MAIN=0x02004000 73# else 74# MAKELCF_FLAGS += -DADDRESS_MAIN=0x02000000 75# endif 76# LCFILE_SPEC = main.lsf 77 78# makerom settings 79MAKEROM_ROMROOT = ./data 80MAKEROM_ROMFILES = *.srl 81 82#------------------------------------------------------# 83# Component definition where the wireless library is positioned inside VRAM # 84MY_COMPONENT_NAME = ichneumon 85MAKEROM_ARM7 = $(NITRO_COMPONENTSDIR)/$(MY_COMPONENT_NAME)/$(NITRO_BUILDTYPE_ARM7)/$(MY_COMPONENT_NAME)_sub.$(NITRO_ELF_EXT) 86#------------------------------------------------------# 87 88include $(TWLSDK_ROOT)/build/buildtools/commondefs 89 90#---------------------------------------------------------------------------- 91 92do-build: $(TARGETS) 93 94#---------------------------------------------------------------------------- 95 96include $(TWLSDK_ROOT)/build/buildtools/modulerules 97 98#===== End of Makefile ===== 99