- in Lib/gcj/cni.i: remove JvAllocObject(), change
JvCreateJavaVM() argument from void* to JvVMInitArgs*
- in Examples/{python|perl5|ruby|tcl}/java/Makefile:
pass full class name to gcjh, add Example.h as dependency,
do not override CXX for compiling C++ sources
- in Examples/python/java/example.i:
add destructor to class to prevent memory loss complaint
22 lines
567 B
Makefile
22 lines
567 B
Makefile
TOP = ../..
|
|
SWIG = $(TOP)/../preinst-swig
|
|
CXXSRCS =
|
|
TARGET = example
|
|
INTERFACE = example.i
|
|
LIBS = -lm
|
|
|
|
check: build
|
|
$(MAKE) -f $(TOP)/Makefile ruby_run
|
|
|
|
build: Example.class Example.h
|
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
|
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
|
CXXSHARED="gcj -fpic -shared Example.class" LIBS="-lstdc++" DEFS='' ruby_cpp
|
|
|
|
clean:
|
|
$(MAKE) -f $(TOP)/Makefile ruby_clean
|
|
rm -f *.class Example.h
|
|
|
|
Example.class Example.h: Example.java
|
|
gcj -fPIC -C -c -g Example.java
|
|
gcjh Example.class
|