F
for.fun
Hi everybody,
I actually have the following problem :
I have a Java/JNI application which mixes ".h", ".cpp", ".java" (native
and regular files)
In order to compile everything easily, I did a Makefile.
I know that "javac" resolves the dependencies but because I have to
generate ".h" files from ".class", I had to include the Java
compilation in my Makefile.
To be clearer, here is my compilation chain :
javac javah CC
X.java => X.class => X.h => X.o
X.cpp
All this chain is achieved thanks to my Makefile.
It works but not as well as I expect it to.
My problem is :
1/ Consider that "Y.java" depends on "X.java"
2/ If "Y.java" is compiled later, it involves "X.java" to be compiled
again.
3/ Consequently, the modify time of "X.java" is changed so all the long
job starting from "X.class" is done again and my Makefile takes a while
....
Is there a way to disable the "javac" automatic dependency resolution
in order to completely manage it in a Makefile ?
Do you have another issue which could help me ?
Thanks in advance.
I actually have the following problem :
I have a Java/JNI application which mixes ".h", ".cpp", ".java" (native
and regular files)
In order to compile everything easily, I did a Makefile.
I know that "javac" resolves the dependencies but because I have to
generate ".h" files from ".class", I had to include the Java
compilation in my Makefile.
To be clearer, here is my compilation chain :
javac javah CC
X.java => X.class => X.h => X.o
X.cpp
All this chain is achieved thanks to my Makefile.
It works but not as well as I expect it to.
My problem is :
1/ Consider that "Y.java" depends on "X.java"
2/ If "Y.java" is compiled later, it involves "X.java" to be compiled
again.
3/ Consequently, the modify time of "X.java" is changed so all the long
job starting from "X.class" is done again and my Makefile takes a while
....
Is there a way to disable the "javac" automatic dependency resolution
in order to completely manage it in a Makefile ?
Do you have another issue which could help me ?
Thanks in advance.