summaryrefslogtreecommitdiff
path: root/Examples/python/java/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/java/Makefile')
-rw-r--r--Examples/python/java/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Examples/python/java/Makefile b/Examples/python/java/Makefile
new file mode 100644
index 0000000..326a4da
--- /dev/null
+++ b/Examples/python/java/Makefile
@@ -0,0 +1,25 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+CXXSRCS =
+TARGET = example
+INTERFACE = example.i
+LIBS = -lm
+
+all:: Example.class
+ $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' CXX="gcj" \
+ CXXSHARED="gcj -fpic -shared Example.class" DEFS='' LIBS="-lstdc++" python_cpp
+
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+ rm -f *.class Example.h
+
+check: all
+
+
+Example.class: Example.java
+ gcj -fPIC -C -c -g Example.java
+ gcjh Example
+