os_linux
##
# This file should modify the following variables
# as appropriate:
# - CFLAGS
# - CFLAGS_GTEST
# - EXE
# - PCH
##
ifeq (g++,$(CC_TYPE))
LDFLAGS += -lpthread
CFLAGS_GTEST += -DGTEST_HAS_PTHREAD=0
ifeq (4.8,$(CC_MAJOR).$(CC_MINOR))
CFLAGS += -Wno-unused-local-typedefs
endif
PCH = .gch
endif
ifeq (mingw32-g++,$(CC_TYPE))
CFLAGS += -m32
CFLAGS_GTEST += -DGTEST_HAS_PTHREAD=0
LDLIBS_STANC += -static-libgcc
LDLIBS_STANC += -static-libstdc++
LDLIBS += -static-libgcc
LDLIBS += -static-libstdc++
PCH = .gch
EXE = .exe
endif
ifeq (clang++,$(CC_TYPE))
# CFLAGS += -stdlib=libc++
# CFLAGS_GTEST += -DGTEST_USE_OWN_TR1_TUPLE
CFLAGS_GTEST += -DGTEST_HAS_PTHREAD=0
CFLAGS += -Wno-unused-function
CFLAGS += -Wno-uninitialized
#PCH = .pch
endif