From: Nigel Wade on 27 Jan 2010 06:01 On Tue, 26 Jan 2010 22:21:02 -0800, junyoung wrote: > Hi, > > Now, I am trying to get an include-path of jni.h file to use in my > Makefile. > > However, there is some difficult thing for me because the absolute path > of the header file is different according to platforms. > > in case of linux > $JAVA_HOME/include/linux > > in case of macos > $JAVA_HOME/Headers/ > > in case of solaris > $JAVA_HOME/include > > ..... all different.. > > > So.... > Is there any simple way to know an absolute path of the header file in > Makefile? > No, in general there is no easy way to get makefiles to work cross- platform. Typically you would have different targets with different dependencies, and compiler/linker arguments, for each OS. Even the structure of makefiles is not consistent across platforms. Solaris make is quite different from GNU make, although you can install GNU make on Solaris, which results in an easier life. -- Nigel Wade
|
Pages: 1 Prev: Read utf-8 char one by one Next: getResourceAsStream() problem |