add the java example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8183 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
898f60d079
commit
e484bb1721
6 changed files with 105 additions and 2 deletions
28
SWIG/Examples/perl5/java/Makefile
Normal file
28
SWIG/Examples/perl5/java/Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
CXX = gcj
|
||||
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" CFLAGS="-fPIC" \
|
||||
CXXSHARED="gcj -fPIC -shared Example.class" PERL5_CCFLAGS='' PERL5_EXP='' perl5_cpp
|
||||
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile perl5_clean
|
||||
rm -f *.class Example.h
|
||||
|
||||
check: all
|
||||
|
||||
run:
|
||||
perl runme.pl
|
||||
|
||||
Example.class: Example.java
|
||||
gcj -v || exit 0
|
||||
gcj -fPIC -C -c -g Example.java
|
||||
gcjh Example
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue