makeJava - directory expansion and remapping added
kaffe@rufus.w3.org
kaffe@rufus.w3.org
Tue, 25 Aug 1998 19:29:17 +0100
--0__=378gjxFHqioHlA5ZkbccQIR61EzyWGOF5wk0rggKiYRglllYeSkDpYiT
Content-type: text/plain; charset=US-ASCII
Hello!
Unfortunately, my previous version of makeJava has problems with
srcdir!='.' and with compiling of separate files. This version fixes these
bugs. It is also possible to specify directories in the command line. For
example, "makeJava java/lang" will find all java sources in
$srcdir/java/lang and subdirectories.
I have tested this version fairly well, so it should be Ok to put it on the
CVS. Anyway, all functionality of the old makeJava is completely retained,
so I see no reason why it should not be done.
'-unsafe' is no longer required when compiling java/awt/widget, since I
introduced directory remapping for output files.
Now "makeJava all" really compiles the library.
Currently it works under Cygwin32 only if JAVAC_CP is redefined, because
Kaffe (erroneously?) doesn't accept colon as classpath separator under
Windows.
Pavel Roskin <pavel.roskin@ecsoft.co.uk>
(See attached file: makeJava)
--0__=378gjxFHqioHlA5ZkbccQIR61EzyWGOF5wk0rggKiYRglllYeSkDpYiT
Content-type: application/octet-stream;
name="makeJava"
Content-transfer-encoding: base64
IyEgL2Jpbi9zaAojCiMgU2ltcGxlIGxpdHRsZSBzY3JpcHQgd2hpY2ggYnVpbGRzIHRoZSAuY2xh
c3MgZmlsZXMgd2hpY2ggYXJlIG9sZGVyCiMgdGhhbiB0aGUgLmphdmEgZmlsZXMuCiMKIyBFeGl0
IGNvZGVzOiAwIC0gT2ssIDEgLSBiYWQgb3B0aW9ucywgMiAtIGNvbXBpbGUgZXJyb3JzLCAzIC0g
ZmF0YWwgZXJyb3JzCiMKIyBDb3B5cmlnaHQgKGMpIDE5OTcsIDE5OTgKIyAgICAgIFRyYW5zdmly
dHVhbCBUZWNobm9sb2dpZXMsIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCiMKIyBTZWUgdGhl
IGZpbGUgImxpY2Vuc2UudGVybXMiIGZvciBpbmZvcm1hdGlvbiBvbiB1c2FnZSBhbmQgcmVkaXN0
cm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