This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: also: --dest-class-dir for .o's?
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Subject: Re: also: --dest-class-dir for .o's?
- From: Tom Tromey <tromey at redhat dot com>
- Date: 09 Nov 2001 09:43:05 -0700
- Cc: java at gcc dot gnu dot org
- References: <m3wv10ii6o.fsf@noneofyourbusiness.com>
- Reply-To: tromey at redhat dot com
>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
Adam> src/Foo/Bar/Baz.java
Adam> src/Foo/Bop.java
Adam> I'd like output either like this:
Adam> bin/Foo/Bar/Baz.o
Adam> bin/Foo/Bop.o
Use the `-o' option to gcj. This is in the manual.
gcj -Isrc -c -o bin/Foo/Bar/Baz.o src/Foo/Bar/Baz.java
I think you have to make the output directory by hand first.
It is easy to write a script to automate this.
Adam> I'd also like to make one invocation to gcj (for speed)
You can't do that when generating .o files.
Tom