summaryrefslogtreecommitdiff
path: root/cpp/options-rhel3.mk
blob: c84cab94b192e793213f4f7a3a6f15052a9aeea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Expects dependencies in ~/local
#

RELEASE := 1

# Configure Boost.
BOOST_CXXFLAGS := -I$(HOME)/local/boost-1.33.1/include/boost-1_33_1
CXXFLAGS := $(CXXFLAGS) $(BOOST_CXXFLAGS)

# Configure CppUnit.
CPPUNIT_CFLAGS := `cppunit-config --cflags`
CPPUNIT_LDFLAGS := `cppunit-config --libs`
CXXFLAGS := $(CXXFLAGS) $(CPPUNIT_CFLAGS)

#
# RedHat Enterprise 3 g++ can't handle -Wextra etc so remove them.
#

WARN := -Werror -pedantic -Wall -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wno-system-headers