#! make -f
#----------------------------------------------------------------------------
# Project:  TwlSDK - libraries - lcfg
# 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-04-11#$
# $Rev: 5429 $
# $Author: okubata_ryoma $
#----------------------------------------------------------------------------

SUBDIRS             =

#----------------------------------------------------------------------------
override TARGET_PLATFORM = TWL

# build ARM & THUMB libraries
TWL_CODEGEN        ?= ALL
TWL_PROC            = ARM9

# HYBRID / LIMITED ̃Cu쐬܂
TWL_ARCHGEN        ?= ALL

SRCS                = api.c NTRSettings.c TWLSettings.c TWLHWInfo.c TWLStoreFile.c

TARGET_LIB          = liblcfg$(TWL_LIBSUFFIX).a

include	$(TWLSDK_ROOT)/build/buildtools/commondefs

INSTALL_TARGETS		= $(TARGETS)
INSTALL_DIR         = $(TWL_INSTALL_LIBDIR)

LINCLUDES           = $(TWLSDK_ROOT)/build/libraries/spi/ARM9/include

#Zo[`gpꍇ
ifdef TWL_IPL_RED_ROOT
MACRO_FLAGS			+= -DTWL_HW_INFO_SIGNATURE_ENABLE_
LINCLUDES			+= $(call eupath,$(TWL_IPL_RED_ROOT))/include
endif

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

do-build:		$(TARGETS)

include	$(TWLSDK_ROOT)/build/buildtools/modulerules

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