summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2004-12-23 18:43:54 +0000
committerMark Wielaard <mark@klomp.org>2004-12-23 18:43:54 +0000
commitd5cb721a8437b4d514938da5c36354d5f46b0491 (patch)
tree4d7f80265b923c8b0941ef6b9844f9567d2b10bb /lib
parent1ea7d4426c6cf300cc29a77d14668b797440da66 (diff)
downloadclasspath-d5cb721a8437b4d514938da5c36354d5f46b0491.tar.gz
* lib/Makefile.am (compile_classpath): New variable.
Use when compiling with either jikes or gcj. (LocaleData.java): New rules. (genclasses): Depend on new rule. (CLEANFILES): Add LocaleData.java, classes.locale1 and classes.locale2. (dist-hook): Remove generated LocaleData.java file. * lib/gen-classlist.sh.in: Add extra split files for locales. * lib/.cvsignore: Add classes.locale1 and classes.locale2.
Diffstat (limited to 'lib')
-rw-r--r--lib/.cvsignore2
-rw-r--r--lib/Makefile.am25
-rwxr-xr-xlib/gen-classlist.sh.in6
3 files changed, 24 insertions, 9 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore
index d35e6f47a..b5789254a 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -7,6 +7,8 @@ javax
kaffe
classes
classes.awt
+classes.locale1
+classes.locale2
classes.standard
classes.standardx
glibj.zip
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 6cdd39e85..220c07000 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -16,14 +16,18 @@ FIND = @FIND@
propertydirs := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -type d ! -name CVS -print)
propertyfiles := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -name \*\.properties -print)
+compile_classpath = $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB)
+
# handling source to bytecode compiler programs like gcj, jikes and kjc
if FOUND_GCJ
-JAVAC = $(GCJ) --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.standard \
-&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.awt \
-&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.standardx
+JAVAC = $(GCJ) --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.standard \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.awt \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.locale1 \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.locale2 \
+&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.standardx
else
if FOUND_JIKES
-JAVAC = $(JIKES) +Pno-shadow +F -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -d . @classes
+JAVAC = $(JIKES) +Pno-shadow +F -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(compile_classpath) -d . @classes
else
if FOUND_KJC
JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes
@@ -78,9 +82,11 @@ resources:
classes: genclasses
-genclasses: gen-classlist.sh standard.omit
- mkdir -p java/util
- $(top_srcdir)/scripts/generate-locale-list.sh > java/util/LocaleData.java
+$(top_builddir)/java/util/LocaleData.java: $(top_srcdir)/scripts/generate-locale-list.sh
+ mkdir -p $(top_builddir)/java/util
+ $(top_srcdir)/scripts/generate-locale-list.sh > $(top_builddir)/java/util/LocaleData.java
+
+genclasses: gen-classlist.sh standard.omit $(top_builddir)/java/util/LocaleData.java
top_builddir=$(top_builddir) $(SHELL) ./gen-classlist.sh standard
$(JAVA_DEPEND): genclasses
@@ -91,7 +97,9 @@ compile-classes: classes $(JAVA_SRCS) Makefile
EXTRA_DIST = standard.omit mkcollections.pl.in
CLEANFILES = compile-classes resources classes \
- classes.standard classes.awt classes.standardx glibj.zip classes.1 \
+ classes.standard classes.awt classes.standardx \
+ classes.locale1 classes.locale2 glibj.zip classes.1 \
+ $(top_builddir)/java/util/LocaleData.java \
$(JAVA_DEPEND)
clean-local:
@@ -108,6 +116,7 @@ dist-hook:
$(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name .cvsignore -print | xargs rm -f
$(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name class-dependencies.conf -print | xargs rm -f
rm -f $(top_distdir)/gnu/classpath/Configuration.java
+ rm -f $(top_distdir)/java/util/LocaleData.java
# Omit files listed in standard.omit.
( cd $(top_distdir)/lib ; cat $(top_builddir)/lib/standard.omit | sed -e 's/\$$//' | sed -e 's/\/\.\*//' | xargs rm -fr )
diff --git a/lib/gen-classlist.sh.in b/lib/gen-classlist.sh.in
index 20f7bb1b0..858bd6f75 100755
--- a/lib/gen-classlist.sh.in
+++ b/lib/gen-classlist.sh.in
@@ -28,7 +28,11 @@ if test "$new" = "true"; then
fi
# Split in multiple parts for gcj
-grep -v /javax/ classes | grep -v /awt/ | grep -v /beans/ > classes.standard
+grep -v /javax/ classes | grep -v /awt/ \
+ | grep -v /beans/ \
+ | grep -v /locale/ > classes.standard
grep /awt/ classes > classes.awt
grep /beans/ classes >> classes.awt
+grep /locale/ classes | grep _[j-z][a-z].java > classes.locale1
+grep /locale/ classes | grep -v _[j-z][a-z].java > classes.locale2
grep /javax/ classes > classes.standardx