##
# This file should modify the following variables
# as appropriate:
#   - CXXFLAGS
#   - GTEST_CXXFLAGS
#   - OPT
#   - EXE
# 
# Additionally, set the following variables to build
# demo/lang using the Microsoft Visual Studio compiler.
#   - CC_STANC
#   - CFLAGS_STANC
#   - OUTPUT_OPTION_STANC
##

EXE = .exe
O_STANC = 3
GTEST_CXXFLAGS += -DGTEST_HAS_PTHREAD=0
PATH_SEPARATOR = '\'
## Detecting Process Bitness:
## http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspx
ifeq ($(PROCESSOR_ARCHITECTURE)$(PROCESSOR_ARCHITEW6432),x86)
  BIT?=32
else
  BIT?=64
endif
ifeq (g++,$(CC_TYPE))
  CXXFLAGS += -m$(BIT)
  CXXFLAGS += -Wno-unused-but-set-variable
  LDLIBS += -static-libgcc
  LDLIBS += -static-libstdc++
endif
ifeq (mingw32-g++,$(CC_TYPE))
  LDLIBS += -static-libgcc
#  LDLIBS += -static-libstdc++
endif
ifeq (clang++,$(CC_TYPE))
endif

