📄 makefile.am
字号:
JAVA_DEPEND = java.dep## silently try to include these, if it fails gnu make## will remake these 'makefiles' with the rules given in## this file and restart the make process againsinclude $(JAVA_DEPEND)propertydirs := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org META-INF -type d ! -name CVS -print)propertyfiles := $(shell cd $(top_srcdir)/resource && $(FIND) gnu java org -name \*\.properties -print)metafiles := $(shell cd $(top_srcdir)/resource && $(FIND) META-INF -name CVS -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)# handling source to bytecode compiler programs like gcj, jikes and kjcif FOUND_GCJ## This should never be used when gcj is the compiler.## See the compile-classes target.JAVAC = exit 1elseif FOUND_JIKESJAVAC = $(JIKES) $(JIKESWARNINGS) +F $(JIKESENCODING) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(compile_classpath) -d . @classeselseif FOUND_KJC## FIXME: from what I can tell, kjc does not support a -encoding option.JAVAC = $(KJC) -classpath .:$(USER_CLASSLIB) -d . @classeselseif FOUND_GCJXJAVAC = $(GCJX) -g -encoding UTF-8 -classpath .:$(USER_CLASSLIB) -d . @classeselseif FOUND_ECJJAVAC = $(ECJ) -source 1.4 -encoding UTF-8 -warn:-deprecation,serial,unused -proceedOnError -bootclasspath '' -classpath $(compile_classpath) -d . @classesendif # FOUND_ECJendif # FOUND_GCJXendif # FOUND_KJCendif # FOUND_GCJendif # FOUND_JIKESJAVAH = $(USER_JAVAH) -jni -classpath .:$(USER_CLASSLIB)if CREATE_COLLECTIONSCOLLECTIONS = collections.jarcollections.jar: mkcollections.pl ./mkcollections.pl $(top_srcdir)if FOUND_GCJ $(GCJ) -C `$(FIND) $(COLLECTIONS_PREFIX) -name '*' -type f -print`else $(JAVAC) `$(FIND) $(COLLECTIONS_PREFIX) -name '*' -type f -print`endif if test "$(FASTJAR)" != ""; then \ $(FASTJAR) cf $@ $(COLLECTIONS_PREFIX); \ else \ echo "fastjar not found" > collections.jar; \ fiendif # CREATE_COLLECTIONSif INSTALL_GLIBJ_ZIPglibj_DATA = glibj.zip $(COLLECTIONS)endif # INSTALL_GLIBJ_ZIPif BUILD_CLASS_FILESnoinst_DATA = genclasses compile-classes resourcesendif # BUILD_CLASS_FILESif INSTALL_CLASS_FILESinstall-data-local: genclasses compile-classes -$(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir) cp -R gnu $(DESTDIR)$(pkgdatadir) cp -R java $(DESTDIR)$(pkgdatadir) cp -R javax $(DESTDIR)$(pkgdatadir) cp -R org $(DESTDIR)$(pkgdatadir) cp -R META-INF $(DESTDIR)$(pkgdatadir)# FIXME - should mimic doc/api/Makefile.am instead...uninstall-local: rm -rf $(DESTDIR)$(pkgdatadir)/gnu rm -rf $(DESTDIR)$(pkgdatadir)/java rm -rf $(DESTDIR)$(pkgdatadir)/javax rm -rf $(DESTDIR)$(pkgdatadir)/org rm -rf $(DESTDIR)$(pkgdatadir)/META-INFendif # INSTALL_CLASS_FILES.PHONY: genclassesglibj.zip: classes compile-classes resources if test "$(ZIP)" != ""; then $(ZIP) -r -D glibj.zip gnu java javax org META-INF > /dev/null; fi if test "$(FASTJAR)" != ""; then $(FASTJAR) cf glibj.zip gnu java javax org META-INF; firesources: copy-vmresources.sh if ! [ -e gnu ]; then mkdir gnu; fi if ! [ -e gnu/java ]; then mkdir gnu/java; fi if ! [ -e gnu/java/locale ]; then mkdir gnu/java/locale; fi if ! [ -e gnu/javax/swing/plaf/gtk/icons ]; then mkdir -p gnu/javax/swing/plaf/gtk/icons; fi @list='$(propertydirs)'; for p in $$list; do \ if ! [ -e $$p ]; then mkdir $$p; fi; \ done @list='$(propertyfiles)'; for p in $$list; do \ cp $(top_srcdir)/resource/$$p $$p; \ done @list='$(metafiles)'; for p in $$list; do \ cp $(top_srcdir)/resource/$$p $$p; \ done @$(SHELL) ./copy-vmresources.sh @list='$(iconfiles)'; for p in $$list; do \ cp $(top_srcdir)/$$p $$p; \ done touch resourcesclasses: genclasses$(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.javagenclasses: gen-classlist.sh standard.omit $(top_builddir)/java/util/LocaleData.java gen-xpath-parser top_builddir=$(top_builddir) top_srcdir=$(top_srcdir) $(SHELL) ./gen-classlist.sh standard# Only rebuild parsers when explicitly asked to.if REGEN_PARSERSgen-xpath-parser: $(top_srcdir)/gnu/xml/xpath/XPathParser.java$(top_srcdir)/gnu/xml/xpath/XPathParser.java: $(top_srcdir)/gnu/xml/xpath/XPathParser.y ( cd $(top_srcdir)/gnu/xml/xpath; \ $(JAY) XPathParser.y < $(JAY_SKELETON) > XPathParser.java )elsegen-xpath-parser: trueendif # REGEN_PARSER$(JAVA_DEPEND): genclassesif 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)elsecompile-classes: classes $(JAVA_SRCS) Makefile $(JAVAC) touch compile-classesendifEXTRA_DIST = standard.omit mkcollections.pl.in Makefile.gcj split-for-gcj.shCLEANFILES = compile-classes resources classes \ glibj.zip classes.1 \ $(top_builddir)/java/util/LocaleData.java \ $(JAVA_DEPEND)clean-local: -rm -rf gnu -rm -rf java -rm -rf javax -rm -rf org -rm -rf com -rm -rf META-INF -rm -rf lists -rm -f Makefile.depsdist-hook: mkdir -p $(distdir) cp -pdfR $(top_srcdir)/gnu $(top_srcdir)/java $(top_srcdir)/javax $(top_srcdir)/org $(top_srcdir)/vm $(top_srcdir)/resource $(distdir)/..# Delete not wanted files. $(FIND) $(distdir)/../gnu $(distdir)/../java $(distdir)/../javax $(distdir)/../org $(distdir)/../vm $(distdir)/../resource -name CVS -print | xargs rm -fr $(FIND) $(distdir)/../gnu $(distdir)/../java $(distdir)/../javax $(distdir)/../org $(distdir)/../vm $(distdir)/../resource -name .cvsignore -print | xargs rm -f $(FIND) $(distdir)/../gnu $(distdir)/../java $(distdir)/../javax $(distdir)/../org $(distdir)/../vm -name class-dependencies.conf -print | xargs rm -f rm -f $(distdir)/../gnu/classpath/Configuration.java rm -f $(distdir)/../java/util/LocaleData.java
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -