This is the mail archive of the java@gcc.gnu.org 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: also: --dest-class-dir for .o's?


>>>>> "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


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