summaryrefslogtreecommitdiff
path: root/make.defs
blob: b5b47fa4872ad3e6d535596853c51d5d9177a860 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# vim: filetype=make
#
# defaults
CXX = g++

LEX = flex
BISON = bison
CXXFLAGS = -pipe -g -O2 ${WARNINGS}
WARNINGS = -include src/warnings.hpp

# Location of gtest source tree. It must contain the file src/gtest-all.cc
# Note: linking against a precompiled library is NOT supported;
# it may have used different CXXFLAGS. See
# http://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog
GTEST_DIR = /usr/src/gtest

# works on both x86 and x86_64
override CXX += -std=c++0x
# for linking
override CC = ${CXX}

override CXXFLAGS += -fstack-protector -fno-strict-aliasing