added example of mixing hand written jni code with swig

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Harco de Hilster 2000-03-05 18:03:27 +00:00
commit f6f291ac35
6 changed files with 108 additions and 2 deletions

View file

@ -4,10 +4,13 @@ SRCS = example.c
TARGET = libexample
INTERFACE = example.i
SWIGOPT =
all::
all:: java
java::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' java
clean::
rm -f *_wrap* *.o core *~ *.so *.pm myperl
rm -f *_wrap* *.o core *~ *.so example.java

View file

@ -1 +1,8 @@
Simple example from users manual.
type:
make
javac *.java
export LD_LIBRARY_PATH=. # sh
setenv LD_LIBRARY_PATH . # csh
java main