summaryrefslogtreecommitdiff
path: root/Examples/tcl/java/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/tcl/java/Makefile')
-rw-r--r--Examples/tcl/java/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Examples/tcl/java/Makefile b/Examples/tcl/java/Makefile
new file mode 100644
index 0000000..1c6d4d0
--- /dev/null
+++ b/Examples/tcl/java/Makefile
@@ -0,0 +1,26 @@
+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" \
+ TCL_CXXSHARED="gcj -fpic -shared Example.class " LIBS="-lstdc++" DEFS='' tcl_cpp
+
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile tcl_clean
+ rm -f *.class Example.h
+
+check: all
+
+run:
+ tclsh runme.tcl
+
+Example.class: Example.java
+ gcj -fPIC -C -c -g Example.java
+ gcjh Example
+