javac+packages+gcj+makefile=help_wanted

Per Bothner per@bothner.com
Wed Sep 29 06:42:00 GMT 1999


ashe@boulder.qms.com (Steven Ashe) writes:

> I cannot come up with a scheme for this build scenario:
> 1) There are nested packages
> 2) javac (actually jikes) is used since the code is 1.1, i.e. gcj -C ain't an
>    option.
> 3) There should be a makefile that actually does dependencies, i.e. doesn't
>   send files through javac or gcj if they're not newer than the
>   .java source or don't reference newer .class files.
> 
> I've built makefiles that work with gcj without #1, but with packages
> thrown in, I'm stuck.

My solution for #1 is to have a separate makefile for each package.
Automake+autoconf makes this fairly easy.  For example, check out
what I do for Kawa (see http://www.gnu.org/software/kawa/ ).
-- 
	--Per Bothner
bothner@pacbell.net  per@bothner.com   http://www.bothner.com/~per/


More information about the Java mailing list