#
# Copyright 2006 Sony Computer Entertainment Inc.
#
# Licensed under the MIT Open Source License, for details please see license.txt or the website
# http://www.opensource.org/licenses/mit-license.php
#

ifeq ($(ROOT_DIR),)
	ERR := $(error You must define ROOT_DIR before including this file (from $CURDIR))
endif


include $(ROOT_DIR)/build/buildpath

# Visual C++ Compiler Version VCC8 or VCC7
ifeq ($(MSVC),)
MSVC					:= VC8
endif
ifeq ($(MSVC),VC8)
VCC						:= $(VCC8)
endif
ifeq ($(MSVC),VC7)
VCC						:= $(VCC7)
endif

# HOST can be WIN32 or LINUX, default is WIN32
ifeq ($(HOST),)
HOST					:= WIN32
endif

# TARGET_PLATFORM could be WIN32, CELL
ifeq ($(TARGET_PLATFORM),)
TARGET_PLATFORM 		:= WIN32
endif
MAKEDEFS_NAME = $(addsuffix $(TARGET_PLATFORM),MakeDefs_)
include $(ROOT_DIR)/build/$(MAKEDEFS_NAME)

# COLLADA_DOM_VERSION could be 1.3, 1.4, 1.41
ifeq ($(COLLADA_DOM_VERSION),)
COLLADA_DOM_VERSION 	:= 1.4
endif

# BUILD can be DEBUG or RELEASE, default is DEBUG
ifeq ($(BUILD),)
BUILD 					:= debug
endif

ifeq ($(BUILD),debug)
BUILD_LIB 				:= lib-dbg
DEFINE_NAMES			+= DEBUG _DEBUG
endif

ifeq ($(BUILD),release)
BUILD_LIB 				:= lib
DEFINE_NAMES			+= NDEBUG
endif

