1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - wvr - switchover 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:: 2009-06-24#$ 15# $Rev: 10808 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18 19TARGET_PLATFORM := NITRO TWL 20TWL_ARCHGEN := HYBRID 21 22 23SRCS = main.c font.c wireless_main.c graphic_main.c 24 25LLIBRARIES = libwvr$(TWL_LIBSUFFIX).a 26 27# Use wc sample module 28WH_DIR = $(ROOT)/build/demos/wireless_shared/wh 29SRCS += $(WH_DIR)/wh.c 30LINCLUDES = $(WH_DIR) 31 32#------------------------------------------------------# 33# Component definition where the wireless library is positioned inside VRAM # 34 35DEFAULT_COMP_ARM7 = ichneumon 36 37#------------------------------------------------------# 38TARGET_BIN = main.srl 39 40include $(TWLSDK_ROOT)/build/buildtools/commondefs 41 42#---------------------------------------------------------------------------- 43 44# ichneumon.TWL is included only in the CWforDSi version because of its size. Therefore, do not build demos that use it. 45ifneq ($(SDK_CW_BUILD_VERSION_CC),) 46ifeq ($(shell expr "$(SDK_CW_BUILD_VERSION_CC)" "<=" 3.0),1) 47TARGET_PLATFORM_LIST := $(filter-out TWL, $(TARGET_PLATFORM_LIST)) 48endif 49endif 50 51#---------------------------------------------------------------------------- 52 53do-build: $(TARGETS) 54 55#---------------------------------------------------------------------------- 56 57include $(TWLSDK_ROOT)/build/buildtools/modulerules 58 59#===== End of Makefile ===== 60