>>>>> On Sat, 06 Oct 2001 11:53:29 -0400, "Kyle F. Downey" <[EMAIL PROTECTED]> >said:
> What I lack are good examples, and good documentation on making > these combinations. I saw in May there was a debate on this list > about the best way to combine MacOS X "bundle"-based JNI libraries > with standard autoconf, but no real solution seemed to come of > that. I read the Goat Book, but it doesn't cover JNI, and doesn't > cover MacOS X at all (for obvious reasons). I added the following to the top level Makefile.am file to handle the Mac OS X ## The following is for Mac OS X. ## This was was contributed by Chris Jones ## <[EMAIL PROTECTED]> bundle: ( cd hippo; make ) ( cd jni; make ) rm -rf jni/*.o c++ -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers \ -I. -DHAVE_STRSTREAM -o libhippoplot.jnilib -framework JavaVM \ jni/*.cxx pattern/*.cxx projectors/*.cxx reps/*.cxx src/*.cxx \ transforms/*.cxx binners/*.cxx functions/*.cxx datareps/*.cxx The `hippo' directory contains the Java sources and has standard Makefile.am for Java including building a .jar file. The `jni' directory contains the JNI code including rules in the Makefile.am file for generating the headers (BUILT_SOURCES) with javah. The remaining directories contain C++ I can send you the hippo/Makefile.am and jni/Makefile.am if you'd like to see them.