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.
99 bin_SCRIPTS += scripts/jar
102 ## The compiler with whatever flags we want for both -c and -C
104 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
106 extra_ldflags_libjava = @extra_ldflags_libjava@
108 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
110 GCJ_FOR_ECJX = @GCJ_FOR_ECJX@
111 GCJ_FOR_ECJX_LINK = $(GCJ_FOR_ECJX) -o $@
112 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
113 $(LDFLAGS) $(extra_ldflags_libjava) -o $@
115 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
117 WARNINGS = -Wextra -Wall
118 ## Some systems don't allow `$' in identifiers by default, so we force
119 ## it with -fdollars-in-identifiers. -Wswitch-enum detects bugs in
120 ## the verifier implementation, and maybe other places. We need
121 ## _GNU_SOURCE defined for some Linux builds. It doesn't hurt to
122 ## always define it. Some systems, including Linux, need
123 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
126 -fnon-call-exceptions \
128 -fdollars-in-identifiers \
130 -D_FILE_OFFSET_BITS=64 \
134 -DPREFIX="\"$(prefix)\"" \
135 -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
136 -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
137 -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
138 -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
139 -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
140 -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
141 -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
142 -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
143 -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
147 -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
149 -Wno-deprecated -fbootstrap-classes
151 AM_CFLAGS = @LIBGCJ_CFLAGS@
153 AM_CFLAGS += $(WARNINGS)
156 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
157 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
160 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
162 LIBFFIINCS = @LIBFFIINCS@
164 AM_CPPFLAGS = -I$(top_srcdir) \
165 -Iinclude -I$(top_srcdir)/include \
166 -I$(top_srcdir)/classpath/include \
167 -Iclasspath/include \
168 -I$(top_srcdir)/classpath/native/fdlibm \
169 $(GCINCS) $(THREADINCS) $(INCLTDL) \
170 $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
172 BOOTCLASSPATH = $(srcdir)/classpath/lib
174 ## ################################################################
177 ## How to build libgcj.a and libgcj.jar
180 libgij_la_SOURCES = gij.cc
181 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
182 ## See jv_convert_LDADD.
183 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
184 ## The mysterious backslash in the grep pattern is consumed by make.
185 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
186 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
188 libgcj_la_SOURCES = prims.cc jni.cc jvmti.cc exception.cc stacktrace.cc \
189 link.cc defineclass.cc interpret.cc verify.cc \
193 libgcj_la_SOURCES += boehm.cc
197 libgcj_la_SOURCES += nogc.cc
200 if USING_POSIX_PLATFORM
201 libgcj_la_SOURCES += posix.cc
204 if USING_WIN32_PLATFORM
205 libgcj_la_SOURCES += win32.cc
209 libgcj_la_SOURCES += darwin.cc
212 if USING_POSIX_THREADS
213 libgcj_la_SOURCES += posix-threads.cc
216 if USING_WIN32_THREADS
217 libgcj_la_SOURCES += win32-threads.cc
221 libgcj_la_SOURCES += no-threads.cc
224 ## Objects from C++ sources in subdirs.
225 nat_files = $(nat_source_files:.cc=.lo)
226 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
228 # Include THREADLIBS here to ensure that the correct version of
229 # certain linuxthread functions get linked:
230 ## The mysterious backslash in the grep pattern is consumed by make.
231 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(THREADLIBS) \
232 $(LIBLTDL) $(SYS_ZLIBS) \
233 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
234 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
236 classpath/native/fdlibm/libfdlibm.la \
237 java/lang/Object.lo \
239 java/process-$(PLATFORM).lo \
240 $(all_packages_source_files:.list=.lo) \
243 $(LIBFFI) $(ZLIBS) $(GCLIBS)
244 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
245 java/lang/Object.lo \
247 java/process-$(PLATFORM).lo \
248 $(all_packages_source_files:.list=.lo) \
249 $(LIBLTDL) $(libgcj_la_LIBADD)
250 libgcj_la_LINK = $(LIBLINK)
252 ## A hack to make sure the various gcj-related macros, like
253 ## LTGCJCOMPILE, are defined by automake. This is never actually
255 EXTRA_libgcj_la_SOURCES = java/lang/Object.java
257 libgcj_tools_la_SOURCES = classpath/tools/tools.zip
258 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes -fsource-filename=$(here)/classpath/tools/all-classes.lst
259 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
260 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
261 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
262 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
263 libgcj_tools_la_LINK = $(LIBLINK)
266 libjvm_la_SOURCES = jni-libjvm.cc
267 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
268 ## See jv_convert_LDADD.
269 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
270 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC)
272 ## The .db file. This rule is only used for native builds, so it is
273 ## safe to invoke gcj-dbtool.
274 $(db_name): gcj-dbtool$(EXEEXT)
275 ## In case it exists already.
277 ## We don't actually care if it fails -- if it does, just make an
278 ## empty file. This is simpler than trying to discover when mmap is
280 ./gcj-dbtool -n $(db_name) || touch $(db_name)
282 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
283 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
284 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
285 libgcj.la libgcj.spec \
286 $(lib_gnu_awt_xlib_la_LIBADD)
287 ## We require libstdc++-v3 to be in the same build tree.
288 lib_gnu_awt_xlib_la_CPPFLAGS = \
290 -I../libstdc++-v3/include \
291 -I../libstdc++-v3/include/$(target_noncanonical) \
292 -I$(srcdir)/../libstdc++-v3/libsupc++
293 ## The mysterious backslash in the grep pattern is consumed by make.
294 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
295 @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
296 -rpath $(toolexeclibdir) \
297 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
298 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
300 ## Support for libgcj_bc: dummy shared library.
302 ## This lets us have one soname in BC objects and another in C++ ABI objects.
303 libgcj_bc_la_SOURCES = libgcj_bc.c
304 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0 \
305 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
306 libgcj_bc_la_LIBADD = libgcj.la
307 libgcj_bc_la_DEPENDENCIES = libgcj.la
308 libgcj_bc_la_LINK = $(LIBLINK)
309 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
310 ## USE_LIBGCJ_BC shouldn't be set on other targets.
311 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
314 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
316 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
317 $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
318 $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
319 rm .libs/libgcj_bc.so; \
320 mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
321 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
322 -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
323 rm .libs/libgcj_bc.so.1; \
324 $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
326 ## Note that property_files is defined in sources.am.
327 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
329 $(propertyo_files): %.lo: classpath/resource/%
330 $(mkinstalldirs) `dirname $@`; \
331 $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
333 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
334 ## Note that this now omits the property files.
335 ## It doesn't matter since we don't use the jar at runtime.
336 here=`pwd`; cd $(srcdir)/classpath/lib; $(JAR) -cfM \
337 $$here/libgcj-$(gcc_version).jar gnu java javax org sun
339 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
342 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
343 DISTCLEANFILES = native.dirs
346 ## Use libtool rm to remove each libtool object
347 find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
350 ## Remove every .d file that was created.
351 find . -name '*.d' -print | xargs rm -f
353 # Just remove the objects from C++ sources, for testing the C++ compiler.
355 rm -f $(nat_files) $(xlib_nat_files)
357 SUFFIXES = .class .java .h .properties .list
359 ## Pass the list of object files to libtool in a temporary file to
360 ## avoid tripping platform command line length limits.
361 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
362 @echo Creating list of files to link...
363 @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
364 $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
365 -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
367 ## ################################################################
369 ## Compiling a list of java sources to a single .o.
372 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
374 java/lang/Object.lo: classpath/lib/java/lang/Object.class
375 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
377 java/lang/Class.lo: classpath/lib/java/lang/Class.class
378 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
380 ## ################################################################
382 ## This pulls in a number of variable and target definitions.
385 ## ################################################################
388 ## How to build header files.
391 ## We have special rules for certain headers.
392 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
393 java/lang/String.h java/lang/reflect/Constructor.h \
394 java/lang/reflect/Field.h java/lang/reflect/Method.h \
395 java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
397 generic_header_files = $(ordinary_header_files) $(xlib_nat_headers)
401 $(generic_header_files): gcjh.stamp
403 gcjh.stamp: classpath/lib/compile-classes
404 if JAVA_MAINTAINER_MODE
405 $(MYGCJH) --cni --all $(srcdir)/classpath/lib \
406 --cmdfile=$(srcdir)/headers.txt -d $(srcdir) --force
410 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
411 java/io/ObjectInputStream$$GetField.h \
412 java/nio/DirectByteBufferImpl$$ReadWrite.h \
413 java/nio/channels/Pipe$$SinkChannel.h \
414 java/nio/channels/Pipe$$SourceChannel.h \
415 java/lang/reflect/Proxy$$ProxyData.h \
416 java/lang/reflect/Proxy$$ProxyType.h \
417 gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
418 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
419 gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
420 gnu/java/nio/PipeImpl$$SourceChannelImpl.h
422 nat_headers = $(ordinary_header_files) $(inner_nat_headers)
423 nat_headers_install = $(ordinary_header_files)
425 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
427 ## Headers we maintain by hand and which we want to install.
428 extra_headers = java/lang/Object.h java/lang/Class.h
430 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
433 install-exec-hook: install-toolexeclibLTLIBRARIES install-libexecsubPROGRAMS
434 ## Support for libgcj_bc: dummy shared library used only at link-time.
436 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
437 ## libtool's .la file, this prevents libtool resetting the lib again
439 @echo Installing dummy lib libgcj_bc.so.1.0.0; \
440 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
441 mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
442 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
443 -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
444 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
445 $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
446 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
450 mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
452 ## Undo the prepending of the target prefix
453 mv $(DESTDIR)$(libexecsubdir)/$(target_noncanonical)-`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
457 ## Install the headers. It is fairly ugly that we have to do this by
461 ## Install the .pc file.
462 @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
463 file="libgcj-$${pc_version}.pc"; \
464 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
465 echo " $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
466 $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
467 ## We use a GNU make trick here so that we don't go over the command
468 ## length limit of some shells.
469 @echo Creating list of headers to install...
470 @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
471 @cat tmp-ilist | while read f; do \
472 d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
473 $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$d; \
474 if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
475 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f"; \
476 $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f; \
479 ## Install inner class headers.
480 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
481 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
482 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
483 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
484 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
485 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
486 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
487 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
488 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
489 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
490 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
493 ## ################################################################
496 ## Additional `check' targets for maintainer convenience.
499 ## This is used for maintainer-check. FIXME: should set from
500 ## configure using AC_CHECK_TOOL.
503 ## Try to make sure our library doesn't stomp the namespace.
504 maintainer-check: libgcj.la
505 $(NM) .libs/libgcj.a | grep ' T ' \
506 ## Anything with `4java' is assumed to be from .java source.
508 ## Anything with Jv is ok.
510 ## `terminate' and `unexpected' are part of the runtime.
511 | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
513 ## This rule can be used to see if the headers are more or less
515 header-check: libgcj-$(gcc_version).jar $(nat_headers)
517 for h in $(nat_headers); do \
518 echo "#include \"$$h\"" >> htest.cc; \
520 $(CXXCOMPILE) -fsyntax-only htest.cc
522 ## This rule can be used to see if all the .class files verify
524 class-check: libgcj-$(gcc_version).jar
525 @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
527 echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
528 if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
532 ## This rule checks whether write_entries_to_file works properly.
533 write-entries-to-file-check:
534 @echo Creating list of files to link...
535 @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
537 ## ################################################################
540 ## The `jv-convert' program and code to rebuild the converter header
544 ## it only makes sense to try to rebuild the JIS .h files on native
548 noinst_PROGRAMS = gen-from-JIS
550 gen_from_JIS_SOURCES = \
551 gnu/gcj/convert/gen-from-JIS.c \
552 gnu/gcj/convert/make-trie.c
554 gen_from_JIS_DEPENDENCIES = \
555 gnu/gcj/convert/JIS0201.h \
556 gnu/gcj/convert/JIS0208.h \
557 gnu/gcj/convert/JIS0212.h
559 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
560 ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
562 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
563 ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
565 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
566 ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
568 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
569 # You can get it from
570 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
572 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
573 echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
574 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
575 | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2) /*\3 */|p' \
577 mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
579 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
580 # You can get it from
581 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
583 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
584 echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
585 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
586 | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4) /*\5 */|p' \
588 mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
590 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
591 # You can get it from
592 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
594 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
595 echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
596 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
597 | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
599 mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
606 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
607 ## need this because we are explicitly using libtool to link using the
609 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
610 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
611 jv_convert_LINK = $(GCJLINK)
612 ## We don't explicitly link in the libraries we need; libgcj.la brings
613 ## in all dependencies. We need the -L so that gcj can find libgcj
614 ## with `-lgcj', but it must come first, otherwise the -L flags
615 ## brought in from libgcj.la would cause the install directories to be
616 ## searched before the build-tree ones, and we'd get errors because of
617 ## different libraries with the same SONAME from picky linkers such as
618 ## Solaris'. FIXME: should be _libs on some systems.
619 jv_convert_LDADD = -L$(here)/.libs libgcj.la
620 ## Depend on the spec file to make sure it is up to date before
621 ## linking this program.
622 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
624 gcj_dbtool_SOURCES = \
625 gnu/gcj/tools/gcj_dbtool/natMain.cc
627 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
628 ## need this because we are explicitly using libtool to link using the
630 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
631 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
632 gcj_dbtool_LINK = $(GCJLINK)
633 ## We don't explicitly link in the libraries we need; libgcj.la brings
634 ## in all dependencies. We need the -L so that gcj can find libgcj
635 ## with `-lgcj', but it must come first, otherwise the -L flags
636 ## brought in from libgcj.la would cause the install directories to be
637 ## searched before the build-tree ones, and we'd get errors because of
638 ## different libraries with the same SONAME from picky linkers such as
639 ## Solaris'. FIXME: should be _libs on some systems.
640 gcj_dbtool_LDADD = gnu/gcj/tools/gcj_dbtool.lo -L$(here)/.libs libgcj.la
641 ## Depend on the spec file to make sure it is up to date before
642 ## linking this program.
643 gcj_dbtool_DEPENDENCIES = gnu/gcj/tools/gcj_dbtool.lo libgcj.la libgcj.spec
646 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
647 ## need this because we are explicitly using libtool to link using the
649 gij_LDFLAGS = -rpath $(libdir)/gcj-$(gcc_version) -rpath $(toolexeclibdir) \
650 -shared-libgcc $(THREADLDFLAGS)
651 gij_LINK = $(GCJLINK)
652 ## See jv_convert_LDADD.
653 gij_LDADD = -L$(here)/.libs libgij.la
654 ## Depend on the spec file to make sure it is up to date before
655 ## linking this program.
656 gij_DEPENDENCIES = libgij.la
658 ## Build an ecjx from a .jar.
660 ## We use the BC ABI here so that we don't need to compile ecj.jar.
661 ## Hopefully the user has compiled it into his system .db.
662 ## However, even if not it will run reasonably quickly.
664 ECJX_BASE_FLAGS = -findirect-dispatch \
665 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
669 ecjx_LINK = $(GCJLINK)
672 ## Use ecj.jar at runtime.
673 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
675 ## Use ecj.jar at compile time.
676 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
679 ecjx_LDADD = -L$(here)/.libs libgcj.la
680 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
682 ecjx_DEPENDENCIES += libgcj_bc.la
687 ecjx_LINK = $(GCJ_FOR_ECJX_LINK)
688 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
694 ## This is a dummy definition.
695 gappletviewer_SOURCES =
696 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
697 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
698 gappletviewer_LINK = $(GCJLINK)
699 ## See jv_convert_LDADD.
700 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
701 gappletviewer_DEPENDENCIES = libgcj-tools.la
703 ## This is a dummy definition.
705 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
706 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
707 gjarsigner_LINK = $(GCJLINK)
708 ## See jv_convert_LDADD.
709 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
710 gjarsigner_DEPENDENCIES = libgcj-tools.la
712 ## This is a dummy definition.
714 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
715 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
716 gkeytool_LINK = $(GCJLINK)
717 ## See jv_convert_LDADD.
718 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
719 gkeytool_DEPENDENCIES = libgcj-tools.la
721 ## This is a dummy definition.
723 gjar_LDFLAGS = --main=gnu.classpath.tools.jar.Main \
724 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
725 gjar_LINK = $(GCJLINK)
726 ## See jv_convert_LDADD.
727 gjar_LDADD = -L$(here)/.libs libgcj-tools.la
728 gjar_DEPENDENCIES = libgcj-tools.la
730 ## This is a dummy definition.
732 gjavah_LDFLAGS = --main=gnu.classpath.tools.javah.Main \
733 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
734 gjavah_LINK = $(GCJLINK)
735 ## See jv_convert_LDADD.
736 gjavah_LDADD = -L$(here)/.libs libgcj-tools.la
737 gjavah_DEPENDENCIES = libgcj-tools.la
739 ## This is a dummy definition.
740 gnative2ascii_SOURCES =
741 gnative2ascii_LDFLAGS = --main=gnu.classpath.tools.native2ascii.Native2ASCII \
742 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
743 gnative2ascii_LINK = $(GCJLINK)
744 ## See jv_convert_LDADD.
745 gnative2ascii_LDADD = -L$(here)/.libs libgcj-tools.la
746 gnative2ascii_DEPENDENCIES = libgcj-tools.la
748 ## This is a dummy definition.
750 gorbd_LDFLAGS = --main=gnu.classpath.tools.orbd.Main \
751 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
752 gorbd_LINK = $(GCJLINK)
753 ## See jv_convert_LDADD.
754 gorbd_LDADD = -L$(here)/.libs libgcj-tools.la
755 gorbd_DEPENDENCIES = libgcj-tools.la
757 ## This is a dummy definition.
759 grmid_LDFLAGS = --main=gnu.classpath.tools.rmid.Main \
760 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
761 grmid_LINK = $(GCJLINK)
762 ## See jv_convert_LDADD.
763 grmid_LDADD = -L$(here)/.libs libgcj-tools.la
764 grmid_DEPENDENCIES = libgcj-tools.la
766 ## This is a dummy definition.
768 gserialver_LDFLAGS = --main=gnu.classpath.tools.serialver.SerialVer \
769 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
770 gserialver_LINK = $(GCJLINK)
771 ## See jv_convert_LDADD.
772 gserialver_LDADD = -L$(here)/.libs libgcj-tools.la
773 gserialver_DEPENDENCIES = libgcj-tools.la
775 ## This is a dummy definition.
777 gtnameserv_LDFLAGS = --main=gnu.classpath.tools.tnameserv.Main \
778 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
779 gtnameserv_LINK = $(GCJLINK)
780 ## See jv_convert_LDADD.
781 gtnameserv_LDADD = -L$(here)/.libs libgcj-tools.la
782 gtnameserv_DEPENDENCIES = libgcj-tools.la
784 ## This is a dummy definition.
786 grmic_LDFLAGS = --main=gnu.classpath.tools.rmic.Main \
787 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
788 grmic_LINK = $(GCJLINK)
789 ## See jv_convert_LDADD.
790 grmic_LDADD = -L$(here)/.libs libgcj-tools.la
791 grmic_DEPENDENCIES = libgcj-tools.la
793 ## This is a dummy definition.
794 grmiregistry_SOURCES =
795 grmiregistry_LDFLAGS = --main=gnu.classpath.tools.rmiregistry.Main \
796 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
797 grmiregistry_LINK = $(GCJLINK)
798 ## See jv_convert_LDADD.
799 grmiregistry_LDADD = -L$(here)/.libs libgcj-tools.la
800 grmiregistry_DEPENDENCIES = libgcj-tools.la
802 ## ################################################################
804 ## This lists all the C++ source files in subdirectories.
806 gnu/classpath/jdwp/natVMFrame.cc \
807 gnu/classpath/jdwp/natVMMethod.cc \
808 gnu/classpath/jdwp/natVMVirtualMachine.cc \
809 gnu/classpath/natConfiguration.cc \
810 gnu/classpath/natSystemProperties.cc \
811 gnu/classpath/natVMStackWalker.cc \
813 gnu/gcj/convert/JIS0208_to_Unicode.cc \
814 gnu/gcj/convert/JIS0212_to_Unicode.cc \
815 gnu/gcj/convert/Unicode_to_JIS.cc \
816 gnu/gcj/convert/natIconv.cc \
817 gnu/gcj/convert/natInput_EUCJIS.cc \
818 gnu/gcj/convert/natInput_SJIS.cc \
819 gnu/gcj/convert/natOutput_EUCJIS.cc \
820 gnu/gcj/convert/natOutput_SJIS.cc \
821 gnu/gcj/io/natSimpleSHSStream.cc \
823 gnu/gcj/jvmti/natBreakpoint.cc \
824 gnu/gcj/runtime/natFinalizerThread.cc \
825 gnu/gcj/runtime/natSharedLibLoader.cc \
826 gnu/gcj/runtime/natSystemClassLoader.cc \
827 gnu/gcj/runtime/natStringBuffer.cc \
828 gnu/gcj/util/natDebug.cc \
829 gnu/java/lang/natMainThread.cc \
830 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc \
831 gnu/java/lang/management/natVMCompilationMXBeanImpl.cc \
832 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc \
833 gnu/java/lang/management/natVMMemoryMXBeanImpl.cc \
834 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc \
835 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc \
836 gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc \
837 gnu/java/lang/management/natVMThreadMXBeanImpl.cc \
838 gnu/java/net/natPlainDatagramSocketImpl.cc \
839 gnu/java/net/natPlainSocketImpl.cc \
840 gnu/java/net/protocol/core/natCoreInputStream.cc \
841 gnu/java/nio/natVMPipe.cc \
842 gnu/java/nio/natVMSelector.cc \
843 gnu/java/nio/natNIOServerSocket.cc \
844 gnu/java/nio/natVMChannel.cc \
845 gnu/java/nio/channels/natFileChannelImpl.cc \
847 java/io/natVMObjectInputStream.cc \
848 java/io/natVMObjectStreamClass.cc \
849 java/lang/management/natVMManagementFactory.cc \
850 java/lang/natCharacter.cc \
851 java/lang/natClass.cc \
852 java/lang/natClassLoader.cc \
853 java/lang/natConcreteProcess.cc \
854 java/lang/natVMDouble.cc \
855 java/lang/natVMFloat.cc \
856 java/lang/natMath.cc \
857 java/lang/natObject.cc \
858 java/lang/natRuntime.cc \
859 java/lang/natString.cc \
860 java/lang/natStringBuffer.cc \
861 java/lang/natStringBuilder.cc \
862 java/lang/natSystem.cc \
863 java/lang/natThread.cc \
864 java/lang/natThreadLocal.cc \
865 java/lang/natVMClassLoader.cc \
866 java/lang/natVMThrowable.cc \
867 java/lang/ref/natReference.cc \
868 java/lang/reflect/natArray.cc \
869 java/lang/reflect/natConstructor.cc \
870 java/lang/reflect/natField.cc \
871 java/lang/reflect/natMethod.cc \
872 java/lang/reflect/natVMProxy.cc \
873 java/net/natVMInetAddress.cc \
874 java/net/natVMNetworkInterface.cc \
875 java/net/natVMURLConnection.cc \
876 java/nio/channels/natVMChannels.cc \
877 java/nio/natVMDirectByteBufferImpl.cc \
878 java/security/natVMAccessController.cc \
879 java/security/natVMAccessControlState.cc \
880 java/text/natCollator.cc \
881 java/util/natVMTimeZone.cc \
882 java/util/concurrent/atomic/natAtomicLong.cc \
883 java/util/logging/natLogger.cc \
884 java/util/zip/natDeflater.cc \
885 java/util/zip/natInflater.cc \
886 sun/misc/natUnsafe.cc
888 xlib_nat_source_files = \
889 gnu/gcj/xlib/natClip.cc \
890 gnu/gcj/xlib/natColormap.cc \
891 gnu/gcj/xlib/natDisplay.cc \
892 gnu/gcj/xlib/natDrawable.cc \
893 gnu/gcj/xlib/natFont.cc \
894 gnu/gcj/xlib/natGC.cc \
895 gnu/gcj/xlib/natPixmap.cc \
896 gnu/gcj/xlib/natScreen.cc \
897 gnu/gcj/xlib/natVisual.cc \
898 gnu/gcj/xlib/natWMSizeHints.cc \
899 gnu/gcj/xlib/natWindow.cc \
900 gnu/gcj/xlib/natWindowAttributes.cc \
901 gnu/gcj/xlib/natXAnyEvent.cc \
902 gnu/gcj/xlib/natXButtonEvent.cc \
903 gnu/gcj/xlib/natXColor.cc \
904 gnu/gcj/xlib/natXConfigureEvent.cc \
905 gnu/gcj/xlib/natXException.cc \
906 gnu/gcj/xlib/natXExposeEvent.cc \
907 gnu/gcj/xlib/natXImage.cc \
908 gnu/gcj/xlib/natXUnmapEvent.cc
910 ## ################################################################
913 ## Creating and installing sources.zip
916 ## Create a zip holding all the sources. This can be meaningfully
922 ( cd $(srcdir)/classpath; \
923 find java gnu javax org sun -name '*.java' -print | \
924 while read file; do \
925 ## Ugly code to avoid "echo -C". Must separate each entry by a newline
927 echo "x-C" | sed -e 's/^.//'; \
928 echo $(srcdir)/classpath; \
931 ( cd $(srcdir)/classpath/external/sax; \
932 find org -name '*.java' -print | \
933 while read file; do \
934 echo "x-C" | sed -e 's/^.//'; \
935 echo $(srcdir)/classpath/external/sax; \
938 ( cd $(srcdir)/classpath/external/relaxngDatatype; \
939 find org -name '*.java' -print | \
940 while read file; do \
941 echo "x-C" | sed -e 's/^.//'; \
942 echo $(srcdir)/classpath/external/relaxngDatatype; \
945 ( cd $(srcdir)/classpath/external/w3c_dom; \
946 find org -name '*.java' -print | \
947 while read file; do \
948 echo "x-C" | sed -e 's/^.//'; \
949 echo $(srcdir)/classpath/external/w3c_dom; \
952 ## Now the build tree.
954 find gnu java -name '*.java' -print | \
955 while read file; do \
956 echo "x-C" | sed -e 's/^.//'; \
961 ## Many of the above circumlocutions were because ZIP used to be a
962 ## relative path to fastjar. It didn't seem worthwhile to change the
963 ## code when we moved to an external jar.
964 $(JAR) -cfM@ $$here/src.zip
965 ## Override GNU Classpath sources with libgcj replacements.
969 find gnu java -name '*.java' -print | \
970 while read file; do \
971 echo "x-C" | sed -e 's/^.//'; \
976 $(JAR) -ufM@ $$here/src.zip
978 ## We use a variable for this in case the user wants to override it.
979 sourcesdir = $(jardir)
981 install-src.zip: src.zip
982 $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
985 ## ################################################################
988 ## Dependency tracking madness.
991 ## This is an evil hack to work around an automake limitation. We
992 ## need to ensure that all CNI headers are built, not just the ones
993 ## used internally by libgcj. We can't make the .o files depend on
994 ## nat_headers, because in that case we'll force a complete rebuild of
995 ## the C++ code whenever any .java file is touched. So instead we
996 ## have a dummy rule which is only used once, namely the first time a
997 ## build is done. On subsequent builds, the dependency tracking for
998 ## the .cc compilations will have picked up the .h files, and these
999 ## will be built directly as needed.
1002 ## Note that we don't use a real dependency here, since we don't want
1003 ## to rebuild all the headers here when the header list changes. If
1004 ## we did rebuild here, then any addition of a .java file would cause
1005 ## a large number of recompilations.
1006 $(MAKE) create-headers
1007 @echo > headers.stamp
1009 headers_to_make = $(nat_headers)
1011 headers_to_make += $(xlib_nat_headers)
1014 create-headers: $(headers_to_make)
1016 .PHONY: create-headers
1018 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
1019 $(libgij_la_OBJECTS): headers.stamp
1020 $(libjvm_la_OBJECTS): headers.stamp
1022 ## ################################################################
1025 ## This section is for make and multilib madness.
1028 # Work around what appears to be a GNU make bug handling MAKEFLAGS
1029 # values defined in terms of make variables, as is the case for CC and
1030 # friends when we are called from the top level Makefile.
1032 "AR_FLAGS=$(AR_FLAGS)" \
1033 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
1034 "CFLAGS=$(CFLAGS)" \
1035 "CXXFLAGS=$(CXXFLAGS)" \
1036 "CPPFLAGS=$(CPPFLAGS)" \
1037 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1038 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1039 "INSTALL=$(INSTALL)" \
1040 "INSTALL_DATA=$(INSTALL_DATA)" \
1041 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1042 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1043 "GCJFLAGS=$(GCJFLAGS)" \
1044 "LDFLAGS=$(LDFLAGS)" \
1045 "LIBCFLAGS=$(LIBCFLAGS)" \
1046 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1048 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1049 "PICFLAG=$(PICFLAG)" \
1050 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1052 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1053 "exec_prefix=$(exec_prefix)" \
1054 "infodir=$(infodir)" \
1055 "libdir=$(libdir)" \
1056 "prefix=$(prefix)" \
1057 "gxx_include_dir=$(gxx_include_dir)" \
1061 "LIBCFLAGS=$(LIBCFLAGS)" \
1063 "PICFLAG=$(PICFLAG)" \
1064 "RANLIB=$(RANLIB)" \
1065 "DESTDIR=$(DESTDIR)" \
1068 # Subdir rules rely on $(FLAGS_TO_PASS)
1069 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1071 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1075 # No install-html support yet.
1076 .PHONY: install-html
1079 # Multilib support variables.
1088 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1089 maintainer-clean-multi
1091 all-recursive: all-multi
1092 install-recursive: install-multi
1093 mostlyclean-recursive: mostlyclean-multi
1094 clean-recursive: clean-multi
1095 distclean-recursive: distclean-multi
1096 maintainer-clean-recursive: maintainer-clean-multi
1099 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1101 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1103 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1105 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1107 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1108 maintainer-clean-multi:
1109 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean