automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JNI, automake, MacOS X and mingw32 (oh my!)


From: Paul F. Kunz
Subject: Re: JNI, automake, MacOS X and mingw32 (oh my!)
Date: Sun, 07 Oct 2001 01:10:51 -0700

>>>>> On Sat, 06 Oct 2001 11:53:29 -0400, "Kyle F. Downey" <address@hidden> 
>>>>> 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
## <address@hidden>

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]