diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-09 15:22:38 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-17 20:24:24 +0100 |
commit | 7717134caf490d306b69a80d9be89c655f2dfc91 (patch) | |
tree | db2a98fcf5dea877a6d02a194ae03618ca833323 /platform/java/Makefile | |
parent | b1085c6816c093409c745a41567c8c3009917e27 (diff) | |
download | mupdf-7717134caf490d306b69a80d9be89c655f2dfc91.tar.xz |
java: Allow custom compiler flags.
Diffstat (limited to 'platform/java/Makefile')
-rw-r--r-- | platform/java/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/java/Makefile b/platform/java/Makefile index e20a0230..5b1fcffd 100644 --- a/platform/java/Makefile +++ b/platform/java/Makefile @@ -38,14 +38,16 @@ LIBRARY_JAVA_SOURCES := $(sort $(wildcard src/com/artifex/mupdf/fitz/*.java)) LIBRARY_JAVA_OBJECTS := $(LIBRARY_JAVA_SOURCES:%.java=%.class) LIBRARY_JAVA_CLASSES := $(subst src/com/artifex/mupdf/fitz/,com.artifex.mupdf.fitz.,$(LIBRARY_JAVA_SOURCES:%.java=%)) +JAVAC_FLAGS := $(JAVAC_XFLAGS) -source 1.7 -target 1.7 + $(LIBRARY_JAVA_OBJECTS) : $(LIBRARY_JAVA_SOURCES) - javac -source 1.7 -target 1.7 $^ + javac $(JAVAC_FLAGS) $^ EXAMPLE_JAVA_SOURCES := $(sort $(wildcard example/*.java)) EXAMPLE_JAVA_OBJECTS := $(EXAMPLE_JAVA_SOURCES:%.java=%.class) $(EXAMPLE_JAVA_OBJECTS) : $(EXAMPLE_JAVA_SOURCES) - javac -source 1.7 -target 1.7 -classpath .:src $^ + javac $(JAVAC_FLAGS) -classpath .:src $^ libmupdf.jar : $(LIBRARY_JAVA_OBJECTS) rm -f $@ |