import source from 1.3.40
[external/swig.git] / Examples / tcl / java / Makefile
1 TOP        = ../..
2 SWIG       = $(TOP)/../preinst-swig
3 CXXSRCS    = 
4 TARGET     = example
5 INTERFACE  = example.i
6 LIBS       = -lm
7
8 all:: Example.class
9         $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
10         TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' CXX="gcj"  \
11         TCL_CXXSHARED="gcj -fpic -shared Example.class " LIBS="-lstdc++" DEFS='' tcl_cpp
12
13
14 clean::
15         $(MAKE) -f $(TOP)/Makefile tcl_clean
16         rm -f *.class Example.h
17
18 check: all
19
20 run:
21         tclsh runme.tcl
22
23 Example.class: Example.java
24         gcj -fPIC -C -c -g Example.java
25         gcjh  Example
26