1#! make -f
2#----------------------------------------------------------------------------
3# Project:  TwlSDK - demos - FS - overlay-compressed
4# File:     Makefile
5#
6# Copyright 2007-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-10-20#$
15# $Rev: 11101 $
16# $Author: mizutani_nakaba $
17#----------------------------------------------------------------------------
18TARGET_PLATFORM	 = TWL NITRO
19
20SUBDIRS          =
21
22BASEDIR          = $(ROOT)/build/demos/fs/overlay
23SRCDIR           = $(BASEDIR)/src
24INCDIR           = $(BASEDIR)/include
25
26#----------------------------------------------------------------------------
27
28TARGET_BIN       = main.srl
29TWL_COMPRESS     = TRUE
30
31SRCS             = main.c
32SRCS_OVERLAY     = func_1.c func_2.c func_3.c
33
34include	$(TWLSDK_ROOT)/build/buildtools/commondefs
35include	$(TWLSDK_ROOT)/build/buildtools/commondefs.gx.demolib
36
37ifeq ($(TARGET_PLATFORM),TWL)
38LCFILE_SPEC      = $(BASEDIR)/ARM9.TWL-TS.lsf
39else
40LCFILE_SPEC      = $(BASEDIR)/ARM9-TS.lsf
41endif
42
43# When using a compression specification list prepared by the local host
44#ifeq ($(TARGET_PLATFORM),TWL)
45#COMPSTATIC_SPEC_FILE    = compspec.TWL.list
46#else
47#COMPSTATIC_SPEC_FILE    = compspec.list
48#endif
49
50#----------------------------------------------------------------------------
51
52do-build:		$(TARGETS)
53
54include	$(TWLSDK_ROOT)/build/buildtools/modulerules
55
56#===== End of Makefile =====
57