This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: javac+packages+gcj+makefile=help_wanted


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]