1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = foreign subdir-objects
5 ACLOCAL_AMFLAGS = -I . -I .. -I ../config
7 # May be used by various substitution variables.
8 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
10 SUBDIRS = $(DIRLTDL) gcj include classpath
15 # write_entries_to_file - writes each entry in a list
16 # to the specified file. Each entry is written individually
17 # to accomodate systems with severe command-line-length
20 # $(1): variable containing entries to iterate over
22 write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) $(foreach object,$(1),$(shell echo $(object) >> $(2)))
24 ## ################################################################
26 # autoconf2.13's target_alias
27 target_noncanonical = @target_noncanonical@
29 # This is required by TL_AC_GXX_INCLUDE_DIR.
30 libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
32 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
35 ## What gets installed, and where.
38 toolexeclib_LTLIBRARIES = libgcj.la libgij.la libgcj-tools.la
39 toolexecmainlib_DATA = libgcj.spec
42 toolexeclib_LTLIBRARIES += libgcj_bc.la
46 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
49 dbexec_LTLIBRARIES = libjvm.la
51 pkgconfigdir = $(libdir)/pkgconfig
53 jardir = $(datadir)/java
54 jar_DATA = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
56 jar_DATA += $(ECJ_BUILD_JAR)
60 JAVA_HOME_DIR = $(JAVA_HOME)
61 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
63 JAVA_HOME_DIR = $(prefix)
64 BOOT_CLASS_PATH_DIR = $(jardir)/libgcj-$(gcc_version).jar
67 ## Name of the default .db.
69 ## Compiler specific component of the .db file
70 db_pathtail = gcj-$(gcc_version)/$(db_name)
72 ## For now, only on native systems. FIXME.
74 bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool \
75 gappletviewer gjarsigner gkeytool gjar gjavah gnative2ascii \
76 gorbd grmid gserialver gtnameserv
78 ## It is convenient to actually build and install the default database
79 ## when gcj-dbtool is available.
80 dbexec_DATA = $(db_name)
83 bin_SCRIPTS = addr2name.awk
86 ## We build ecjx and not ecj1 because in one mode, ecjx will not work
87 ## until after 'make install', and we don't want it to be picked up in
88 ## the build tree by gcj via a -B option.
89 libexecsub_PROGRAMS = ecjx
92 ## ################################################################
95 ## Compilers and compilation flags.
98 ## The compiler with whatever flags we want for both -c and -C
100 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
102 extra_ldflags_libjava = @extra_ldflags_libjava@
104 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
106 GCJ_FOR_ECJX = @GCJ_FOR_ECJX@
107 GCJ_FOR_ECJX_LINK = $(GCJ_FOR_ECJX) -o $@
108 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
109 $(LDFLAGS) $(extra_ldflags_libjava) -o $@
111 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
113 WARNINGS = -Wextra -Wall
114 ## Some systems don't allow `$' in identifiers by default, so we force
115 ## it with -fdollars-in-identifiers. -Wswitch-enum detects bugs in
116 ## the verifier implementation, and maybe other places. We need
117 ## _GNU_SOURCE defined for some Linux builds. It doesn't hurt to
118 ## always define it. Some systems, including Linux, need
119 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
122 -fnon-call-exceptions \
124 -fdollars-in-identifiers \
126 -D_FILE_OFFSET_BITS=64 \
130 -DPREFIX="\"$(prefix)\"" \
131 -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
132 -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
133 -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
134 -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
135 -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
136 -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
137 -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
138 -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
139 -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
143 -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
145 -Wno-deprecated -fbootstrap-classes
147 AM_CFLAGS = @LIBGCJ_CFLAGS@
149 AM_CFLAGS += $(WARNINGS)
152 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
153 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
156 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
158 LIBFFIINCS = @LIBFFIINCS@
160 AM_CPPFLAGS = -I$(top_srcdir) \
161 -Iinclude -I$(top_srcdir)/include \
162 -I$(top_srcdir)/classpath/include \
163 -Iclasspath/include \
164 -I$(top_srcdir)/classpath/native/fdlibm \
165 $(GCINCS) $(THREADINCS) $(INCLTDL) \
166 $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
168 BOOTCLASSPATH = $(srcdir)/classpath/lib
170 ## ################################################################
173 ## How to build libgcj.a and libgcj.jar
176 libgij_la_SOURCES = gij.cc
177 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
178 ## See jv_convert_LDADD.
179 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
180 ## The mysterious backslash in the grep pattern is consumed by make.
181 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
182 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
184 libgcj_la_SOURCES = prims.cc jni.cc jvmti.cc exception.cc stacktrace.cc \
185 link.cc defineclass.cc interpret.cc verify.cc \
188 ## We need to compile at least the interpreter this way.
189 interpret.lo: AM_CXXFLAGS += -fwrapv
192 libgcj_la_SOURCES += boehm.cc
196 libgcj_la_SOURCES += nogc.cc
199 if USING_POSIX_PLATFORM
200 libgcj_la_SOURCES += posix.cc
203 if USING_WIN32_PLATFORM
204 libgcj_la_SOURCES += win32.cc
208 libgcj_la_SOURCES += darwin.cc
211 if USING_POSIX_THREADS
212 libgcj_la_SOURCES += posix-threads.cc
215 if USING_WIN32_THREADS
216 libgcj_la_SOURCES += win32-threads.cc
220 libgcj_la_SOURCES += no-threads.cc
223 ## Objects from C++ sources in subdirs.
224 nat_files = $(nat_source_files:.cc=.lo)
225 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
227 # Include THREADLIBS here to ensure that the correct version of
228 # certain linuxthread functions get linked:
229 ## The mysterious backslash in the grep pattern is consumed by make.
230 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(THREADLIBS) \
231 $(LIBLTDL) $(SYS_ZLIBS) \
232 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
233 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
235 classpath/native/fdlibm/libfdlibm.la \
236 java/lang/Object.lo \
238 java/process-$(PLATFORM).lo \
239 $(all_packages_source_files:.list=.lo) \
242 $(LIBFFI) $(ZLIBS) $(GCLIBS)
243 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
244 java/lang/Object.lo \
246 java/process-$(PLATFORM).lo \
247 $(all_packages_source_files:.list=.lo) \
248 $(LIBLTDL) $(libgcj_la_LIBADD)
249 libgcj_la_LINK = $(LIBLINK)
251 ## A hack to make sure the various gcj-related macros, like
252 ## LTGCJCOMPILE, are defined by automake. This is never actually
254 EXTRA_libgcj_la_SOURCES = java/lang/Object.java
256 libgcj_tools_la_SOURCES = classpath/tools/tools.zip
257 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes -fsource-filename=$(here)/classpath/tools/all-classes.lst
258 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
259 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
260 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
261 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
262 libgcj_tools_la_LINK = $(LIBLINK)
265 libjvm_la_SOURCES = jni-libjvm.cc
266 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
267 ## See jv_convert_LDADD.
268 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
269 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC)
271 ## The .db file. This rule is only used for native builds, so it is
272 ## safe to invoke gcj-dbtool.
273 $(db_name): gcj-dbtool$(EXEEXT)
274 ## In case it exists already.
276 ## We don't actually care if it fails -- if it does, just make an
277 ## empty file. This is simpler than trying to discover when mmap is
279 ./gcj-dbtool -n $(db_name) || touch $(db_name)
281 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
282 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
283 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
284 libgcj.la libgcj.spec \
285 $(lib_gnu_awt_xlib_la_LIBADD)
286 ## We require libstdc++-v3 to be in the same build tree.
287 lib_gnu_awt_xlib_la_CPPFLAGS = \
289 -I../libstdc++-v3/include \
290 -I../libstdc++-v3/include/$(target_noncanonical) \
291 -I$(srcdir)/../libstdc++-v3/libsupc++
292 ## The mysterious backslash in the grep pattern is consumed by make.
293 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
294 @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
295 -rpath $(toolexeclibdir) \
296 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
297 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
299 ## Support for libgcj_bc: dummy shared library.
301 ## This lets us have one soname in BC objects and another in C++ ABI objects.
302 libgcj_bc_la_SOURCES = libgcj_bc.c
303 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0 \
304 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
305 libgcj_bc_la_LIBADD = libgcj.la
306 libgcj_bc_la_DEPENDENCIES = libgcj.la
307 libgcj_bc_la_LINK = $(LIBLINK)
308 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
309 ## USE_LIBGCJ_BC shouldn't be set on other targets.
310 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
313 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
315 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
316 $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
317 $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
318 rm .libs/libgcj_bc.so; \
319 mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
320 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
321 -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
322 rm .libs/libgcj_bc.so.1; \
323 $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
325 ## Note that property_files is defined in sources.am.
326 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
328 $(propertyo_files): %.lo: classpath/resource/%
329 $(mkinstalldirs) `dirname $@`; \
330 $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
332 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
333 ## Note that this now omits the property files.
334 ## It doesn't matter since we don't use the jar at runtime.
335 here=`pwd`; cd $(srcdir)/classpath/lib; \
336 find gnu java javax org sun -name '*.class' -print | \
338 $(JAR) -cfM@ $$here/libgcj-$(gcc_version).jar
340 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
343 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
344 DISTCLEANFILES = native.dirs
347 ## Use libtool rm to remove each libtool object
348 find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
351 ## Remove every .d file that was created.
352 find . -name '*.d' -print | xargs rm -f
354 # Just remove the objects from C++ sources, for testing the C++ compiler.
356 rm -f $(nat_files) $(xlib_nat_files)
358 SUFFIXES = .class .java .h .properties .list
360 ## Pass the list of object files to libtool in a temporary file to
361 ## avoid tripping platform command line length limits.
362 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
363 @echo Creating list of files to link...
364 @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
365 $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
366 -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
368 ## ################################################################
370 ## Compiling a list of java sources to a single .o.
373 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
375 java/lang/Object.lo: classpath/lib/java/lang/Object.class
376 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
378 java/lang/Class.lo: classpath/lib/java/lang/Class.class
379 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
381 ## ################################################################
383 ## This pulls in a number of variable and target definitions.
386 ## ################################################################
389 ## How to build header files.
392 ## We have special rules for certain headers.
393 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
394 java/lang/String.h java/lang/reflect/Constructor.h \
395 java/lang/reflect/Field.h java/lang/reflect/Method.h \
396 java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
398 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
399 java/io/ObjectInputStream$$GetField.h \
400 java/nio/DirectByteBufferImpl$$ReadWrite.h \
401 java/nio/channels/Pipe$$SinkChannel.h \
402 java/nio/channels/Pipe$$SourceChannel.h \
403 java/lang/reflect/Proxy$$ProxyData.h \
404 java/lang/reflect/Proxy$$ProxyType.h \
405 gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
406 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
407 gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
408 gnu/java/nio/PipeImpl$$SourceChannelImpl.h
410 generic_header_files = $(ordinary_header_files) $(inner_nat_headers) \
415 $(generic_header_files): gcjh.stamp
417 gcjh.stamp: classpath/lib/compile-classes
418 if JAVA_MAINTAINER_MODE
419 $(MYGCJH) --cni --all $(srcdir)/classpath/lib \
420 --cmdfile=$(srcdir)/headers.txt -d $(srcdir) --force
424 nat_headers = $(ordinary_header_files) $(inner_nat_headers)
425 nat_headers_install = $(ordinary_header_files)
427 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
429 ## Headers we maintain by hand and which we want to install.
430 extra_headers = java/lang/Object.h java/lang/Class.h
432 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
435 install-exec-hook: install-toolexeclibLTLIBRARIES install-libexecsubPROGRAMS
436 ## Support for libgcj_bc: dummy shared library used only at link-time.
438 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
439 ## libtool's .la file, this prevents libtool resetting the lib again
441 @echo Installing dummy lib libgcj_bc.so.1.0.0; \
442 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
443 mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
444 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
445 -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
446 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
447 $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
448 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
452 mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
454 ## Undo the prepending of the target prefix
455 mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
459 ## Install the headers. It is fairly ugly that we have to do this by
463 ## Install the .pc file.
464 @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
465 file="libgcj-$${pc_version}.pc"; \
466 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
467 echo " $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
468 $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
469 ## We use a GNU make trick here so that we don't go over the command
470 ## length limit of some shells.
471 @echo Creating list of headers to install...
472 @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
473 @cat tmp-ilist | while read f; do \
474 d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
475 $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$d; \
476 if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
477 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f"; \
478 $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f; \
481 ## Install inner class headers.
482 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
483 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
484 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
485 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
486 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
487 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
488 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
489 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
490 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
491 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
492 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
495 ## ################################################################
498 ## Additional `check' targets for maintainer convenience.
501 ## This is used for maintainer-check. FIXME: should set from
502 ## configure using AC_CHECK_TOOL.
505 ## Try to make sure our library doesn't stomp the namespace.
506 maintainer-check: libgcj.la
507 $(NM) .libs/libgcj.a | grep ' T ' \
508 ## Anything with `4java' is assumed to be from .java source.
510 ## Anything with Jv is ok.
512 ## `terminate' and `unexpected' are part of the runtime.
513 | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
515 ## This rule can be used to see if the headers are more or less
517 header-check: libgcj-$(gcc_version).jar $(nat_headers)
519 for h in $(nat_headers); do \
520 echo "#include \"$$h\"" >> htest.cc; \
522 $(CXXCOMPILE) -fsyntax-only htest.cc
524 ## This rule can be used to see if all the .class files verify
526 class-check: libgcj-$(gcc_version).jar
527 @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
529 echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
530 if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
534 ## This rule checks whether write_entries_to_file works properly.
535 write-entries-to-file-check:
536 @echo Creating list of files to link...
537 @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
539 ## ################################################################
542 ## The `jv-convert' program and code to rebuild the converter header
546 ## it only makes sense to try to rebuild the JIS .h files on native
550 noinst_PROGRAMS = gen-from-JIS
552 gen_from_JIS_SOURCES = \
553 gnu/gcj/convert/gen-from-JIS.c \
554 gnu/gcj/convert/make-trie.c
556 gen_from_JIS_DEPENDENCIES = \
557 gnu/gcj/convert/JIS0201.h \
558 gnu/gcj/convert/JIS0208.h \
559 gnu/gcj/convert/JIS0212.h
561 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
562 ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
564 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
565 ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
567 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
568 ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
570 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
571 # You can get it from
572 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
574 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
575 echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
576 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
577 | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2) /*\3 */|p' \
579 mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
581 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
582 # You can get it from
583 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
585 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
586 echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
587 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
588 | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4) /*\5 */|p' \
590 mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
592 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
593 # You can get it from
594 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
596 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
597 echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
598 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
599 | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
601 mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
608 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
609 ## need this because we are explicitly using libtool to link using the
611 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
612 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
613 jv_convert_LINK = $(GCJLINK)
614 ## We don't explicitly link in the libraries we need; libgcj.la brings
615 ## in all dependencies. We need the -L so that gcj can find libgcj
616 ## with `-lgcj', but it must come first, otherwise the -L flags
617 ## brought in from libgcj.la would cause the install directories to be
618 ## searched before the build-tree ones, and we'd get errors because of
619 ## different libraries with the same SONAME from picky linkers such as
620 ## Solaris'. FIXME: should be _libs on some systems.
621 jv_convert_LDADD = -L$(here)/.libs libgcj.la
622 ## Depend on the spec file to make sure it is up to date before
623 ## linking this program.
624 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
626 gcj_dbtool_SOURCES = \
627 gnu/gcj/tools/gcj_dbtool/natMain.cc
629 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
630 ## need this because we are explicitly using libtool to link using the
632 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
633 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
634 gcj_dbtool_LINK = $(GCJLINK)
635 ## We don't explicitly link in the libraries we need; libgcj.la brings
636 ## in all dependencies. We need the -L so that gcj can find libgcj
637 ## with `-lgcj', but it must come first, otherwise the -L flags
638 ## brought in from libgcj.la would cause the install directories to be
639 ## searched before the build-tree ones, and we'd get errors because of
640 ## different libraries with the same SONAME from picky linkers such as
641 ## Solaris'. FIXME: should be _libs on some systems.
642 gcj_dbtool_LDADD = gnu/gcj/tools/gcj_dbtool.lo -L$(here)/.libs libgcj.la
643 ## Depend on the spec file to make sure it is up to date before
644 ## linking this program.
645 gcj_dbtool_DEPENDENCIES = gnu/gcj/tools/gcj_dbtool.lo libgcj.la libgcj.spec
648 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
649 ## need this because we are explicitly using libtool to link using the
651 gij_LDFLAGS = -rpath $(libdir)/gcj-$(gcc_version) -rpath $(toolexeclibdir) \
652 -shared-libgcc $(THREADLDFLAGS)
653 gij_LINK = $(GCJLINK)
654 ## See jv_convert_LDADD.
655 gij_LDADD = -L$(here)/.libs libgij.la
656 ## Depend on the spec file to make sure it is up to date before
657 ## linking this program.
658 gij_DEPENDENCIES = libgij.la
660 ## Build an ecjx from a .jar.
662 ## We use the BC ABI here so that we don't need to compile ecj.jar.
663 ## Hopefully the user has compiled it into his system .db.
664 ## However, even if not it will run reasonably quickly.
666 ECJX_BASE_FLAGS = -findirect-dispatch \
667 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
671 ecjx_LINK = $(GCJLINK)
674 ## Use ecj.jar at runtime.
675 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
677 ## Use ecj.jar at compile time.
678 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
681 ecjx_LDADD = -L$(here)/.libs libgcj.la
682 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
684 ecjx_DEPENDENCIES += libgcj_bc.la
689 ecjx_LINK = $(GCJ_FOR_ECJX_LINK)
690 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
696 ## This is a dummy definition.
697 gappletviewer_SOURCES =
698 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
699 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
700 gappletviewer_LINK = $(GCJLINK)
701 ## See jv_convert_LDADD.
702 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
703 gappletviewer_DEPENDENCIES = libgcj-tools.la
705 ## This is a dummy definition.
707 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
708 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
709 gjarsigner_LINK = $(GCJLINK)
710 ## See jv_convert_LDADD.
711 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
712 gjarsigner_DEPENDENCIES = libgcj-tools.la
714 ## This is a dummy definition.
716 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
717 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
718 gkeytool_LINK = $(GCJLINK)
719 ## See jv_convert_LDADD.
720 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
721 gkeytool_DEPENDENCIES = libgcj-tools.la
723 ## This is a dummy definition.
725 gjar_LDFLAGS = --main=gnu.classpath.tools.jar.Main \
726 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
727 gjar_LINK = $(GCJLINK)
728 ## See jv_convert_LDADD.
729 gjar_LDADD = -L$(here)/.libs libgcj-tools.la
730 gjar_DEPENDENCIES = libgcj-tools.la
732 ## This is a dummy definition.
734 gjavah_LDFLAGS = --main=gnu.classpath.tools.javah.Main \
735 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
736 gjavah_LINK = $(GCJLINK)
737 ## See jv_convert_LDADD.
738 gjavah_LDADD = -L$(here)/.libs libgcj-tools.la
739 gjavah_DEPENDENCIES = libgcj-tools.la
741 ## This is a dummy definition.
742 gnative2ascii_SOURCES =
743 gnative2ascii_LDFLAGS = --main=gnu.classpath.tools.native2ascii.Native2ASCII \
744 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
745 gnative2ascii_LINK = $(GCJLINK)
746 ## See jv_convert_LDADD.
747 gnative2ascii_LDADD = -L$(here)/.libs libgcj-tools.la
748 gnative2ascii_DEPENDENCIES = libgcj-tools.la
750 ## This is a dummy definition.
752 gorbd_LDFLAGS = --main=gnu.classpath.tools.orbd.Main \
753 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
754 gorbd_LINK = $(GCJLINK)
755 ## See jv_convert_LDADD.
756 gorbd_LDADD = -L$(here)/.libs libgcj-tools.la
757 gorbd_DEPENDENCIES = libgcj-tools.la
759 ## This is a dummy definition.
761 grmid_LDFLAGS = --main=gnu.classpath.tools.rmid.Main \
762 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
763 grmid_LINK = $(GCJLINK)
764 ## See jv_convert_LDADD.
765 grmid_LDADD = -L$(here)/.libs libgcj-tools.la
766 grmid_DEPENDENCIES = libgcj-tools.la
768 ## This is a dummy definition.
770 gserialver_LDFLAGS = --main=gnu.classpath.tools.serialver.SerialVer \
771 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
772 gserialver_LINK = $(GCJLINK)
773 ## See jv_convert_LDADD.
774 gserialver_LDADD = -L$(here)/.libs libgcj-tools.la
775 gserialver_DEPENDENCIES = libgcj-tools.la
777 ## This is a dummy definition.
779 gtnameserv_LDFLAGS = --main=gnu.classpath.tools.tnameserv.Main \
780 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
781 gtnameserv_LINK = $(GCJLINK)
782 ## See jv_convert_LDADD.
783 gtnameserv_LDADD = -L$(here)/.libs libgcj-tools.la
784 gtnameserv_DEPENDENCIES = libgcj-tools.la
786 ## This is a dummy definition.
788 grmic_LDFLAGS = --main=gnu.classpath.tools.rmic.Main \
789 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
790 grmic_LINK = $(GCJLINK)
791 ## See jv_convert_LDADD.
792 grmic_LDADD = -L$(here)/.libs libgcj-tools.la
793 grmic_DEPENDENCIES = libgcj-tools.la
795 ## This is a dummy definition.
796 grmiregistry_SOURCES =
797 grmiregistry_LDFLAGS = --main=gnu.classpath.tools.rmiregistry.Main \
798 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
799 grmiregistry_LINK = $(GCJLINK)
800 ## See jv_convert_LDADD.
801 grmiregistry_LDADD = -L$(here)/.libs libgcj-tools.la
802 grmiregistry_DEPENDENCIES = libgcj-tools.la
804 ## ################################################################
806 ## This lists all the C++ source files in subdirectories.
808 gnu/classpath/jdwp/natVMFrame.cc \
809 gnu/classpath/jdwp/natVMMethod.cc \
810 gnu/classpath/jdwp/natVMVirtualMachine.cc \
811 gnu/classpath/natConfiguration.cc \
812 gnu/classpath/natSystemProperties.cc \
813 gnu/classpath/natVMStackWalker.cc \
815 gnu/gcj/convert/JIS0208_to_Unicode.cc \
816 gnu/gcj/convert/JIS0212_to_Unicode.cc \
817 gnu/gcj/convert/Unicode_to_JIS.cc \
818 gnu/gcj/convert/natIconv.cc \
819 gnu/gcj/convert/natInput_EUCJIS.cc \
820 gnu/gcj/convert/natInput_SJIS.cc \
821 gnu/gcj/convert/natOutput_EUCJIS.cc \
822 gnu/gcj/convert/natOutput_SJIS.cc \
823 gnu/gcj/io/natSimpleSHSStream.cc \
825 gnu/gcj/jvmti/natBreakpoint.cc \
826 gnu/gcj/runtime/natFinalizerThread.cc \
827 gnu/gcj/runtime/natSharedLibLoader.cc \
828 gnu/gcj/runtime/natSystemClassLoader.cc \
829 gnu/gcj/runtime/natStringBuffer.cc \
830 gnu/gcj/util/natDebug.cc \
831 gnu/java/lang/natMainThread.cc \
832 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc \
833 gnu/java/lang/management/natVMCompilationMXBeanImpl.cc \
834 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc \
835 gnu/java/lang/management/natVMMemoryMXBeanImpl.cc \
836 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc \
837 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc \
838 gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc \
839 gnu/java/lang/management/natVMThreadMXBeanImpl.cc \
840 gnu/java/net/natPlainDatagramSocketImpl.cc \
841 gnu/java/net/natPlainSocketImpl.cc \
842 gnu/java/net/protocol/core/natCoreInputStream.cc \
843 gnu/java/nio/natVMPipe.cc \
844 gnu/java/nio/natVMSelector.cc \
845 gnu/java/nio/natNIOServerSocket.cc \
846 gnu/java/nio/natVMChannel.cc \
847 gnu/java/nio/channels/natFileChannelImpl.cc \
849 java/io/natVMObjectInputStream.cc \
850 java/io/natVMObjectStreamClass.cc \
851 java/lang/management/natVMManagementFactory.cc \
852 java/lang/natCharacter.cc \
853 java/lang/natClass.cc \
854 java/lang/natClassLoader.cc \
855 java/lang/natConcreteProcess.cc \
856 java/lang/natVMDouble.cc \
857 java/lang/natVMFloat.cc \
858 java/lang/natMath.cc \
859 java/lang/natObject.cc \
860 java/lang/natRuntime.cc \
861 java/lang/natString.cc \
862 java/lang/natStringBuffer.cc \
863 java/lang/natStringBuilder.cc \
864 java/lang/natSystem.cc \
865 java/lang/natThread.cc \
866 java/lang/natThreadLocal.cc \
867 java/lang/natVMClassLoader.cc \
868 java/lang/natVMThrowable.cc \
869 java/lang/ref/natReference.cc \
870 java/lang/reflect/natArray.cc \
871 java/lang/reflect/natConstructor.cc \
872 java/lang/reflect/natField.cc \
873 java/lang/reflect/natMethod.cc \
874 java/lang/reflect/natVMProxy.cc \
875 java/net/natVMInetAddress.cc \
876 java/net/natVMNetworkInterface.cc \
877 java/net/natVMURLConnection.cc \
878 java/nio/channels/natVMChannels.cc \
879 java/nio/natVMDirectByteBufferImpl.cc \
880 java/security/natVMAccessController.cc \
881 java/security/natVMAccessControlState.cc \
882 java/text/natCollator.cc \
883 java/util/natVMTimeZone.cc \
884 java/util/concurrent/atomic/natAtomicLong.cc \
885 java/util/logging/natLogger.cc \
886 java/util/zip/natDeflater.cc \
887 java/util/zip/natInflater.cc \
888 sun/misc/natUnsafe.cc
890 xlib_nat_source_files = \
891 gnu/gcj/xlib/natClip.cc \
892 gnu/gcj/xlib/natColormap.cc \
893 gnu/gcj/xlib/natDisplay.cc \
894 gnu/gcj/xlib/natDrawable.cc \
895 gnu/gcj/xlib/natFont.cc \
896 gnu/gcj/xlib/natGC.cc \
897 gnu/gcj/xlib/natPixmap.cc \
898 gnu/gcj/xlib/natScreen.cc \
899 gnu/gcj/xlib/natVisual.cc \
900 gnu/gcj/xlib/natWMSizeHints.cc \
901 gnu/gcj/xlib/natWindow.cc \
902 gnu/gcj/xlib/natWindowAttributes.cc \
903 gnu/gcj/xlib/natXAnyEvent.cc \
904 gnu/gcj/xlib/natXButtonEvent.cc \
905 gnu/gcj/xlib/natXColor.cc \
906 gnu/gcj/xlib/natXConfigureEvent.cc \
907 gnu/gcj/xlib/natXException.cc \
908 gnu/gcj/xlib/natXExposeEvent.cc \
909 gnu/gcj/xlib/natXImage.cc \
910 gnu/gcj/xlib/natXUnmapEvent.cc
912 ## ################################################################
915 ## Creating and installing sources.zip
918 ## Create a zip holding all the sources. This can be meaningfully
924 ( cd $(srcdir)/classpath; \
925 find java gnu javax org sun -name '*.java' -print | \
926 while read file; do \
927 ## Ugly code to avoid "echo -C". Must separate each entry by a newline
929 echo "x-C" | sed -e 's/^.//'; \
930 echo $(srcdir)/classpath; \
933 ( cd $(srcdir)/classpath/external/sax; \
934 find org -name '*.java' -print | \
935 while read file; do \
936 echo "x-C" | sed -e 's/^.//'; \
937 echo $(srcdir)/classpath/external/sax; \
940 ( cd $(srcdir)/classpath/external/relaxngDatatype; \
941 find org -name '*.java' -print | \
942 while read file; do \
943 echo "x-C" | sed -e 's/^.//'; \
944 echo $(srcdir)/classpath/external/relaxngDatatype; \
947 ( cd $(srcdir)/classpath/external/w3c_dom; \
948 find org -name '*.java' -print | \
949 while read file; do \
950 echo "x-C" | sed -e 's/^.//'; \
951 echo $(srcdir)/classpath/external/w3c_dom; \
954 ## Now the build tree.
956 find gnu java -name '*.java' -print | \
957 while read file; do \
958 echo "x-C" | sed -e 's/^.//'; \
963 ## Many of the above circumlocutions were because ZIP used to be a
964 ## relative path to fastjar. It didn't seem worthwhile to change the
965 ## code when we moved to an external jar.
966 $(JAR) -cfM@ $$here/src.zip
967 ## Override GNU Classpath sources with libgcj replacements.
971 find gnu java -name '*.java' -print | \
972 while read file; do \
973 echo "x-C" | sed -e 's/^.//'; \
978 $(JAR) -ufM@ $$here/src.zip
980 ## We use a variable for this in case the user wants to override it.
981 sourcesdir = $(jardir)
983 install-src.zip: src.zip
984 $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
987 ## ################################################################
990 ## Dependency tracking madness.
993 ## This is an evil hack to work around an automake limitation. We
994 ## need to ensure that all CNI headers are built, not just the ones
995 ## used internally by libgcj. We can't make the .o files depend on
996 ## nat_headers, because in that case we'll force a complete rebuild of
997 ## the C++ code whenever any .java file is touched. So instead we
998 ## have a dummy rule which is only used once, namely the first time a
999 ## build is done. On subsequent builds, the dependency tracking for
1000 ## the .cc compilations will have picked up the .h files, and these
1001 ## will be built directly as needed.
1004 ## Note that we don't use a real dependency here, since we don't want
1005 ## to rebuild all the headers here when the header list changes. If
1006 ## we did rebuild here, then any addition of a .java file would cause
1007 ## a large number of recompilations.
1008 $(MAKE) create-headers
1009 @echo > headers.stamp
1011 headers_to_make = $(nat_headers)
1013 headers_to_make += $(xlib_nat_headers)
1016 create-headers: $(headers_to_make)
1018 .PHONY: create-headers
1020 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
1021 $(libgij_la_OBJECTS): headers.stamp
1022 $(libjvm_la_OBJECTS): headers.stamp
1024 ## ################################################################
1027 ## This section is for make and multilib madness.
1030 # Work around what appears to be a GNU make bug handling MAKEFLAGS
1031 # values defined in terms of make variables, as is the case for CC and
1032 # friends when we are called from the top level Makefile.
1034 "AR_FLAGS=$(AR_FLAGS)" \
1035 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
1036 "CFLAGS=$(CFLAGS)" \
1037 "CXXFLAGS=$(CXXFLAGS)" \
1038 "CPPFLAGS=$(CPPFLAGS)" \
1039 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1040 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1041 "INSTALL=$(INSTALL)" \
1042 "INSTALL_DATA=$(INSTALL_DATA)" \
1043 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1044 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1045 "GCJFLAGS=$(GCJFLAGS)" \
1046 "LDFLAGS=$(LDFLAGS)" \
1047 "LIBCFLAGS=$(LIBCFLAGS)" \
1048 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1050 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1051 "PICFLAG=$(PICFLAG)" \
1052 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1054 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1055 "exec_prefix=$(exec_prefix)" \
1056 "infodir=$(infodir)" \
1057 "libdir=$(libdir)" \
1058 "prefix=$(prefix)" \
1059 "gxx_include_dir=$(gxx_include_dir)" \
1063 "LIBCFLAGS=$(LIBCFLAGS)" \
1065 "PICFLAG=$(PICFLAG)" \
1066 "RANLIB=$(RANLIB)" \
1067 "DESTDIR=$(DESTDIR)" \
1070 # Subdir rules rely on $(FLAGS_TO_PASS)
1071 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1073 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1077 # No install-html support yet.
1078 .PHONY: install-html
1081 # Multilib support variables.
1090 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1091 maintainer-clean-multi
1093 all-recursive: all-multi
1094 install-recursive: install-multi
1095 mostlyclean-recursive: mostlyclean-multi
1096 clean-recursive: clean-multi
1097 distclean-recursive: distclean-multi
1098 maintainer-clean-recursive: maintainer-clean-multi
1101 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1103 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1105 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1107 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1109 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1110 maintainer-clean-multi:
1111 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean