1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - wvr - simple
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
22SRCS        =   main.c font.c
23
24LLIBRARIES  =   libwvr$(TWL_LIBSUFFIX).a
25
26# Use the WH sample module
27WH_DIR      =   $(ROOT)/build/demos/wireless_shared/wh
28SRCS        +=  $(WH_DIR)/wh.c
29LINCLUDES   =   $(WH_DIR)
30
31#------------------------------------------------------#
32# Component definition where the wireless library is positioned inside VRAM #
33
34DEFAULT_COMP_ARM7	=	ichneumon
35
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