Make target for compiling java classes only?
Ken.Cavanaugh at Sun.COM
Thu Jan 10 11:50:17 PST 2008
On Jan 10, 2008, at 9:09 AM, Kelly O'Hair wrote:
> Some of the java sources are generated, from Makefile logic. So no
> you can't
> just do a javac `find . -name \*.java`.
> But in general, the java compilations and the native compilations
> are done
> together as each part of the jdk areas are built.
> The corba,
CORBA generates quite a bit of code during the build, so just
won't work at all there. There is no native code (except the CLI
aren't in the CORBA workspace now as I recall).
> jaxp, jaxws, langtools directories are almost 100% java, and I don't
> think need to generate any java code or rely on native code being
> compiled, but
> I'm not 100% sure of that.
> But the jdk directory and it's makefiles are the ones that contain
> the core
> java sources, with some generated sources, and the native
> compilation scattered
> all around in it.
> Historically in jdk6 and older source bases, the jdk directory
> (formerly called
> "j2se") was built in such a bootstrap way that it was necessary to
> build all
> the native code with the java classes so that the resulting classes
> could actually
> be run during the build.
> With jdk7 this need to run what you built during the build has gone
> away quite a bit
> with the creation/separation of the langtools directory.
> So it's becoming more possible to separate the build into phases
> that could be
> done to the complete source base, e.g. import_files, prep_tools,
> compile_java_classes, create_javah_headers,
> compile_native_code, ... etc.
> I have no idea if this will ever happen, but it is now at least
> Roman Kennke wrote:
>> Hi there,
>> I'm looking for a make target, that compiles only the Java classes of
>> OpenJDK. Is there a way to do that? Thanks,
More information about the build-dev