aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..f8eb955
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,19 @@
+PREFIX = /usr
+JAVADIR = $(PREFIX)/share/java
+
+INSTALLED_JAVAPATH = $$(dirname $$(dirname $$($(REALPATH) $$(which $(JAVAC) || type -p $(JAVAC)))))
+
+REALPATH = readlink -f
+CC = c99
+JAVA = java
+JAVAC = javac
+JAVADOC = javadoc
+JAR = jar
+JAVAH = javah
+# The Makefile will check whether $(JAVAH) exists, otherwise it will use $(JAVAC) with -h
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE\
+ -isystem "$(INSTALLED_JAVAPATH)/include"\
+ -isystem "$(INSTALLED_JAVAPATH)/include/$$(uname | tr '[A-Z]' '[a-z]')"
+CFLAGS = -Wall -O2 $(OS_CFLAGS) $(CPPFLAGS)
+LDFLAGS = -lgamma $(OS_LDFLAGS)