os_win
##
# This file should modify the following variables
# as appropriate:
# - CFLAGS
# - CFLAGS_GTEST
# - 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
CFLAGS_GTEST += -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))
CFLAGS += -m$(BIT)
CFLAGS += -Wno-unused-function
CFLAGS += -Wno-uninitialized
CFLAGS += -Wno-unused-but-set
LDLIBS += -static-libgcc
LDLIBS += -static-libstdc++
endif
ifeq (mingw32-g++,$(CC_TYPE))
CFLAGS += -Wno-unused-function
CFLAGS += -Wno-uninitialized
LDLIBS += -static-libgcc
# LDLIBS += -static-libstdc++
endif
ifeq (clang++,$(CC_TYPE))
endif