#! make -f
#----------------------------------------------------------------------------
# Project:  NT Manual Viewer - Root - build - buildtools
# File:     commondefs
#
# Copyright (C)2007-2009 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.
#
# $Revision: 1758 $
#----------------------------------------------------------------------------

ifndef TWLMANUALTOOLS_COMMONDEFS_
TWLMANUALTOOLS_COMMONDEFS_ := TRUE

#----------------------------------------------------------------------------
#
# Root directory
#

TWLMANUALTOOLS_ROOT ?= C:/TwlManualTools


#----------------------------------------------------------------------------
#
# Region
#

TWLMANUALTOOLS_REGION	?= usa


#----------------------------------------------------------------------------
#
# import TWL-System commondefs
#

include	$(TWLSYSTEM_ROOT)/build/buildtools/commondefs


#----------------------------------------------------------------------------
#
# NT Manual Viewer Path settings
#

TWLMANUALTOOLS_CYG_ROOT			:= $(call eupath,$(TWLMANUALTOOLS_ROOT))

TWLMANUALTOOLS_BUILDTOOLSDIR	:= $(TWLMANUALTOOLS_CYG_ROOT)/build/buildtools
TWLMANUALTOOLS_TOOLSDIR			:= $(TWLMANUALTOOLS_CYG_ROOT)/tools

#----------------------------------------------------------------------------
#  PRIVATE FLAGS
#
-include $(TWLMANUALTOOLS_BUILDTOOLSDIR)/private/commondefs
-include $(TWLMANUALTOOLS_BUILDTOOLSDIR)/internal/commondefs

#----------------------------------------------------------------------------
#
# TWLMANUALTOOLS_INSTALL_ROOT
#

ifdef TWLMANUALTOOLS_INSTALL_ROOT
override TWLMANUALTOOLS_INSTALL_ROOT	:= $(call eupath,$(TWLMANUALTOOLS_INSTALL_ROOT))
endif
TWLMANUALTOOLS_INSTALL_ROOT 		?= $(TWLMANUALTOOLS_CYG_ROOT)

TWLMANUALTOOLS_INSTALL_INCDIR		:= $(TWLMANUALTOOLS_INSTALL_ROOT)/include
TWLMANUALTOOLS_INSTALL_TOOLSDIR		:= $(TWLMANUALTOOLS_INSTALL_ROOT)/tools
TWLMANUALTOOLS_INSTALL_LIBDIR		:= $(TWLMANUALTOOLS_INSTALL_ROOT)/lib/$(NITRO_LIBTYPE)

#----------------------------------------------------------------------------
### Compiler settings

-include $(TWLMANUALTOOLS_BUILDTOOLSDIR)/commondefs.cctype.$(NITRO_CCTYPE)


TWLMANUALTOOLS_ROOT_ 	:=	$(subst $(SPACE),\ ,$(subst \,/,$(TWLMANUALTOOLS_ROOT)))

TWLMANUALTOOLS_INCDIR_MODULES	=	LibM2d

LINCLUDES		+=	\
	$(TWLMANUALTOOLS_ROOT_)/include					\
	$(foreach module,$(TWLMANUALTOOLS_INCDIR_MODULES),	\
		$(TWLMANUALTOOLS_ROOT_)/../$(module)/include	\
	)

LLIBRARY_DIRS	+=	$(TWLMANUALTOOLS_ROOT_)/lib/$(NITRO_LIBTYPE)
TWLMANUALTOOLS_LIBS	=	m2d
LLIBRARIES		+=	$(foreach lib,$(TWLMANUALTOOLS_LIBS),libntmv$(lib)$(NITRO_LIBSUFFIX).a)


# TWLMANUALTOOLS_COMMONDEFS_
endif

#----- End of commondefs -----
