libjava/ChangeLog:
[official-gcc.git] / libjava / Makefile.am
blob82cc63e3a81845e1a4b6b9e016638b6c6124cd09
1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = foreign subdir-objects
5 ACLOCAL_AMFLAGS = -I . -I .. -I ../config -I libltdl
7 # May be used by various substitution variables.
8 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
10 SUBDIRS = $(DIRLTDL) gcj include classpath
11 if TESTSUBDIR
12 SUBDIRS += testsuite
13 endif
15 # write_entries_to_file - writes each entry in a list
16 # to the specified file.  Entries are written in chunks of
17 # $(write_entries_to_file_split) to accomodate systems with
18 # severe command-line-length limitations.
19 # Parameters:
20 # $(1): variable containing entries to iterate over
21 # $(2): output file
22 write_entries_to_file_split = 50
23 write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
24         $(foreach range, \
25           $(shell i=1; while test $$i -le $(words $(1)); do \
26              echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
27           $(shell echo $(wordlist $(range), \
28                           $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
29              | tr ' ' '\n' >> $(2)))
31 ## ################################################################
33 # autoconf2.13's target_alias
34 target_noncanonical = @target_noncanonical@
36 # This is required by TL_AC_GXX_INCLUDE_DIR.
37 libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
39 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
42 ## What gets installed, and where.
45 toolexeclib_LTLIBRARIES = libgcj.la libgij.la libgcj-tools.la
46 toolexecmainlib_DATA = libgcj.spec
48 if USE_LIBGCJ_BC
49 toolexeclib_LTLIBRARIES += libgcj_bc.la
50 endif
52 if XLIB_AWT
53 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
54 endif
56 dbexec_LTLIBRARIES = libjvm.la
58 pkgconfigdir = $(libdir)/pkgconfig
60 jardir = $(datadir)/java
61 jar_DATA = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
62 if INSTALL_ECJ_JAR
63 jar_DATA += $(ECJ_BUILD_JAR)
64 endif
66 if JAVA_HOME_SET
67 JAVA_HOME_DIR = $(JAVA_HOME)
68 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
69 else
70 JAVA_HOME_DIR = $(prefix)
71 BOOT_CLASS_PATH_DIR = $(jardir)/libgcj-$(gcc_version).jar
72 endif
74 ## Name of the default .db.
75 db_name = classmap.db
76 ## Compiler specific component of the .db file
77 gcjsubdir = @gcjsubdir@
78 db_pathtail = $(gcjsubdir)/$(db_name)
80 ## For now, only on native systems.  FIXME.
81 if NATIVE
82 bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool \
83         gappletviewer gjarsigner gkeytool gjar gcjh gjavah gnative2ascii \
84         gorbd grmid gserialver gtnameserv gc-analyze
85 if CREATE_GJDOC
86 bin_PROGRAMS += gjdoc
87 endif
89 ## It is convenient to actually build and install the default database
90 ## when gcj-dbtool is available.
91 dbexec_DATA = $(db_name)
92 endif 
94 bin_SCRIPTS = addr2name.awk contrib/rebuild-gcj-db contrib/aot-compile
96 if INSTALL_AOT_RPM
97 bin_SCRIPTS += contrib/aot-compile-rpm
98 endif
100 if BUILD_ECJ1
101 ## We build ecjx and not ecj1 because in one mode, ecjx will not work
102 ## until after 'make install', and we don't want it to be picked up in
103 ## the build tree by gcj via a -B option.
104 libexecsub_PROGRAMS = ecjx
105 endif
107 ## ################################################################
110 ## Compilers and compilation flags.
113 ## The compiler with whatever flags we want for both -c and -C
114 ## compiles.
115 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
117 extra_ldflags_libjava = @extra_ldflags_libjava@
118 extra_ldflags = @extra_ldflags@
120 if ANONVERSCRIPT
121 extra_ldflags_libjava += -Wl,--version-script=$(srcdir)/libgcj.ver
122 endif
124 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
125           $(LDFLAGS) -o $@
126 GCJ_FOR_ECJX = @GCJ_FOR_ECJX@
127 GCJ_FOR_ECJX_LINK = $(GCJ_FOR_ECJX) -o $@
128 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
129           $(LDFLAGS) $(extra_ldflags_libjava) $(extra_ldflags) -o $@
131 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
133 WARNINGS = -Wextra -Wall
134 ## Some systems don't allow `$' in identifiers by default, so we force
135 ## it with -fdollars-in-identifiers.  -Wswitch-enum detects bugs in
136 ## the verifier implementation, and maybe other places.  We need
137 ## _GNU_SOURCE defined for some Linux builds.  It doesn't hurt to
138 ## always define it.  Some systems, including Linux, need
139 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
140 AM_CXXFLAGS = \
141         -fno-rtti \
142         -fnon-call-exceptions \
143         $(THREADCXXFLAGS) \
144         -fdollars-in-identifiers \
145         -Wswitch-enum \
146         -D_FILE_OFFSET_BITS=64 \
147         @LIBGCJ_CXXFLAGS@ \
148         $(WARNINGS) \
149         -D_GNU_SOURCE \
150         -DPREFIX="\"$(prefix)\"" \
151         -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
152         -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
153         -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
154         -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
155         -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
156         -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
157         -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
158         -DECJ_JAR_FILE="\"$(ECJ_JAR)\"" \
159         -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
160         -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
162 AM_GCJFLAGS = \
163         @LIBGCJ_JAVAFLAGS@ \
164         -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
165         --encoding=UTF-8 \
166         -Wno-deprecated -fbootstrap-classes
168 AM_CFLAGS = @LIBGCJ_CFLAGS@
169 if USING_GCC
170 AM_CFLAGS += $(WARNINGS)
171 endif
173 if SUPPRESS_LIBGCJ_BC
174 LIBGCJ_BC_FLAGS =
175 else
176 LIBGCJ_BC_FLAGS = -findirect-dispatch -fno-indirect-classes
177 endif
179 if BUILD_LIBGCJ_REDUCED_REFLECTION
180 LIBGCJ_REDUCED_REFLECTION_FLAGS = -freduced-reflection
181 else
182 LIBGCJ_REDUCED_REFLECTION_FLAGS =
183 endif
185 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
186 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
188 JCFLAGS = -g
189 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
191 LIBFFIINCS = @LIBFFIINCS@
193 AM_CPPFLAGS = -I$(top_srcdir) \
194         -Iinclude -I$(top_srcdir)/include \
195         -I$(top_srcdir)/classpath/include \
196         -Iclasspath/include \
197         -I$(top_srcdir)/classpath/native/fdlibm \
198         $(GCINCS) $(THREADINCS) $(INCLTDL) \
199         $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
201 BOOTCLASSPATH = $(srcdir)/classpath/lib
203 ## ################################################################
206 ## How to build libgcj.a and libgcj.jar
209 libgij_la_SOURCES = gij.cc
210 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
211 ## See jv_convert_LDADD.
212 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
213 ## The mysterious backslash in the grep pattern is consumed by make.
214 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
215         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
217 if INTERPRETER
218 libgcj_interpret_source_files = jvmti.cc interpret.cc
219 else
220 libgcj_interpret_source_files = 
221 endif
223 libgcj_la_SOURCES = prims.cc jni.cc exception.cc stacktrace.cc \
224         link.cc defineclass.cc verify.cc $(libgcj_interpret_source_files) \
225         $(nat_source_files)
227 ## We need to compile at least the interpreter this way.
228 interpret.lo:  AM_CXXFLAGS += -fwrapv
230 if USING_BOEHMGC
231 libgcj_la_SOURCES += boehm.cc
232 endif
234 if USING_NOGC
235 libgcj_la_SOURCES += nogc.cc
236 endif
238 if USING_POSIX_PLATFORM
239 libgcj_la_SOURCES += posix.cc
240 endif
242 if USING_WIN32_PLATFORM
243 libgcj_la_SOURCES += win32.cc
244 endif
246 if USING_DARWIN_CRT
247 libgcj_la_SOURCES += darwin.cc
248 endif
250 if USING_POSIX_THREADS
251 libgcj_la_SOURCES += posix-threads.cc
252 endif
254 if USING_WIN32_THREADS
255 libgcj_la_SOURCES += win32-threads.cc
256 endif
258 if USING_NO_THREADS
259 libgcj_la_SOURCES += no-threads.cc
260 endif
262 ## Objects from C++ sources in subdirs.
263 nat_files = $(nat_source_files:.cc=.lo)
264 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
266 # Include THREADLIBS here to ensure that the correct version of
267 # certain linuxthread functions get linked:
268 ## The mysterious backslash in the grep pattern is consumed by make.
269 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(extra_ldflags) $(THREADLIBS) \
270         $(LIBLTDL) $(SYS_ZLIBS) \
271         -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
272         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
273 libgcj_la_LIBADD = \
274         classpath/native/fdlibm/libfdlibm.la \
275         java/lang/Object.lo \
276         java/lang/Class.lo \
277         java/process-$(PLATFORM).lo \
278         $(all_packages_source_files:.list=.lo) \
279         $(bc_objects) \
280         $(propertyo_files) \
281         $(LIBFFI) $(ZLIBS) $(GCLIBS)
282 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
283         java/lang/Object.lo \
284         java/lang/Class.lo \
285         java/process-$(PLATFORM).lo \
286         $(all_packages_source_files:.list=.lo) \
287         $(LIBLTDL) $(libgcj_la_LIBADD)
288 if ANONVERSCRIPT
289 libgcj_la_DEPENDENCIES += $(srcdir)/libgcj.ver
290 endif
291 libgcj_la_LINK = $(LIBLINK)
293 ## A hack to make sure the various gcj-related macros, like
294 ## LTGCJCOMPILE, are defined by automake.  This is never actually
295 ## compiled.
296 EXTRA_libgcj_la_SOURCES = java/lang/Object.java
298 libgcj_tools_la_SOURCES = classpath/tools/tools.zip
299 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes  -fsource-filename=$(here)/classpath/tools/all-classes.lst
300 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
301  -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
302  $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
303 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
304 libgcj_tools_la_LINK = $(LIBLINK)
306 ## libjvm.so
307 libjvm_la_SOURCES = jni-libjvm.cc
308 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
309 ## See jv_convert_LDADD.
310 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
311 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC)
313 ## The .db file.  This rule is only used for native builds, so it is
314 ## safe to invoke gcj-dbtool.
315 $(db_name): gcj-dbtool$(EXEEXT)
316 ## In case it exists already.
317         @rm -f $(db_name)
318 ## We don't actually care if it fails -- if it does, just make an
319 ## empty file.  This is simpler than trying to discover when mmap is
320 ## not available.
321         ./gcj-dbtool -n $(db_name) || touch $(db_name)
323 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
324 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
325 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
326         libgcj.la libgcj.spec \
327         $(lib_gnu_awt_xlib_la_LIBADD)
328 ## We require libstdc++-v3 to be in the same build tree.
329 lib_gnu_awt_xlib_la_CPPFLAGS = \
330         $(AM_CPPFLAGS) \
331         -I../libstdc++-v3/include \
332         -I../libstdc++-v3/include/$(target_noncanonical) \
333         -I$(srcdir)/../libstdc++-v3/libsupc++
334 ## The mysterious backslash in the grep pattern is consumed by make.
335 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
336         @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
337         -rpath $(toolexeclibdir) \
338         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
339 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
341 ## Support for libgcj_bc: dummy shared library.
343 ## This lets us have one soname in BC objects and another in C++ ABI objects.
344 libgcj_bc_la_SOURCES = libgcj_bc.c
345 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0 \
346         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
347 libgcj_bc_la_LIBADD = libgcj.la
348 libgcj_bc_la_DEPENDENCIES = libgcj.la
349 libgcj_bc_la_LINK = $(LIBLINK)
350 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
351 ## USE_LIBGCJ_BC shouldn't be set on other targets.
352 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
353         -fPIC -nostdlib
355 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
356 ## when testing.
357 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
358         $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
359         $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
360         rm .libs/libgcj_bc.so; \
361         mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
362         $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
363         -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
364         rm .libs/libgcj_bc.so.1; \
365         $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
367 ## Note that property_files is defined in sources.am.
368 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
370 $(propertyo_files): %.lo: classpath/resource/%
371         $(mkinstalldirs) `dirname $@`; \
372         $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
374 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
375 ## Note that this now omits the property files.
376 ## It doesn't matter since we don't use the jar at runtime.
377         here=`pwd`; cd $(srcdir)/classpath/lib; \
378         find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
379         $(JAR) -cfM@ $$here/libgcj-$(gcc_version).jar
381 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
382         cp $< $@
384 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
385 DISTCLEANFILES = native.dirs
387 mostlyclean-local:
388 ## Use libtool rm to remove each libtool object
389         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
391 distclean-local:
392 ## Remove every .d file that was created.
393         find . -name '*.d' -print | xargs rm -f
395 # Just remove the objects from C++ sources, for testing the C++ compiler.
396 clean-nat:
397         rm -f $(nat_files) $(xlib_nat_files)
399 SUFFIXES = .class .java .h .properties .list
401 ## Pass the list of object files to libtool in a temporary file to
402 ## avoid tripping platform command line length limits.
403 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
404         @echo Creating list of files to link...
405         @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
406         $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
407         -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
409 ## ################################################################
411 ## Compiling a list of java sources to a single .o.
413 # Concurrent things use reflection internally.
414 java/util/concurrent.lo \
415 java/util/concurrent/atomic.lo \
416 java/util/concurrent/locks.lo: LIBGCJ_REDUCED_REFLECTION_FLAGS =
418 %.lo: %.list
419         $(LTGCJCOMPILE) $(LIBGCJ_REDUCED_REFLECTION_FLAGS) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
421 java/lang/Object.lo: classpath/lib/java/lang/Object.class
422         $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
424 java/lang/Class.lo: classpath/lib/java/lang/Class.class
425         $(LTGCJCOMPILE) -c -o $@  -fsource-filename=$(srcdir)/$(basename $@).java $<
427 ## ################################################################
429 ## This pulls in a number of variable and target definitions.
430 include sources.am
432 ## ################################################################
435 ## How to build header files.
438 ## We have special rules for certain headers.
439 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
440         java/lang/String.h java/lang/reflect/Constructor.h \
441         java/lang/reflect/Field.h java/lang/reflect/Method.h \
442         java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
444 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
445         java/io/ObjectInputStream$$GetField.h \
446         java/nio/DirectByteBufferImpl$$ReadWrite.h \
447         java/nio/channels/Pipe$$SinkChannel.h \
448         java/nio/channels/Pipe$$SourceChannel.h \
449         java/lang/VMProcess$ImmediateEOFInputStream.h \
450         java/lang/reflect/Proxy$$ProxyData.h \
451         java/lang/reflect/Proxy$$ProxyType.h \
452         gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
453         gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
454         gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
455         gnu/java/nio/PipeImpl$$SourceChannelImpl.h
457 generic_header_files = $(ordinary_header_files) $(inner_nat_headers) \
458         $(xlib_nat_headers)
460 MYGCJH = gjavah
462 $(generic_header_files): gcjh.stamp
464 gcjh.stamp: classpath/lib/compile-classes
465 if JAVA_MAINTAINER_MODE
466         $(MYGCJH) --cni --all $(srcdir)/classpath/lib \
467             --cmdfile=$(srcdir)/headers.txt -d $(srcdir) --force
468 endif
469         echo > gcjh.stamp
471 nat_headers = $(ordinary_header_files) $(inner_nat_headers)
472 nat_headers_install = $(ordinary_header_files)
474 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
476 ## Headers we maintain by hand and which we want to install.
477 extra_headers = java/lang/Object.h java/lang/Class.h
479 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
480         @:
482 install-exec-hook: install-binPROGRAMS install-toolexeclibLTLIBRARIES \
483         install-libexecsubPROGRAMS
484 ## Support for libgcj_bc: dummy shared library used only at link-time.
485 if USE_LIBGCJ_BC
486 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
487 ## libtool's .la file, this prevents libtool resetting the lib again 
488 ## later.
489         @echo Installing dummy lib libgcj_bc.so.1.0.0; \
490         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
491         mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
492         $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
493         -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
494         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
495         $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
496         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
497 endif
498 if BUILD_ECJ1
499 ## Undo any prepending of the target prefix and transform
500 ## to the actual host's executable suffix.
501         mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
502 endif BUILD_ECJ1
504 ## Install the headers.  It is fairly ugly that we have to do this by
505 ## hand.
506 install_data_local_split = 50
507 install-data-local:
508         $(PRE_INSTALL)
509 ## Install the .pc file.
510         @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
511         file="libgcj-$${pc_version}.pc"; \
512         $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
513         echo "  $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
514         $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
515 ## We use a GNU make trick here so that we don't go over the command
516 ## length limit of some shells.
517         @echo Creating list of headers to install...
518         @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
519         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
520         while read file; do echo "$$file $$file"; done < tmp-ilist | \
521         sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
522         $(AWK) 'BEGIN { files["."] = "" } \
523           { files[$$2] = files[$$2] " " $$1; \
524             if (++n[$$2] == $(install_data_local_split)) { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
525              END { for (dir in files) print dir, files[dir] }' | \
526         while read dir files; do \
527           xfiles=; for file in $$files; do \
528             if test -f "$$file"; then xfiles="$$xfiles $$file"; \
529             else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
530           test -z "$$xfiles" || { \
531             test "x$$dir" = x. || { \
532               echo "$(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir"; \
533               $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
534             echo " $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir"; \
535             $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
536         done
537         -@rm -f tmp-ilist
538 ## Install inner class headers.
539         $(INSTALL_DATA) $(srcdir)/'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
540         $(INSTALL_DATA) $(srcdir)/'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
541         $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
542         $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
543         $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
544         $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
545         $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
546         $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
547         $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
548         $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
549 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
550 ## Install Python modules for aot-compile.
551         $(mkinstalldirs) $(DESTDIR)$(python_mod_dir); \
552         $(INSTALL_DATA) $(srcdir)/contrib/classfile.py \
553           $(DESTDIR)$(python_mod_dir)/classfile.py; \
554         $(INSTALL_DATA) contrib/aotcompile.py \
555           $(DESTDIR)$(python_mod_dir)/aotcompile.py;
556 if CREATE_JAVA_HOME
557 ## Create sdk style directories
558         $(mkinstalldirs) $(DESTDIR)$(JRE_BIN_DIR)
559         $(mkinstalldirs) $(DESTDIR)$(SDK_BIN_DIR)
560         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)
561         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)
562         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)
563         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS)
564         relative() { \
565           $(PERL) -e 'use File::Spec; \
566             print File::Spec->abs2rel($$ARGV[0], $$ARGV[1])' $$1 $$2; \
567         }; \
568         RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(SDK_BIN_DIR)); \
569         ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
570           $(DESTDIR)$(SDK_BIN_DIR)/java; \
571         ln -sf $$RELATIVE/`echo gjar | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
572           $(DESTDIR)$(SDK_BIN_DIR)/jar; \
573         ln -sf $$RELATIVE/`echo gjdoc | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
574           $(DESTDIR)$(SDK_BIN_DIR)/javadoc; \
575         ln -sf $$RELATIVE/`echo grmic | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
576           $(DESTDIR)$(SDK_BIN_DIR)/rmic; \
577         ln -sf $$RELATIVE/`echo gjavah | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
578           $(DESTDIR)$(SDK_BIN_DIR)/javah; \
579         ln -sf $$RELATIVE/ecj $(DESTDIR)$(SDK_BIN_DIR)/javac; \
580         ln -sf $$RELATIVE/`echo gappletviewer | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
581           $(DESTDIR)$(SDK_BIN_DIR)/appletviewer; \
582         ln -sf $$RELATIVE/`echo gjarsigner | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
583           $(DESTDIR)$(SDK_BIN_DIR)/jarsigner; \
584         ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
585           $(DESTDIR)$(SDK_BIN_DIR)/rmiregistry; \
586         ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
587           $(DESTDIR)$(SDK_BIN_DIR)/keytool; \
588         ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
589           $(DESTDIR)$(SDK_BIN_DIR)/orbd; \
590         ln -sf $$RELATIVE/`echo gnative2ascii | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
591           $(DESTDIR)$(SDK_BIN_DIR)/native2ascii; \
592         ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
593           $(DESTDIR)$(SDK_BIN_DIR)/rmid; \
594         ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
595           $(DESTDIR)$(SDK_BIN_DIR)/tnameserv; \
596         ln -sf $$RELATIVE/`echo gserialver | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
597           $(DESTDIR)$(SDK_BIN_DIR)/serialver; \
598         RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(JRE_BIN_DIR)); \
599         ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
600           $(DESTDIR)$(JRE_BIN_DIR)/rmiregistry; \
601         ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
602           $(DESTDIR)$(JRE_BIN_DIR)/keytool; \
603         ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
604           $(DESTDIR)$(JRE_BIN_DIR)/java; \
605         ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
606           $(DESTDIR)$(JRE_BIN_DIR)/orbd; \
607         ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
608           $(DESTDIR)$(JRE_BIN_DIR)/rmid; \
609         ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
610           $(DESTDIR)$(JRE_BIN_DIR)/tnameserv; \
611         $(mkinstalldirs) $(DESTDIR)$(JVM_JAR_DIR); \
612         version=$(JAVA_VERSION).$(BUILD_VERSION); \
613         working_dir=`pwd`; \
614         cd $(DESTDIR)$(JVM_JAR_DIR); \
615           for jarname in jaas jce jdbc-stdext jndi jndi-cos jndi-dns \
616             jndi-ldap jndi-rmi jsse sasl; \
617           do \
618             ln -s $$RELATIVE/$$jarname.jar $$jarname-$$version.jar; \
619           done; \
620           for jar in *-$$version.jar; \
621           do \
622             ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|-$(JAVA_VERSION).jar|g"); \
623             ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|.jar|g"); \
624           done; \
625         cd $$working_dir; \
626         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/security; \
627         RELATIVE=$$(relative $(DESTDIR)$(libdir)/security \
628           $(DESTDIR)$(JRE_LIB_DIR)/security); \
629         cd $(DESTDIR)$(JRE_LIB_DIR)/security; \
630           ln -sf $$RELATIVE/classpath.security java.security; \
631         cd $$working_dir; \
632         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/linux; \
633         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client; \
634         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server; \
635         $(mkinstalldirs) $(DESTDIR)$(SDK_LIB_DIR); \
636         cd $(DESTDIR)$(JRE_LIB_DIR); \
637           for jarname in jaas jce jdbc-stdext jndi jndi-cos jndi-dns \
638             jndi-ldap jndi-rmi jsse sasl; \
639           do \
640             ln -s rt.jar $$jarname.jar; \
641           done; \
642         cd $$working_dir; \
643         RELATIVE=$$(relative $(DESTDIR)$(datarootdir)/java \
644           $(DESTDIR)$(JRE_LIB_DIR)); \
645         ln -sf $$RELATIVE/libgcj-$(gcc_version).jar \
646           $(DESTDIR)$(JRE_LIB_DIR)/rt.jar; \
647         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
648           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)); \
649         ln -sf $$RELATIVE/libjawt.so \
650           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/libjawt.so; \
651         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
652           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client); \
653         ln -sf $$RELATIVE/libjvm.so \
654           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client/libjvm.so; \
655         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
656           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server); \
657         ln -sf $$RELATIVE/libjvm.so \
658           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server/libjvm.so;     \
659         RELATIVE=$$(relative $(DESTDIR)$(datarootdir)/java \
660           $(DESTDIR)$(SDK_LIB_DIR)); \
661         ln -sf $$RELATIVE/libgcj-tools-$(gcc_version).jar \
662           $(DESTDIR)$(SDK_LIB_DIR)/tools.jar; \
663         for headername in jawt jni; do \
664           DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/gcj \
665             -print-file-name=include/$$headername.h)); \
666           RELATIVE=$$(relative $(DESTDIR)$$DIRECTORY \
667             $(DESTDIR)$(SDK_INCLUDE_DIR)); \
668           ln -sf $$RELATIVE/$$headername.h \
669             $(DESTDIR)$(SDK_INCLUDE_DIR)/$$headername.h; \
670         done; \
671         for headername in jawt_md jni_md; do \
672           DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/gcj \
673             -print-file-name=include/$$headername.h)); \
674           RELATIVE=$$(relative $(DESTDIR)$$DIRECTORY \
675             $(DESTDIR)$(SDK_INCLUDE_DIR)/linux); \
676           ln -sf $$RELATIVE/$$headername.h \
677             $(DESTDIR)$(SDK_INCLUDE_DIR)/linux/$$headername.h; \
678         done; \
679         RELATIVE=$$(relative $(DESTDIR)$(datarootdir)/java \
680           $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR)); \
681         ln -sf $$RELATIVE/src-$(gcc_version).zip \
682           $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR)/src.zip;
683 endif
685 ## ################################################################
688 ## Additional `check' targets for maintainer convenience.
691 ## This is used for maintainer-check.  FIXME: should set from
692 ## configure using AC_CHECK_TOOL.
693 NM = nm
695 ## Try to make sure our library doesn't stomp the namespace.
696 maintainer-check: libgcj.la
697         $(NM) .libs/libgcj.a | grep ' T ' \
698 ## Anything with `4java' is assumed to be from .java source.
699           | grep -v '4java' \
700 ## Anything with Jv is ok.
701           | grep -v 'Jv' \
702 ## `terminate' and `unexpected' are part of the runtime.
703           | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
705 ## This rule can be used to see if the headers are more or less
706 ## correct.
707 header-check: libgcj-$(gcc_version).jar $(nat_headers)
708         rm -f htest.cc; \
709         for h in $(nat_headers); do \
710           echo "#include \"$$h\"" >> htest.cc; \
711         done; \
712         $(CXXCOMPILE) -fsyntax-only htest.cc
714 ## This rule can be used to see if all the .class files verify
715 ## correctly.
716 class-check: libgcj-$(gcc_version).jar
717         @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
718         while read f; do \
719           echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
720           if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
721           :; else ok=1; fi; \
722         done; exit $$ok
724 ## This rule checks whether write_entries_to_file works properly.
725 write-entries-to-file-check:
726         @echo Creating list of files to link...
727         @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
729 ## ################################################################
732 ## The `jv-convert' program and code to rebuild the converter header
733 ## files.
736 ## it only makes sense to try to rebuild the JIS .h files on native
737 ## systems.
738 if NATIVE
739 if MAINTAINER_MODE
740 noinst_PROGRAMS = gen-from-JIS
742 gen_from_JIS_SOURCES = \
743         gnu/gcj/convert/gen-from-JIS.c \
744         gnu/gcj/convert/make-trie.c \
745         gnu/gcj/convert/make-trie.h
747 gen_from_JIS_DEPENDENCIES = \
748         gnu/gcj/convert/JIS0201.h \
749         gnu/gcj/convert/JIS0208.h \
750         gnu/gcj/convert/JIS0212.h
752 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
753          ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
755 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
756          ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
758 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
759          ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
761 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
762 # You can get it from
763 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
765 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
766         echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
767         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
768         | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2)  /*\3 */|p' \
769         >> tmp-0201; \
770         mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
772 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
773 # You can get it from
774 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
776 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
777         echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
778         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
779         | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4)  /*\5 */|p' \
780         >> tmp-0208; \
781         mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
783 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
784 # You can get it from
785 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
787 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
788         echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
789         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
790         | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3)  /*\4 */|p' \
791         >> tmp-0212; \
792         mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
794 endif
795 endif 
798 jv_convert_SOURCES =
799 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
800 ## need this because we are explicitly using libtool to link using the
801 ## `.la' file.
802 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
803         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
804 jv_convert_LINK = $(GCJLINK)
805 ## We don't explicitly link in the libraries we need; libgcj.la brings
806 ## in all dependencies.  We need the -L so that gcj can find libgcj
807 ## with `-lgcj', but it must come first, otherwise the -L flags
808 ## brought in from libgcj.la would cause the install directories to be
809 ## searched before the build-tree ones, and we'd get errors because of
810 ## different libraries with the same SONAME from picky linkers such as
811 ## Solaris'.  FIXME: should be _libs on some systems.
812 jv_convert_LDADD = -L$(here)/.libs libgcj.la
813 ## Depend on the spec file to make sure it is up to date before
814 ## linking this program.
815 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
817 gcj_dbtool_SOURCES = \
818 gnu/gcj/tools/gcj_dbtool/natMain.cc
820 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
821 ## need this because we are explicitly using libtool to link using the
822 ## `.la' file.
823 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
824         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
825 gcj_dbtool_LINK = $(GCJLINK)
826 ## We don't explicitly link in the libraries we need; libgcj.la brings
827 ## in all dependencies.  We need the -L so that gcj can find libgcj
828 ## with `-lgcj', but it must come first, otherwise the -L flags
829 ## brought in from libgcj.la would cause the install directories to be
830 ## searched before the build-tree ones, and we'd get errors because of
831 ## different libraries with the same SONAME from picky linkers such as
832 ## Solaris'.  FIXME: should be _libs on some systems.
833 gcj_dbtool_LDADD = gnu/gcj/tools/gcj_dbtool.lo -L$(here)/.libs libgcj.la
834 ## Depend on the spec file to make sure it is up to date before
835 ## linking this program.
836 gcj_dbtool_DEPENDENCIES = gnu/gcj/tools/gcj_dbtool.lo libgcj.la libgcj.spec
838 gc_analyze_SOURCES =
840 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
841 ## need this because we are explicitly using libtool to link using the
842 ## `.la' file.
843 gc_analyze_LDFLAGS = --main=gnu.gcj.tools.gc_analyze.MemoryAnalyze \
844         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
845 gc_analyze_LINK = $(GCJLINK)
846 ## See jv_convert_LDADD.
847 gc_analyze_LDADD = -L$(here)/.libs libgcj-tools.la libgcj.la
848 ## Depend on the spec file to make sure it is up to date before
849 ## linking this program.
850 gc_analyze_DEPENDENCIES = libgcj-tools.la libgcj.la libgcj.spec
852 gij_SOURCES = 
853 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
854 ## need this because we are explicitly using libtool to link using the
855 ## `.la' file.
856 gij_LDFLAGS = -rpath $(dbexecdir) -rpath $(toolexeclibdir) \
857         -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags) \
858         $(extra_gij_ldflags) 
859 gij_LINK = $(GCJLINK)
860 ## See jv_convert_LDADD.
861 gij_LDADD = -L$(here)/.libs libgij.la
862 ## Depend on the spec file to make sure it is up to date before
863 ## linking this program.
864 gij_DEPENDENCIES = libgij.la
866 ## Build an ecjx from a .jar.
867 ecjx_SOURCES =
868 ## We use the BC ABI here so that we don't need to compile ecj.jar.
869 ## Hopefully the user has compiled it into his system .db.
870 ## However, even if not it will run reasonably quickly.
872 ECJX_BASE_FLAGS = -findirect-dispatch \
873         --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
875 if NATIVE
877 ecjx_LINK = $(GCJLINK)
879 if ENABLE_SHARED
880 ## Use ecj.jar at runtime.
881 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
882 else !ENABLE_SHARED
883 ## Use ecj.jar at compile time.
884 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
885 endif !ENABLE_SHARED
887 ecjx_LDADD = -L$(here)/.libs libgcj.la
888 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
889 if USE_LIBGCJ_BC
890 ecjx_DEPENDENCIES += libgcj_bc.la
891 endif
893 else !NATIVE
895 ecjx_LINK = $(GCJ_FOR_ECJX_LINK)
896 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
897 ecjx_LDADD = 
898 ecjx_DEPENDENCIES = 
900 endif !NATIVE
902 ## This is a dummy definition.
903 gappletviewer_SOURCES =
904 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
905         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
906 gappletviewer_LINK = $(GCJLINK)
907 ## See jv_convert_LDADD.
908 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
909 gappletviewer_DEPENDENCIES = libgcj-tools.la
911 ## This is a dummy definition.
912 gjarsigner_SOURCES =
913 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
914         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
915 gjarsigner_LINK = $(GCJLINK)
916 ## See jv_convert_LDADD.
917 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
918 gjarsigner_DEPENDENCIES = libgcj-tools.la
920 ## This is a dummy definition.
921 gkeytool_SOURCES =
922 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
923         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
924 gkeytool_LINK = $(GCJLINK)
925 ## See jv_convert_LDADD.
926 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
927 gkeytool_DEPENDENCIES = libgcj-tools.la
929 ## This is a dummy definition.
930 gjar_SOURCES =
931 gjar_LDFLAGS = --main=gnu.classpath.tools.jar.Main \
932         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
933 gjar_LINK = $(GCJLINK)
934 ## See jv_convert_LDADD.
935 gjar_LDADD = -L$(here)/.libs libgcj-tools.la
936 gjar_DEPENDENCIES = libgcj-tools.la
938 ## This is a dummy definition.
939 gjavah_SOURCES =
940 gjavah_LDFLAGS = --main=gnu.classpath.tools.javah.Main \
941         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
942 gjavah_LINK = $(GCJLINK)
943 ## See jv_convert_LDADD.
944 gjavah_LDADD = -L$(here)/.libs libgcj-tools.la
945 gjavah_DEPENDENCIES = libgcj-tools.la
947 ## This is a dummy definition.
948 gcjh_SOURCES =
949 gcjh_LDFLAGS = --main=gnu.classpath.tools.javah.GcjhMain \
950         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
951 gcjh_LINK = $(GCJLINK)
952 ## See jv_convert_LDADD.
953 gcjh_LDADD = -L$(here)/.libs libgcj-tools.la
954 gcjh_DEPENDENCIES = libgcj-tools.la
956 ## This is a dummy definition.
957 gnative2ascii_SOURCES =
958 gnative2ascii_LDFLAGS = --main=gnu.classpath.tools.native2ascii.Native2ASCII \
959         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
960 gnative2ascii_LINK = $(GCJLINK)
961 ## See jv_convert_LDADD.
962 gnative2ascii_LDADD = -L$(here)/.libs libgcj-tools.la
963 gnative2ascii_DEPENDENCIES = libgcj-tools.la
965 ## This is a dummy definition.
966 gorbd_SOURCES =
967 gorbd_LDFLAGS = --main=gnu.classpath.tools.orbd.Main \
968         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
969 gorbd_LINK = $(GCJLINK)
970 ## See jv_convert_LDADD.
971 gorbd_LDADD = -L$(here)/.libs libgcj-tools.la
972 gorbd_DEPENDENCIES = libgcj-tools.la
974 ## This is a dummy definition.
975 grmid_SOURCES =
976 grmid_LDFLAGS = --main=gnu.classpath.tools.rmid.Main \
977         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
978 grmid_LINK = $(GCJLINK)
979 ## See jv_convert_LDADD.
980 grmid_LDADD = -L$(here)/.libs libgcj-tools.la
981 grmid_DEPENDENCIES = libgcj-tools.la
983 ## This is a dummy definition.
984 gserialver_SOURCES =
985 gserialver_LDFLAGS = --main=gnu.classpath.tools.serialver.SerialVer \
986         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
987 gserialver_LINK = $(GCJLINK)
988 ## See jv_convert_LDADD.
989 gserialver_LDADD = -L$(here)/.libs libgcj-tools.la
990 gserialver_DEPENDENCIES = libgcj-tools.la
992 ## This is a dummy definition.
993 gtnameserv_SOURCES =
994 gtnameserv_LDFLAGS = --main=gnu.classpath.tools.tnameserv.Main \
995         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
996 gtnameserv_LINK = $(GCJLINK)
997 ## See jv_convert_LDADD.
998 gtnameserv_LDADD = -L$(here)/.libs libgcj-tools.la
999 gtnameserv_DEPENDENCIES = libgcj-tools.la
1001 ## This is a dummy definition.
1002 grmic_SOURCES =
1003 grmic_LDFLAGS = --main=gnu.classpath.tools.rmic.Main \
1004         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1005 grmic_LINK = $(GCJLINK)
1006 ## See jv_convert_LDADD.
1007 grmic_LDADD = -L$(here)/.libs libgcj-tools.la
1008 grmic_DEPENDENCIES = libgcj-tools.la
1010 ## This is a dummy definition.
1011 grmiregistry_SOURCES =
1012 grmiregistry_LDFLAGS = --main=gnu.classpath.tools.rmiregistry.Main \
1013         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1014 grmiregistry_LINK = $(GCJLINK)
1015 ## See jv_convert_LDADD.
1016 grmiregistry_LDADD = -L$(here)/.libs libgcj-tools.la
1017 grmiregistry_DEPENDENCIES = libgcj-tools.la
1019 ## This is a dummy definition.
1020 gjdoc_SOURCES =
1021 gjdoc_LDFLAGS = --main=gnu.classpath.tools.gjdoc.Main \
1022         -Djava.class.path=$(ANTLR_JAR) \
1023         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1024 gjdoc_LINK = $(GCJLINK)
1025 ## See jv_convert_LDADD.
1026 gjdoc_LDADD = -L$(here)/.libs libgcj-tools.la
1027 gjdoc_DEPENDENCIES = libgcj-tools.la
1029 ## ################################################################
1030 if INTERPRETER
1031 nat_jdwp_source_files = \
1032 gnu/classpath/jdwp/natVMFrame.cc \
1033 gnu/classpath/jdwp/natVMMethod.cc \
1034 gnu/classpath/jdwp/natVMVirtualMachine.cc
1036 nat_jvmti_source_files = \
1037 gnu/gcj/jvmti/natBreakpoint.cc \
1038 gnu/gcj/jvmti/natNormalBreakpoint.cc
1039 else
1040 nat_jdwp_source_files = 
1041 nat_jvmti_source_files =
1042 endif
1043 ## This lists all the C++ source files in subdirectories.
1044 nat_source_files = \
1045 $(nat_jdwp_source_files) \
1046 gnu/classpath/natConfiguration.cc \
1047 gnu/classpath/natSystemProperties.cc \
1048 gnu/classpath/natVMStackWalker.cc \
1049 gnu/gcj/natCore.cc \
1050 gnu/gcj/convert/JIS0208_to_Unicode.cc \
1051 gnu/gcj/convert/JIS0212_to_Unicode.cc \
1052 gnu/gcj/convert/Unicode_to_JIS.cc \
1053 gnu/gcj/convert/natIconv.cc \
1054 gnu/gcj/convert/natInput_EUCJIS.cc \
1055 gnu/gcj/convert/natInput_SJIS.cc \
1056 gnu/gcj/convert/natOutput_EUCJIS.cc \
1057 gnu/gcj/convert/natOutput_SJIS.cc \
1058 gnu/gcj/io/natSimpleSHSStream.cc \
1059 gnu/gcj/io/shs.cc \
1060 $(nat_jvmti_source_files) \
1061 gnu/gcj/runtime/natFinalizerThread.cc \
1062 gnu/gcj/runtime/natSharedLibLoader.cc \
1063 gnu/gcj/runtime/natSystemClassLoader.cc \
1064 gnu/gcj/runtime/natStringBuffer.cc \
1065 gnu/gcj/util/natDebug.cc \
1066 gnu/gcj/util/natGCInfo.cc \
1067 gnu/java/lang/natMainThread.cc \
1068 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc \
1069 gnu/java/lang/management/natVMCompilationMXBeanImpl.cc \
1070 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc \
1071 gnu/java/lang/management/natVMMemoryMXBeanImpl.cc \
1072 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc \
1073 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc \
1074 gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.cc \
1075 gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc \
1076 gnu/java/lang/management/natVMThreadMXBeanImpl.cc \
1077 gnu/java/net/natPlainDatagramSocketImpl.cc \
1078 gnu/java/net/natPlainSocketImpl.cc \
1079 gnu/java/net/protocol/core/natCoreInputStream.cc \
1080 gnu/java/nio/natVMPipe.cc \
1081 gnu/java/nio/natVMSelector.cc \
1082 gnu/java/nio/natNIOServerSocket.cc \
1083 gnu/java/nio/natVMChannel.cc \
1084 gnu/java/nio/channels/natFileChannelImpl.cc \
1085 java/io/natFile.cc \
1086 java/io/natVMObjectInputStream.cc \
1087 java/io/natVMObjectStreamClass.cc \
1088 java/lang/natCharacter.cc \
1089 java/lang/natClass.cc \
1090 java/lang/natClassLoader.cc \
1091 java/lang/natConcreteProcess.cc \
1092 java/lang/natVMDouble.cc \
1093 java/lang/natVMFloat.cc \
1094 java/lang/natMath.cc \
1095 java/lang/natObject.cc \
1096 java/lang/natRuntime.cc \
1097 java/lang/natString.cc \
1098 java/lang/natAbstractStringBuffer.cc \
1099 java/lang/natSystem.cc \
1100 java/lang/natThread.cc \
1101 java/lang/natThreadLocal.cc \
1102 java/lang/natVMClassLoader.cc \
1103 java/lang/natVMProcess.cc \
1104 java/lang/natVMThrowable.cc \
1105 java/lang/ref/natReference.cc \
1106 java/lang/reflect/natArray.cc \
1107 java/lang/reflect/natConstructor.cc \
1108 java/lang/reflect/natField.cc \
1109 java/lang/reflect/natMethod.cc \
1110 java/lang/reflect/natVMProxy.cc \
1111 java/net/natVMInetAddress.cc \
1112 java/net/natVMNetworkInterface.cc \
1113 java/net/natVMURLConnection.cc \
1114 java/nio/channels/natVMChannels.cc \
1115 java/nio/natVMDirectByteBufferImpl.cc \
1116 java/security/natVMAccessController.cc \
1117 java/security/natVMAccessControlState.cc \
1118 java/text/natCollator.cc \
1119 java/util/natVMTimeZone.cc \
1120 java/util/concurrent/atomic/natAtomicLong.cc \
1121 java/util/logging/natLogger.cc \
1122 java/util/zip/natDeflater.cc \
1123 java/util/zip/natInflater.cc \
1124 sun/misc/natUnsafe.cc
1126 xlib_nat_source_files = \
1127 gnu/gcj/xlib/natClip.cc \
1128 gnu/gcj/xlib/natColormap.cc \
1129 gnu/gcj/xlib/natDisplay.cc \
1130 gnu/gcj/xlib/natDrawable.cc \
1131 gnu/gcj/xlib/natFont.cc \
1132 gnu/gcj/xlib/natGC.cc \
1133 gnu/gcj/xlib/natPixmap.cc \
1134 gnu/gcj/xlib/natScreen.cc \
1135 gnu/gcj/xlib/natVisual.cc \
1136 gnu/gcj/xlib/natWMSizeHints.cc \
1137 gnu/gcj/xlib/natWindow.cc \
1138 gnu/gcj/xlib/natWindowAttributes.cc \
1139 gnu/gcj/xlib/natXAnyEvent.cc \
1140 gnu/gcj/xlib/natXButtonEvent.cc \
1141 gnu/gcj/xlib/natXColor.cc \
1142 gnu/gcj/xlib/natXConfigureEvent.cc \
1143 gnu/gcj/xlib/natXException.cc \
1144 gnu/gcj/xlib/natXExposeEvent.cc \
1145 gnu/gcj/xlib/natXImage.cc \
1146 gnu/gcj/xlib/natXUnmapEvent.cc
1148 ## ################################################################
1151 ## Creating and installing sources.zip
1154 ## Create a zip holding all the sources.  This can be meaningfully
1155 ## used in Eclipse.
1156 src.zip:
1157         -rm -f src.zip
1158         here=`pwd`; \
1159         ( \
1160           ( cd $(srcdir)/classpath; \
1161           find java gnu javax org sun -name '*.java' -print | \
1162           while read file; do \
1163 ## Ugly code to avoid "echo -C".  Must separate each entry by a newline
1164 ## Gross but easy.
1165             echo "x-C" | sed -e 's/^.//'; \
1166             echo $(srcdir)/classpath; \
1167             echo $$file; \
1168           done ); \
1169           ( cd $(srcdir)/classpath/external/sax; \
1170           find org -name '*.java' -print | \
1171           while read file; do \
1172             echo "x-C" | sed -e 's/^.//'; \
1173             echo $(srcdir)/classpath/external/sax; \
1174             echo $$file; \
1175           done ); \
1176           ( cd $(srcdir)/classpath/external/relaxngDatatype; \
1177           find org -name '*.java' -print | \
1178           while read file; do \
1179             echo "x-C" | sed -e 's/^.//'; \
1180             echo $(srcdir)/classpath/external/relaxngDatatype; \
1181             echo $$file; \
1182           done ); \
1183           ( cd $(srcdir)/classpath/external/w3c_dom; \
1184           find org -name '*.java' -print | \
1185           while read file; do \
1186             echo "x-C" | sed -e 's/^.//'; \
1187             echo $(srcdir)/classpath/external/w3c_dom; \
1188             echo $$file; \
1189           done ); \
1190 ## Now the build tree.
1191           ( cd classpath; \
1192             find gnu java -name '*.java' -print | \
1193             while read file; do \
1194             echo "x-C" | sed -e 's/^.//'; \
1195             echo `pwd`; \
1196             echo $$file; \
1197           done ); \
1198         ) | \
1199 ## Many of the above circumlocutions were because ZIP used to be a
1200 ## relative path to fastjar.  It didn't seem worthwhile to change the
1201 ## code when we moved to an external jar.
1202         $(JAR) -cfM@ $$here/src.zip
1203 ## Override GNU Classpath sources with libgcj replacements.
1204         here=`pwd`; \
1205         ( \
1206           ( cd $(srcdir); \
1207           find gnu java -name '*.java' -print | \
1208           while read file; do \
1209             echo "x-C" | sed -e 's/^.//'; \
1210             echo $(srcdir); \
1211             echo $$file; \
1212           done ); \
1213         ) | \
1214         $(JAR) -ufM@ $$here/src.zip
1216 ## We use a variable for this in case the user wants to override it.
1217 sourcesdir = $(jardir)
1219 install-src.zip: src.zip
1220         $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
1223 ## ################################################################
1226 ## Dependency tracking madness.
1229 ## This is an evil hack to work around an automake limitation.  We
1230 ## need to ensure that all CNI headers are built, not just the ones
1231 ## used internally by libgcj. We can't make the .o files depend on
1232 ## nat_headers, because in that case we'll force a complete rebuild of
1233 ## the C++ code whenever any .java file is touched.  So instead we
1234 ## have a dummy rule which is only used once, namely the first time a
1235 ## build is done.  On subsequent builds, the dependency tracking for
1236 ## the .cc compilations will have picked up the .h files, and these
1237 ## will be built directly as needed.
1239 headers.stamp:
1240 ## Note that we don't use a real dependency here, since we don't want
1241 ## to rebuild all the headers here when the header list changes.  If
1242 ## we did rebuild here, then any addition of a .java file would cause
1243 ## a large number of recompilations.
1244         $(MAKE) create-headers
1245         @echo > headers.stamp
1247 headers_to_make = $(nat_headers)
1248 if XLIB_AWT
1249 headers_to_make += $(xlib_nat_headers)
1250 endif
1252 create-headers: $(headers_to_make)
1254 .PHONY: create-headers
1256 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
1257 $(libgij_la_OBJECTS): headers.stamp
1258 $(libjvm_la_OBJECTS): headers.stamp
1260 ## ################################################################
1263 ## This section is for make and multilib madness.
1266 # Work around what appears to be a GNU make bug handling MAKEFLAGS
1267 # values defined in terms of make variables, as is the case for CC and
1268 # friends when we are called from the top level Makefile.
1269 AM_MAKEFLAGS = \
1270         "AR_FLAGS=$(AR_FLAGS)" \
1271         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
1272         "CFLAGS=$(CFLAGS)" \
1273         "CXXFLAGS=$(CXXFLAGS)" \
1274         "CPPFLAGS=$(CPPFLAGS)" \
1275         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1276         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1277         "INSTALL=$(INSTALL)" \
1278         "INSTALL_DATA=$(INSTALL_DATA)" \
1279         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1280         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1281         "GCJFLAGS=$(GCJFLAGS)" \
1282         "LDFLAGS=$(LDFLAGS)" \
1283         "LIBCFLAGS=$(LIBCFLAGS)" \
1284         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1285         "MAKE=$(MAKE)" \
1286         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1287         "PICFLAG=$(PICFLAG)" \
1288         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1289         "SHELL=$(SHELL)" \
1290         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1291         "exec_prefix=$(exec_prefix)" \
1292         "infodir=$(infodir)" \
1293         "libdir=$(libdir)" \
1294         "mandir=$(mandir)" \
1295         "prefix=$(prefix)" \
1296         "gxx_include_dir=$(gxx_include_dir)" \
1297         "AR=$(AR)" \
1298         "AS=$(AS)" \
1299         "LD=$(LD)" \
1300         "LIBCFLAGS=$(LIBCFLAGS)" \
1301         "NM=$(NM)" \
1302         "PICFLAG=$(PICFLAG)" \
1303         "RANLIB=$(RANLIB)" \
1304         "DESTDIR=$(DESTDIR)" \
1305         "JAR=$(JAR)"
1307 # Subdir rules rely on $(FLAGS_TO_PASS)
1308 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1310 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1312 MAKEOVERRIDES=
1314 # No install-html or install-pdf support in automake yet
1315 .PHONY: install-html install-pdf
1316 install-html:
1317 install-pdf:
1319 # Multilib support variables.
1320 MULTISRCTOP =
1321 MULTIBUILDTOP =
1322 MULTIDIRS =
1323 MULTISUBDIR =
1324 MULTIDO = true
1325 MULTICLEAN = true
1327 # Multilib support.
1328 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1329         maintainer-clean-multi
1331 all-recursive: all-multi
1332 install-recursive: install-multi
1333 mostlyclean-recursive: mostlyclean-multi
1334 clean-recursive: clean-multi
1335 distclean-recursive: distclean-multi
1336 maintainer-clean-recursive: maintainer-clean-multi
1338 all-multi:
1339         : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1340 install-multi:
1341         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1342 mostlyclean-multi:
1343         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1344 clean-multi:
1345         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1346 distclean-multi:
1347         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1348 maintainer-clean-multi:
1349         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean