##
# 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
  PCH = .gch
endif
ifeq (mingw32-g++,$(CC_TYPE))
#  CFLAGS += -m32
  CFLAGS_GTEST += -DGTEST_HAS_PTHREAD=0
  LDLIBS += -static-libgcc
  LDLIBS += -static-libstdc++
  PCH = .gch
  EXE = .exe
endif
ifeq (clang++,$(CC_TYPE))
  CFLAGS += -Wno-unused-function
  CFLAGS += -Wno-tautological-compare
  LDFLAGS += -lpthread
  #PCH = .pch
endif

