summaryrefslogtreecommitdiff
path: root/cpp/options-rhel3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/options-rhel3.mk')
-rw-r--r--cpp/options-rhel3.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpp/options-rhel3.mk b/cpp/options-rhel3.mk
new file mode 100644
index 0000000000..c84cab94b1
--- /dev/null
+++ b/cpp/options-rhel3.mk
@@ -0,0 +1,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