diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-12-10 20:25:39 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-12-10 20:25:39 +0000 |
commit | da66af5951b18b6f5e8752cbbe11f5f842332a33 (patch) | |
tree | a28e126d1415e3689be6c7b2c2d061ae51194195 /lib | |
parent | ab90923ee693a17e2e0e37b6ba5a84794c9236de (diff) | |
download | classpath-da66af5951b18b6f5e8752cbbe11f5f842332a33.tar.gz |
2006-12-10 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of generics-branch to HEAD (woohoo!)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.cvsignore | 1 | ||||
-rw-r--r-- | lib/Makefile.am | 60 | ||||
-rwxr-xr-x | lib/gen-classlist.sh.in | 25 |
3 files changed, 47 insertions, 39 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore index 56b990b49..93f21e77a 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -10,6 +10,7 @@ classes.awt classes.locale classes.locale1 classes.locale2 +classes.locale classes.standard classes.standardx classes.xml diff --git a/lib/Makefile.am b/lib/Makefile.am index ee866eb74..0e685902a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -10,31 +10,31 @@ cssfiles := $(shell cd $(top_srcdir) && $(FIND) gnu java javax org -name \*\.css metafiles := $(shell cd $(top_srcdir)/resource && $(FIND) META-INF -name CVS -prune -o -name \*\.in -prune -o -type f -print) iconfiles := $(shell cd $(top_srcdir) && $(FIND) gnu/javax/swing/plaf/gtk/icons -name *.png -type f -print) -compile_classpath = $(vm_classes):$(top_srcdir):$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:$(top_srcdir)/external/relaxngDatatype:.:$(USER_CLASSLIB):$(PATH_TO_ESCHER) +compile_classpath = $(vm_classes):$(top_srcdir):$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:$(top_srcdir)/external/relaxngDatatype:$(top_srcdir)/external/jsr166:.:$(USER_CLASSLIB):$(PATH_TO_ESCHER) # handling source to bytecode compiler programs like gcj, jikes and kjc -if FOUND_GCJ +if FOUND_ECJ +JAVAC = $(ECJ) -1.5 -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classes +#else +#if FOUND_GCJ ## This should never be used when gcj is the compiler. ## See the compile-classes target. -JAVAC = exit 1 -else -if FOUND_JIKES -JAVAC = $(JIKES) $(JIKESWARNINGS) +F $(JIKESENCODING) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(compile_classpath) -d . @classes -else -if FOUND_KJC -## FIXME: from what I can tell, kjc does not support a -encoding option. -JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes +#JAVAC = exit 1 +#else +#if FOUND_JIKES +#JAVAC = $(JIKES) $(JIKESWARNINGS) +F $(JIKESENCODING) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(compile_classpath) -d . @classes +#else +#if FOUND_KJC +### FIXME: from what I can tell, kjc does not support a -encoding option. +#JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes else if FOUND_GCJX JAVAC = $(GCJX) -g -encoding UTF-8 -classpath .:$(USER_CLASSLIB) -d . @classes -else -if FOUND_ECJ -JAVAC = $(ECJ) -source 1.4 -encoding UTF-8 -warn:-deprecation,serial,unused -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classes -endif # FOUND_ECJ endif # FOUND_GCJX -endif # FOUND_KJC -endif # FOUND_GCJ -endif # FOUND_JIKES +#endif # FOUND_KJC +#endif # FOUND_GCJ +#endif # FOUND_JIKES +endif # FOUND_ECJ JAVAH = $(USER_JAVAH) -jni -classpath .:$(USER_CLASSLIB) @@ -43,11 +43,11 @@ COLLECTIONS = collections.jar collections.jar: mkcollections.pl ./mkcollections.pl $(top_srcdir) -if FOUND_GCJ - $(GCJ) -C `$(FIND) $(COLLECTIONS_PREFIX) -name '*.java' -type f -print` -else +#if FOUND_GCJ +# $(GCJ) -C `$(FIND) $(COLLECTIONS_PREFIX) -name '*.java' -type f -print` +#else $(JAVAC) `$(FIND) $(COLLECTIONS_PREFIX) -name '*.java' -type f -print` -endif +#endif if test "$(FASTJAR)" != ""; then \ $(FASTJAR) cf $@ $(COLLECTIONS_PREFIX); \ else \ @@ -152,22 +152,22 @@ endif # REGEN_PARSER $(JAVA_DEPEND): genclasses -if FOUND_GCJ +#if FOUND_GCJ ## When building with gcj, we do a recursive make. We split this rule ## out specially, rather than simply defining JAVAC, so that GNU make ## will see the recursive make invocation and still allow parallel ## builds. -compile-classes: classes $(JAVA_SRCS) Makefile - $(MAKE) -f $(srcdir)/Makefile.gcj \ - GCJ='$(GCJ)' \ - compile_classpath='$(top_builddir):$(compile_classpath)' \ - top_srcdir=$(top_srcdir) - touch compile-classes -else +#compile-classes: classes $(JAVA_SRCS) Makefile +# $(MAKE) -f $(srcdir)/Makefile.gcj \ +# GCJ='$(GCJ)' \ +# compile_classpath='$(top_builddir):$(compile_classpath)' \ +# top_srcdir=$(top_srcdir) +# touch compile-classes +#else compile-classes: classes $(JAVA_SRCS) Makefile $(JAVAC) touch compile-classes -endif +#endif EXTRA_DIST = standard.omit.in mkcollections.pl.in Makefile.gcj split-for-gcj.sh CLEANFILES = compile-classes resources classes \ diff --git a/lib/gen-classlist.sh.in b/lib/gen-classlist.sh.in index 6e4b8b876..ba540cfcc 100755 --- a/lib/gen-classlist.sh.in +++ b/lib/gen-classlist.sh.in @@ -25,15 +25,22 @@ echo "Adding java source files from srcdir '@top_srcdir@'." done) > ${top_builddir}/lib/classes.1 # The same, but for the external code. -# Right now all external code is in org/. -for dir in @top_srcdir@/external/w3c_dom \ - @top_srcdir@/external/sax @top_srcdir@/external/relaxngDatatype; do - (cd $dir - @FIND@ org -follow -name '*.java' -print | - sort -r | sed -e 's,/\([^/]*\)$, \1,' | - while read pkg file; do - echo $pkg $dir $pkg/$file - done) +for dir in \ + @top_srcdir@/external/w3c_dom \ + @top_srcdir@/external/sax \ + @top_srcdir@/external/relaxngDatatype \ + @top_srcdir@/external/jsr166 \ + ; do + (cd $dir + for subdir in java javax gnu org sun; do + if test -d $subdir; then + @FIND@ $subdir -follow -name '*.java' -print | + sort -r | sed -e 's,/\([^/]*\)$, \1,' | + while read pkg file; do + echo $pkg $dir $pkg/$file + done + fi + done) done >> ${top_builddir}/lib/classes.1 # Generate files for the VM classes. |