#! make -f
#----------------------------------------------------------------------------
# Project:  TwlSDK - demos.TWL - lcfg - simple-1
# File:     Makefile
#
# Copyright 2008 Nintendo.  All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law.  They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: 2008-05-23#$
# $Rev: 6226 $
# $Author: hatamoto_minoru $
#----------------------------------------------------------------------------

override TARGET_PLATFORM    =   TWL
override TWL_PROC           =   ARM9

TARGET_BIN  =   main.srl

SRCS        =   main.c

LLIBRARIES  =   liblcfg$(TWL_LIBSUFFIX).a


#-------------------------
#-- use custom RSF

ROM_SPEC			=	demo.autogen.rsf
ROM_SPEC_TEMPLATE	=	$(ROOT)/include/twl/specfiles/ROM-TS_sys.rsf
ROM_SPEC_PARAM		=	NANDAccess=TRUE		\
						Secure=TRUE			\


#----------------------------------------------------------------------------

include $(TWLSDK_ROOT)/build/buildtools/commondefs

MAKEROM      := $(TWL_TOOLSDIR)/bin/makerom.TWL.secure.exe

#----------------------------------------------------------------------------

do-build:   $(TARGETS)

#----------------------------------------------------------------------------

include $(TWLSDK_ROOT)/build/buildtools/modulerules

#===== End of Makefile =====