5 |
## this file and restart the make process again |
## this file and restart the make process again |
6 |
sinclude $(JAVA_DEPEND) |
sinclude $(JAVA_DEPEND) |
7 |
|
|
|
USER_CLASSLIB = @USER_CLASSLIB@ |
|
|
|
|
|
GCJ = @GCJ@ |
|
|
JIKES = @JIKES@ |
|
|
USER_JABBA = @USER_JABBA@ |
|
|
USER_JAVAH = @USER_JAVAH@ |
|
|
FIND = @FIND@ |
|
|
|
|
8 |
propertydirs := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -type d ! -name CVS -print) |
propertydirs := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -type d ! -name CVS -print) |
9 |
propertyfiles := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -name \*\.properties -print) |
propertyfiles := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -name \*\.properties -print) |
10 |
|
|
11 |
|
compile_classpath = $(top_srcdir):$(top_srcdir)/vm/reference:$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:.:$(USER_CLASSLIB) |
12 |
|
|
13 |
# handling source to bytecode compiler programs like gcj, jikes and kjc |
# handling source to bytecode compiler programs like gcj, jikes and kjc |
14 |
if FOUND_GCJ |
if FOUND_GCJ |
15 |
JAVAC = $(GCJ) --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.standard \ |
JAVAC = $(GCJ) --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.standard \ |
16 |
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.awt \ |
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.awt \ |
17 |
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(top_srcdir):$(top_srcdir)/vm/reference:.:$(USER_CLASSLIB) -C -d . @classes.standardx |
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.locale \ |
18 |
|
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.xml \ |
19 |
|
&& $(GCJ) -Wno-deprecated --bootclasspath '' --classpath $(compile_classpath) -C -d . @classes.standardx |
20 |
else |
else |
21 |
if FOUND_JIKES |
if FOUND_JIKES |
22 |
JAVAC = $(JIKES) +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 |
23 |
else |
else |
24 |
if FOUND_KJC |
if FOUND_KJC |
25 |
JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes |
JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classes |
26 |
|
else |
27 |
|
if FOUND_GCJX |
28 |
|
JAVAC = $(GCJX) -classpath .:$(USER_CLASSLIB) -d . @classes |
29 |
|
endif # FOUND_GCJX |
30 |
endif # FOUND_KJC |
endif # FOUND_KJC |
31 |
endif # FOUND_GCJ |
endif # FOUND_GCJ |
32 |
endif # FOUND_JIKES |
endif # FOUND_JIKES |
78 |
|
|
79 |
classes: genclasses |
classes: genclasses |
80 |
|
|
81 |
genclasses: gen-classlist.sh standard.omit |
$(top_builddir)/java/util/LocaleData.java: $(top_srcdir)/scripts/generate-locale-list.sh |
82 |
|
mkdir -p $(top_builddir)/java/util |
83 |
|
$(top_srcdir)/scripts/generate-locale-list.sh > $(top_builddir)/java/util/LocaleData.java |
84 |
|
|
85 |
|
genclasses: gen-classlist.sh standard.omit $(top_builddir)/java/util/LocaleData.java gen-xpath-parser |
86 |
top_builddir=$(top_builddir) $(SHELL) ./gen-classlist.sh standard |
top_builddir=$(top_builddir) $(SHELL) ./gen-classlist.sh standard |
87 |
|
|
88 |
|
# Only rebuild parsers when explicitly asked to. |
89 |
|
if REGEN_PARSERS |
90 |
|
|
91 |
|
gen-xpath-parser: $(top_srcdir)/gnu/xml/xpath/XPathParser.java |
92 |
|
|
93 |
|
$(top_srcdir)/gnu/xml/xpath/XPathParser.java: $(top_srcdir)/gnu/xml/xpath/XPathParser.y |
94 |
|
( cd $(top_srcdir)/gnu/xml/xpath; \ |
95 |
|
$(JAY) XPathParser.y < $(JAY_SKELETON) > XPathParser.java ) |
96 |
|
else |
97 |
|
|
98 |
|
gen-xpath-parser: |
99 |
|
true |
100 |
|
|
101 |
|
endif # REGEN_PARSER |
102 |
|
|
103 |
$(JAVA_DEPEND): genclasses |
$(JAVA_DEPEND): genclasses |
104 |
|
|
105 |
compile-classes: classes $(JAVA_SRCS) Makefile |
compile-classes: classes $(JAVA_SRCS) Makefile |
108 |
|
|
109 |
EXTRA_DIST = standard.omit mkcollections.pl.in |
EXTRA_DIST = standard.omit mkcollections.pl.in |
110 |
CLEANFILES = compile-classes resources classes \ |
CLEANFILES = compile-classes resources classes \ |
111 |
classes.standard classes.awt classes.standardx glibj.zip classes.1 \ |
classes.standard classes.awt classes.standardx classes.xml \ |
112 |
|
classes.locale glibj.zip classes.1 \ |
113 |
|
$(top_builddir)/java/util/LocaleData.java \ |
114 |
$(JAVA_DEPEND) |
$(JAVA_DEPEND) |
115 |
|
|
116 |
clean-local: |
clean-local: |
121 |
|
|
122 |
dist-hook: |
dist-hook: |
123 |
mkdir -p $(distdir) |
mkdir -p $(distdir) |
124 |
cp -dfR $(top_srcdir)/gnu $(top_srcdir)/java $(top_srcdir)/javax $(top_srcdir)/org $(top_srcdir)/vm $(top_distdir) |
cp -dfR $(top_srcdir)/gnu $(top_srcdir)/java $(top_srcdir)/javax $(top_srcdir)/org $(top_srcdir)/vm $(top_srcdir)/resource $(top_distdir) |
125 |
# Delete not wanted files. |
# Delete not wanted files. |
126 |
$(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name CVS -print | xargs rm -fr |
$(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name CVS -print | xargs rm -fr |
127 |
$(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 .cvsignore -print | xargs rm -f |
128 |
$(FIND) $(top_distdir)/gnu $(top_distdir)/java $(top_distdir)/javax $(top_distdir)/org $(top_distdir)/vm -name class-dependencies.conf -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 |
129 |
rm -f $(top_distdir)/gnu/classpath/Configuration.java |
rm -f $(top_distdir)/gnu/classpath/Configuration.java |
130 |
|
rm -f $(top_distdir)/java/util/LocaleData.java |
131 |
# Omit files listed in standard.omit. |
# Omit files listed in standard.omit. |
132 |
( cd $(top_distdir)/lib ; cat $(top_builddir)/lib/standard.omit | sed -e 's/\$$//' | sed -e 's/\/\.\*//' | xargs rm -fr ) |
( cd $(top_distdir)/lib ; cat $(top_builddir)/lib/standard.omit | sed -e 's/\$$//' | sed -e 's/\/\.\*//' | xargs rm -fr ) |
133 |
|
|