aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/java/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/java/Makefile')
-rw-r--r--externals/gridflow/java/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/externals/gridflow/java/Makefile b/externals/gridflow/java/Makefile
new file mode 100644
index 00000000..867d2b78
--- /dev/null
+++ b/externals/gridflow/java/Makefile
@@ -0,0 +1,39 @@
+#!/usr/bin/make
+
+# JMAX = /opt/lib/jmax
+# JMAX = /usr/local/lib/jmax
+
+include ../config.make
+include ../bundled/jmax/Makefiles/Makefile.$(JMAX_ARCH)
+JMAX = $(prefix)/lib/jmax
+CLASSPATH=".:$(JMAX)/java/classes/jmax.jar:$(JMAX)/packages/guiobj/java/classes/guiobj.jar:$(JMAX)/java/lib/jacl/jacl.jar:$(JMAX)/java/lib/jacl/tcljava.jar"
+
+OBJS = \
+gridflow/FtsPeepholeObject.class \
+gridflow/Peephole.class \
+gridflow/PeepholeControlPanel.class \
+gridflow/GridFlowExtension.class \
+gridflow/PeepholeControlPanel\$1.class \
+gridflow/PathInfo.class
+
+SRC = \
+FtsPeepholeObject.java \
+Peephole.java \
+PeepholeControlPanel.java \
+GridFlowExtension.java \
+PathInfo.java
+
+# libPeephole.so
+
+JC = javac -classpath $(CLASSPATH) -O
+
+all: gridflow.jar
+
+clean::
+ rm -f $(OBJS) gridflow.jar PathInfo.java
+
+gridflow.jar: $(SRC)
+ mkdir gridflow || true
+ $(JC) -d . $(SRC)
+ /bin/rm -f gridflow.jar
+ jar -cvf gridflow.jar gridflow/*.class