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

# 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