This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: javac+packages+gcj+makefile=help_wanted
- To: ashe at boulder dot qms dot com (Steven Ashe)
- Subject: Re: javac+packages+gcj+makefile=help_wanted
- From: Per Bothner <per at bothner dot com>
- Date: 29 Sep 1999 06:42:20 -0700
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <9909241828.AA12525@boulder.qms.com>
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/