diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-21 12:45:26 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-21 12:45:26 +0200 |
commit | d2386fa0e3cc5e80fcfe51f07751d13676655d76 (patch) | |
tree | 5bb04bc188f3366fe2e50cca8e05020a8cf3cb6f /config.mk | |
parent | missed to set JAVA_HOME (diff) | |
download | jlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.gz jlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.bz2 jlibgamma-d2386fa0e3cc5e80fcfe51f07751d13676655d76.tar.xz |
Improve makefile, change license to ISC, change code style, remove dist/
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 19 |
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) |