about summary refs log tree commit diff homepage
path: root/stp/Makefile.common.in
diff options
context:
space:
mode:
Diffstat (limited to 'stp/Makefile.common.in')
-rw-r--r--stp/Makefile.common.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/stp/Makefile.common.in b/stp/Makefile.common.in
new file mode 100644
index 00000000..a88e35ed
--- /dev/null
+++ b/stp/Makefile.common.in
@@ -0,0 +1,16 @@
+# -*- Makefile -*-
+
+CFLAGS := @CFLAGS@
+CXXFLAGS := @CXXFLAGS@ -O2
+LDFLAGS := @LDFLAGS@ -lstdc++
+
+# use the darmin test as a proxy for detecting Mac OS X
+ifneq ($(shell uname -s), Darwin)
+  CFLAGS += -static
+endif
+
+CXXFLAGS += -Wall -DEXT_HASH_MAP
+
+LEX := flex
+YACC := bison -d -y --debug -v
+RANLIB := ranlib