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:: 2009-06-24#$ 15# $Rev: 10808 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18 19TARGET_PLATFORM := NITRO TWL 20TWL_ARCHGEN := HYBRID 21 22# Creates child boot binary 23SUBDIRS = child 24 25 26# Because the MB library samples use the multiboot functionality, multiple development units with the same communications environment (wired or wireless) are required. 27# 28# 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. 29# 30# 31# 32# 33 34 35#---------------------------------------------------------------------------- 36 37INCDIR = common/include parent/include 38SRCDIR = common/src parent/src 39SRCS = main.c \ 40 common.c \ 41 disp.c \ 42 font.c \ 43 gmain.c 44 45LLIBRARIES = libwvr$(TWL_LIBSUFFIX).a 46 47# WH module was moved to wireless_shared 48 49WH_DIR = $(ROOT)/build/demos/wireless_shared/wh 50SRCDIR += $(WH_DIR) 51INCDIR += $(WH_DIR) 52SRCS += $(WH_DIR)/wh.c 53 54# MBP was moved to wireless_shared 55 56MBP_DIR = $(ROOT)/build/demos/wireless_shared/mbp 57SRCDIR += $(MBP_DIR) 58INCDIR += $(MBP_DIR) 59SRCS += $(MBP_DIR)/mbp.c 60 61TARGET_NEF = main.nef 62TARGET_BIN = main.srl 63 64# It is safer to set a slightly large IRQ stack size in the LCF file when running complex processes within the MB callback. 65# 66# Because OS_Printf() in particular consumes a large amount of stack, try using the lighter version, OS_TPrintf(), in callbacks whenever possible. 67# 68 69# makerom settings 70MAKEROM_ROMROOT = ./data 71MAKEROM_ROMFILES = *.srl 72 73#------------------------------------------------------# 74# Component definition where the wireless library is positioned inside VRAM # 75 76DEFAULT_COMP_ARM7 = ichneumon 77 78#------------------------------------------------------# 79 80include $(TWLSDK_ROOT)/build/buildtools/commondefs 81 82#---------------------------------------------------------------------------- 83 84# ichneumon.TWL is included only in the CWforDSi version because of its size. Therefore, do not build demos that use it. 85ifneq ($(SDK_CW_BUILD_VERSION_CC),) 86ifeq ($(shell expr "$(SDK_CW_BUILD_VERSION_CC)" "<=" 3.0),1) 87TARGET_PLATFORM_LIST := $(filter-out TWL, $(TARGET_PLATFORM_LIST)) 88endif 89endif 90 91#---------------------------------------------------------------------------- 92 93ifeq ($(TARGET_PLATFORM),TWL) 94ROM_SPEC = main.TWL.rsf 95else 96ROM_SPEC = main.rsf 97endif 98 99do-build: $(TARGETS) 100 101#---------------------------------------------------------------------------- 102 103include $(TWLSDK_ROOT)/build/buildtools/modulerules 104 105ifdef TWL_ELFTOBIN 106$(TARGETS): $(ELFTOBIN_ARM7) 107 108else #TWL_ELFTOBIN 109$(TARGETS): $(MAKEROM_ARM7) 110 111endif #TWL_ELFTOBIN 112 113#===== End of Makefile ===== 114