* ptree.c (cxx_print_identifier): Print a leading space if the
[official-gcc.git] / libjava / Makefile.am
blob4bafc5dbe402cafe21d55867f76a01ee1a1660e4
1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = foreign subdir-objects
5 ACLOCAL_AMFLAGS = -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
11 if TESTSUBDIR
12 SUBDIRS += testsuite
13 endif
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
18 # limitations.
19 # Parameters:
20 # $(1): variable containing entries to iterate over
21 # $(2): output file
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@
30 ## What gets installed, and where.
33 toolexeclib_LTLIBRARIES = libgcj.la libgij.la
34 toolexecmainlib_DATA = libgcj.spec
36 if XLIB_AWT
37 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
38 endif
40 if GTK_AWT
41 toolexeclib_LTLIBRARIES += lib-gnu-java-awt-peer-gtk.la libgcjawt.la
42 endif
44 pkgconfigdir = $(libdir)/pkgconfig
45 pkgconfig_DATA = libgcj.pc
47 jardir = $(datadir)/java
48 jar_DATA = libgcj-$(gcc_version).jar
50 if JAVA_HOME_SET
51 JAVA_HOME_DIR = $(JAVA_HOME)
52 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
53 else
54 JAVA_HOME_DIR = $(prefix)
55 BOOT_CLASS_PATH_DIR = $(jardir)/$(jar_DATA)
56 endif
58 ## FIXME: Using libdir violates GNU coding standards.
59 secdir = $(libdir)/security
60 ## Where to install default logging property file.
61 propdir = $(libdir)
63 ## Where the standard .db file is found.
64 dbexecdir = $(libdir)/gcj-$(gcc_version)
65 ## Name of the default .db.
66 db_name = classmap.db
67 ## Compiler specific component of the .db file
68 db_pathtail = gcj-$(gcc_version)/$(db_name)
70 ## For now, only on native systems.  FIXME.
71 if NATIVE
72 bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool
74 ## It is convenient to actually build and install the default database
75 ## when gcj-dbtool is available.
76 dbexec_DATA = $(db_name)
77 endif
79 bin_SCRIPTS = addr2name.awk
81 ## ################################################################
84 ## Compilers and compilation flags.
87 GCJH = @GCJH@
88 ZIP = @ZIP@
90 ## The compiler with whatever flags we want for both -c and -C
91 ## compiles.
92 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
94 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
95 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
97 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
99 WARNINGS = -Wextra -Wall
100 ## Some systems don't allow `$' in identifiers by default, so we force
101 ## it with -fdollars-in-identifiers.  -Wswitch-enum detects bugs in
102 ## the verifier implementation, and maybe other places.  We need
103 ## _GNU_SOURCE defined for some Linux builds.  It doesn't hurt to
104 ## always define it.  Some systems, including Linux, need
105 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
106 AM_CXXFLAGS = \
107         -fno-rtti \
108         -fnon-call-exceptions \
109         $(THREADCXXFLAGS) \
110         -fdollars-in-identifiers \
111         -Wswitch-enum \
112         -D_FILE_OFFSET_BITS=64 \
113         @LIBGCJ_CXXFLAGS@ \
114         @X_CFLAGS@ \
115         $(WARNINGS) \
116         -D_GNU_SOURCE \
117         -DPREFIX="\"$(prefix)\"" \
118         -DLIBDIR="\"$(libdir)\"" \
119         -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
120         -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
121         -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
122         -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
123         -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
124         -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\"" \
125         -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\""
127 AM_GCJFLAGS = \
128         @LIBGCJ_JAVAFLAGS@ \
129         -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
130         --encoding=UTF-8 \
131         -Wno-deprecated -fbootstrap-classes
133 AM_CFLAGS = @LIBGCJ_CFLAGS@
134 if USING_GCC
135 AM_CFLAGS += $(WARNINGS)
136 endif
138 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
139 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
141 JCFLAGS = -g
142 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
144 LIBFFIINCS = @LIBFFIINCS@
146 AM_CPPFLAGS = -I$(top_srcdir) \
147         -Iinclude -I$(top_srcdir)/include \
148         -I$(top_srcdir)/classpath/include \
149         -I$(top_srcdir)/classpath/native/fdlibm \
150         $(GCINCS) $(THREADINCS) $(INCLTDL) \
151         $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
153 BOOTCLASSPATH = $(here)/classpath/lib
155 ## ################################################################
157 all_property_files = $(property_files) \
158     java/util/logging/logging.properties
161 ## How to build libgcj.a and libgcj.jar
164 libgij_la_SOURCES = gij.cc
165 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
166 ## See jv_convert_LDADD.
167 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
168 ## The mysterious backslash in the grep pattern is consumed by make.
169 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
170         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
172 libgcj_la_SOURCES = prims.cc jni.cc exception.cc stacktrace.cc \
173         link.cc defineclass.cc interpret.cc verify.cc \
174         java/lang/Class.java java/lang/Object.java \
175         $(nat_source_files)
177 if USING_BOEHMGC
178 libgcj_la_SOURCES += boehm.cc
179 endif
181 if USING_NOGC
182 libgcj_la_SOURCES += nogc.cc
183 endif
185 if SUPPLY_BACKTRACE
186 libgcj_la_SOURCES += sysdep/dwarf2-backtrace.cc
187 endif
189 if USING_POSIX_PLATFORM
190 libgcj_la_SOURCES += posix.cc
191 endif
193 if USING_WIN32_PLATFORM
194 libgcj_la_SOURCES += win32.cc
195 endif
197 if USING_DARWIN_CRT
198 libgcj_la_SOURCES += darwin.cc
199 endif
201 if USING_POSIX_THREADS
202 libgcj_la_SOURCES += posix-threads.cc
203 endif
205 if USING_WIN32_THREADS
206 libgcj_la_SOURCES += win32-threads.cc
207 endif
209 if USING_NO_THREADS
210 libgcj_la_SOURCES += no-threads.cc
211 endif
213 ## Objects from C++ sources in subdirs.
214 nat_files = $(nat_source_files:.cc=.lo)
215 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
217 # Include THREADLIBS here to ensure that the correct version of
218 # certain linuxthread functions get linked:
219 ## The mysterious backslash in the grep pattern is consumed by make.
220 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(THREADLIBS) \
221         $(LIBLTDL) $(SYS_ZLIBS) \
222         -version-info `grep -v '^\#' $(srcdir)/libtool-version`
223 libgcj_la_LIBADD = \
224         classpath/native/fdlibm/libfdlibm.la \
225         $(all_packages_source_files:.list=.lo) \
226         $(bc_objects) \
227         $(propertyo_files) \
228         $(LIBFFI) $(ZLIBS) $(GCLIBS)
229 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
230         $(all_packages_source_files:.list=.lo) \
231         $(LIBLTDL) $(libgcj_la_LIBADD)
232 libgcj_la_LINK = $(LIBLINK)
235 ## The .db file.  This rule is only used for native builds, so it is
236 ## safe to invoke gcj-dbtool.
237 $(db_name): gcj-dbtool$(EXEEXT)
238 ## In case it exists already.
239         @rm -f $(db_name)
240 ## We don't actually care if it fails -- if it does, just make an
241 ## empty file.  This is simpler than trying to discover when mmap is
242 ## not available.
243         ./gcj-dbtool -n $(db_name) || touch $(db_name)
245 ## For the peer library, DEPENDENCIES need to come before OBJECTS so
246 ## that JNI headers are built before JNI C files.
247 $(lib_gnu_java_awt_peer_gtk_la_OBJECTS): $(lib_gnu_java_awt_peer_gtk_la_DEPENDENCIES)
249 lib_gnu_java_awt_peer_gtk_la_SOURCES =
250 lib_gnu_java_awt_peer_gtk_la_LIBADD = \
251         gnu-java-awt-peer-gtk.lo \
252         classpath/native/jni/gtk-peer/libgtkpeer.la \
253         $(GTK_LIBS) $(GLIB_LIBS) $(LIBART_LIBS) $(CAIRO_LIBS) $(PANGOFT2_LIBS)
254 lib_gnu_java_awt_peer_gtk_la_DEPENDENCIES = gnu-java-awt-peer-gtk.lo \
255         classpath/native/jni/gtk-peer/libgtkpeer.la \
256         libgcj-$(gcc_version).jar libgcj.la libgcj.spec
257 ## The mysterious backslash in the grep pattern is consumed by make.
258 lib_gnu_java_awt_peer_gtk_la_LDFLAGS = \
259         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC) $(X_LIBS) -lXtst
260 lib_gnu_java_awt_peer_gtk_la_LINK = $(LIBLINK)
262 libgcjawt_la_SOURCES = jawt.c
263 libgcjawt_la_CFLAGS = -I$(srcdir)/classpath/native/jni/classpath \
264         $(PEDANTIC_CFLAGS) $(X_CFLAGS)
265 ## See jv_convert_LDADD.
266 libgcjawt_la_LIBADD = -L$(here)/.libs lib-gnu-java-awt-peer-gtk.la
267 libgcjawt_la_LDFLAGS = \
268         -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
269         $(LIBGCJ_LD_SYMBOLIC)
270 libgcjawt_la_LINK = $(LIBLINK)
272 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
273 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
274 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
275         libgcj.la libgcj.spec \
276         $(lib_gnu_awt_xlib_la_LIBADD)
277 ## We require libstdc++-v3 to be in the same build tree.
278 lib_gnu_awt_xlib_la_CPPFLAGS = \
279         $(AM_CPPFLAGS) \
280         -I../libstdc++-v3/include \
281         -I../libstdc++-v3/include/$(target_noncanonical) \
282         -I$(srcdir)/../libstdc++-v3/libsupc++
283 ## The mysterious backslash in the grep pattern is consumed by make.
284 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
285         @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
286         -rpath $(toolexeclibdir) \
287         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
288 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
290 ## Build property files into the library.
291 property_files = \
292 classpath/resource/org/ietf/jgss/MessagesBundle.properties \
293 classpath/resource/java/util/iso4217.properties \
294 classpath/resource/gnu/java/awt/peer/gtk/font.properties \
295 classpath/resource/gnu/regexp/MessagesBundle_it.properties \
296 classpath/resource/gnu/regexp/MessagesBundle_fr.properties \
297 classpath/resource/gnu/regexp/MessagesBundle.properties
299 propertyo_files = $(patsubst classpath/resource/%,%,$(property_files:.properties=.properties.lo))
301 $(propertyo_files): %.properties.lo: classpath/resource/%.properties
302         $(mkinstalldirs) `dirname $@`; \
303         $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
305 libgcj-$(gcc_version).jar:
306         jardir=`dirname $(ZIP)`; \
307         jardir=`cd $$jardir && pwd`; \
308         jarname=`basename $(ZIP)`; \
309         cd classpath/lib; $$jardir/$$jarname -cfM \
310             ../../libgcj-$(gcc_version).jar gnu java javax org
312 CLEANFILES = libgcj-$(gcc_version).jar \
313         $(all_java_deps_files) $(all_java_filelist_files)
314 DISTCLEANFILES = native.dirs
316 mostlyclean-local:
317 ## Use libtool rm to remove each libtool object
318         find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
320 distclean-local:
321 ## Remove every .d file that was created.
322         find . -name '*.d' -print | xargs rm -f
324 # Just remove the objects from C++ sources, for testing the C++ compiler.
325 clean-nat:
326         rm -f $(nat_files) $(xlib_nat_files)
328 SUFFIXES = .class .java .h .properties .list
330 ## Pass the list of object files to libtool in a temporary file to
331 ## avoid tripping platform command line length limits.
332 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
333         @echo Creating list of files to link...
334         @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
335         $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
336         -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
338 ## ################################################################
340 ## Compiling a list of java sources to a single .o.
342 %.lo: %.list
343         $(LTGCJCOMPILE) -c -o $@ -MT $@ -MD -MP -MF $(basename $@).deps @$<
345 ## ################################################################
347 ## This pulls in a number of variable and target definitions.
348 include sources.am
350 ## ################################################################
353 ## How to build header files.
356 ## We have special rules for certain headers.
357 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
358         java/lang/String.h java/lang/reflect/Constructor.h \
359         java/lang/reflect/Field.h java/lang/reflect/Method.h \
360         java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
362 generic_header_files = $(filter-out $(omitted_headers),$(ordinary_header_files) $(xlib_nat_headers)) \
363         gnu/gcj/tools/gcj_dbtool/Main.h
365 $(generic_header_files): %.h: classpath/lib/%.class
366         name=`echo $< | sed -e 's/\.class$$//' -e 's,classpath/lib/,,'`; \
367         $(mkinstalldirs) `dirname $$name`; \
368         $(GCJH) -d . -classpath '' -bootclasspath classpath/lib $$name
370 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
371         java/io/ObjectInputStream$$GetField.h \
372         java/nio/DirectByteBufferImpl$$ReadWrite.h \
373         java/nio/channels/Pipe$$SinkChannel.h \
374         java/nio/channels/Pipe$$SourceChannel.h \
375         java/lang/reflect/Proxy$$ProxyData.h \
376         java/lang/reflect/Proxy$$ProxyType.h \
377         gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
378         gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
379         gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
380         gnu/java/nio/PipeImpl$$SourceChannelImpl.h \
381         $(PLATFORM_INNER_NAT_HDRS)
383 nat_headers = $(ordinary_header_files) $(inner_nat_headers) \
384         gnu/gcj/tools/gcj_dbtool/Main.h
385 nat_headers_install = $(ordinary_header_files)
387 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
389 java/lang/ClassLoader.h: classpath/lib/java/lang/ClassLoader.class
390         $(GCJH) -classpath '' -bootclasspath classpath/lib \
391                 -prepend 'jclass _Jv_FindClass (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);' \
392                 -prepend 'void _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);' \
393                 -friend 'jclass (::_Jv_FindClass) (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);' \
394                 -friend 'void ::_Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);' \
395                 java/lang/ClassLoader
397 java/lang/Thread.h: classpath/lib/java/lang/Thread.class
398         $(GCJH) -classpath '' -bootclasspath classpath/lib \
399                 -prepend 'class _Jv_JNIEnv;' \
400                 -prepend '#define _JV_NOT_OWNER 1' \
401                 -prepend '#define _JV_INTERRUPTED 2' \
402                 -prepend '_Jv_JNIEnv * _Jv_GetCurrentJNIEnv ();' \
403                 -prepend 'void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
404                 -prepend 'void _Jv_ThreadRun (java::lang::Thread* thread);' \
405                 -prepend 'jint _Jv_AttachCurrentThread(java::lang::Thread* thread);' \
406                 -prepend 'java::lang::Thread* _Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
407                 -prepend 'java::lang::Thread* _Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
408                 -prepend 'jint _Jv_DetachCurrentThread ();' \
409                 -friend '_Jv_JNIEnv * ::_Jv_GetCurrentJNIEnv ();' \
410                 -friend 'void ::_Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
411                 -friend 'void ::_Jv_ThreadRun (java::lang::Thread* thread);' \
412                 -friend 'jint (::_Jv_AttachCurrentThread) (java::lang::Thread* thread);' \
413                 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
414                 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
415                 -friend 'jint (::_Jv_DetachCurrentThread) ();' \
416                 java/lang/Thread
418 java/lang/String.h: classpath/lib/java/lang/String.class
419         $(GCJH) -classpath '' -bootclasspath classpath/lib \
420             -prepend 'jchar* _Jv_GetStringChars (jstring str);' \
421             -prepend 'jstring* _Jv_StringFindSlot (jchar*, jint, jint);' \
422             -prepend 'jstring* _Jv_StringGetSlot (jstring);' \
423             -prepend 'jstring _Jv_NewStringUtf8Const (_Jv_Utf8Const* str);' \
424             -prepend 'jstring _Jv_NewStringLatin1 (const char*, jsize);' \
425             -prepend 'jstring _Jv_AllocString (jsize);' \
426             -friend 'jchar* ::_Jv_GetStringChars (jstring str);' \
427             -friend 'jstring* ::_Jv_StringFindSlot (jchar*, jint, jint);' \
428             -friend 'jstring* ::_Jv_StringGetSlot (jstring);' \
429             -friend 'jstring (::_Jv_NewStringUtf8Const) (_Jv_Utf8Const* str);' \
430             -friend 'jstring (::_Jv_NewStringLatin1) (const char*, jsize);' \
431             -friend 'jstring (::_Jv_AllocString) (jsize);' \
432             java/lang/String
434 java/lang/reflect/Constructor.h: classpath/lib/java/lang/reflect/Constructor.class
435         $(GCJH) -classpath '' -bootclasspath classpath/lib \
436             -prepend 'jmethodID _Jv_FromReflectedConstructor (java::lang::reflect::Constructor *);' \
437             -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
438             -friend 'jmethodID (::_Jv_FromReflectedConstructor) (java::lang::reflect::Constructor *);' \
439             -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
440             -friend 'class java::lang::Class;' \
441             java/lang/reflect/Constructor
443 java/lang/reflect/Field.h: classpath/lib/java/lang/reflect/Field.class
444         $(GCJH) -classpath '' -bootclasspath classpath/lib \
445             -prepend 'jfieldID _Jv_FromReflectedField (java::lang::reflect::Field *);' \
446             -prepend 'jobject _Jv_JNI_ToReflectedField (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
447             -friend 'jfieldID (::_Jv_FromReflectedField) (java::lang::reflect::Field *);' \
448             -friend 'jobject (::_Jv_JNI_ToReflectedField) (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
449             -friend 'class java::lang::Class;' \
450             java/lang/reflect/Field
452 java/lang/reflect/Method.h: classpath/lib/java/lang/reflect/Method.class
453         $(GCJH) -classpath '' -bootclasspath classpath/lib \
454             -prepend 'jmethodID _Jv_FromReflectedMethod (java::lang::reflect::Method *);' \
455             -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
456             -friend 'jmethodID (::_Jv_FromReflectedMethod) (java::lang::reflect::Method *);' \
457             -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
458             -friend 'class java::lang::Class;' \
459             -friend 'class java::io::ObjectInputStream;' \
460             java/lang/reflect/Method
462 java/lang/reflect/Proxy.h: classpath/lib/java/lang/reflect/Proxy.class
463         $(GCJH) -classpath '' -bootclasspath classpath/lib \
464             java/lang/reflect/Proxy
466 java/lang/reflect/Proxy$$ProxyData.h: classpath/lib/java/lang/reflect/Proxy.class
467         $(GCJH) -classpath '' -bootclasspath classpath/lib \
468         'java/lang/reflect/Proxy$$ProxyData'
470 java/lang/reflect/Proxy$$ProxyType.h: classpath/lib/java/lang/reflect/Proxy.class
471         $(GCJH) -classpath '' -bootclasspath classpath/lib \
472         'java/lang/reflect/Proxy$$ProxyType'
474 gnu/gcj/runtime/ExtensionClassLoader.h: classpath/lib/gnu/gcj/runtime/ExtensionClassLoader.class
475         $(GCJH) -classpath '' -bootclasspath classpath/lib \
476             -friend 'class ::java::lang::ClassLoader;' \
477             gnu/gcj/runtime/ExtensionClassLoader
479 java/io/ObjectInputStream$$GetField.h: classpath/lib/java/io/ObjectInputStream.class
480         $(GCJH) -classpath '' -bootclasspath classpath/lib \
481         'java/io/ObjectInputStream$$GetField'
483 java/io/ObjectOutputStream$$PutField.h: classpath/lib/java/io/ObjectOutputStream.class
484         $(GCJH) -classpath '' -bootclasspath classpath/lib \
485         'java/io/ObjectOutputStream$$PutField'
487 java/nio/DirectByteBufferImpl$$ReadWrite.h: classpath/lib/java/nio/DirectByteBufferImpl.class
488         $(GCJH) -classpath '' -bootclasspath classpath/lib \
489         'java/nio/DirectByteBufferImpl$$ReadWrite'
491 java/nio/channels/Pipe$$SinkChannel.h: classpath/lib/java/nio/channels/Pipe.class
492         $(GCJH) -classpath '' -bootclasspath classpath/lib \
493         'java/nio/channels/Pipe$$SinkChannel'
495 java/nio/channels/Pipe$$SourceChannel.h: classpath/lib/java/nio/channels/Pipe.class
496         $(GCJH) -classpath '' -bootclasspath classpath/lib \
497         'java/nio/channels/Pipe$$SourceChannel'
499 gnu/java/net/PlainSocketImpl$$SocketInputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
500         $(GCJH) -classpath '' -bootclasspath classpath/lib \
501         'gnu/java/net/PlainSocketImpl$$SocketInputStream'
503 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
504         $(GCJH) -classpath '' -bootclasspath classpath/lib \
505         'gnu/java/net/PlainSocketImpl$$SocketOutputStream'
507 gnu/java/nio/PipeImpl$$SinkChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
508         $(GCJH) -classpath '' -bootclasspath classpath/lib \
509         'gnu/java/nio/PipeImpl$$SinkChannelImpl'
511 gnu/java/nio/PipeImpl$$SourceChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
512         $(GCJH) -classpath '' -bootclasspath classpath/lib \
513         'gnu/java/nio/PipeImpl$$SourceChannelImpl'
515 ## Only used by PosixProcess.java
516 java/lang/ConcreteProcess$$ProcessManager.h: classpath/lib/java/lang/ConcreteProcess.class
517         $(GCJH) -classpath '' -bootclasspath classpath/lib \
518         'java/lang/ConcreteProcess$$ProcessManager'
520 ## Headers we maintain by hand and which we want to install.
521 extra_headers = java/lang/Object.h java/lang/Class.h
523 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
524         @:
526 ## Install the headers.  It is fairly ugly that we have to do this by
527 ## hand.
528 install-data-local:
529         $(PRE_INSTALL)
530 ## We use a GNU make trick here so that we don't go over the command
531 ## length limit of some shells.
532         @echo Creating list of headers to install...
533         @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
534         @cat tmp-ilist | while read f; do \
535           d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
536           $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$d; \
537           if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
538           echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f"; \
539           $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f; \
540         done
541         -@rm -f tmp-ilist
542 ## FIXME: the obvious approach using lib_DATA doesn't work with
543 ## automake 1.4.
544         $(mkinstalldirs) $(DESTDIR)$(secdir)
545         @for f in classpath.security libgcj.security; do \
546           echo " $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f"; \
547           $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f; \
548         done
549         $(INSTALL_DATA) $(srcdir)/java/util/logging/logging.properties $(DESTDIR)$(propdir)/logging.properties
550 ## Install inner class headers.
551         $(INSTALL_DATA) 'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
552         $(INSTALL_DATA) 'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
553         $(INSTALL_DATA) 'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
554         $(INSTALL_DATA) 'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
555         $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
556         $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
557         $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
558         $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
559         $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
560         $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
561 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
564 ## ################################################################
567 ## Additional `check' targets for maintainer convenience.
570 ## This is used for maintainer-check.  FIXME: should set from
571 ## configure using AC_CHECK_TOOL.
572 NM = nm
574 ## Try to make sure our library doesn't stomp the namespace.
575 maintainer-check: libgcj.la
576         $(NM) .libs/libgcj.a | grep ' T ' \
577 ## Anything with `4java' is assumed to be from .java source.
578           | grep -v '4java' \
579 ## Anything with Jv is ok.
580           | grep -v 'Jv' \
581 ## `terminate' and `unexpected' are part of the runtime.
582           | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
584 ## This rule can be used to see if the headers are more or less
585 ## correct.
586 header-check: libgcj-$(gcc_version).jar $(nat_headers)
587         rm -f htest.cc; \
588         for h in $(nat_headers); do \
589           echo "#include \"$$h\"" >> htest.cc; \
590         done; \
591         $(CXXCOMPILE) -fsyntax-only htest.cc
593 ## This rule can be used to see if all the .class files verify
594 ## correctly.
595 class-check: libgcj-$(gcc_version).jar
596         @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
597         while read f; do \
598           echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
599           if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
600           :; else ok=1; fi; \
601         done; exit $$ok
603 ## This rule checks whether write_entries_to_file works properly.
604 write-entries-to-file-check:
605         @echo Creating list of files to link...
606         @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
608 ## ################################################################
611 ## The `jv-convert' program and code to rebuild the converter header
612 ## files.
615 ## it only makes sense to try to rebuild the JIS .h files on native
616 ## systems.
617 if NATIVE
618 if MAINTAINER_MODE
619 noinst_PROGRAMS = gen-from-JIS
621 gen_from_JIS_SOURCES = \
622         gnu/gcj/convert/gen-from-JIS.c \
623         gnu/gcj/convert/make-trie.c
625 gen_from_JIS_DEPENDENCIES = \
626         gnu/gcj/convert/JIS0201.h \
627         gnu/gcj/convert/JIS0208.h \
628         gnu/gcj/convert/JIS0212.h
630 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
631          ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
633 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
634          ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
636 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
637          ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
639 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
640 # You can get it from
641 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
643 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
644         echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
645         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
646         | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2)  /*\3 */|p' \
647         >> tmp-0201; \
648         mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
650 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
651 # You can get it from
652 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
654 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
655         echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
656         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
657         | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4)  /*\5 */|p' \
658         >> tmp-0208; \
659         mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
661 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
662 # You can get it from
663 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
665 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
666         echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
667         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
668         | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3)  /*\4 */|p' \
669         >> tmp-0212; \
670         mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
672 endif
673 endif 
676 jv_convert_SOURCES =
677 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
678 ## need this because we are explicitly using libtool to link using the
679 ## `.la' file.
680 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
681         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
682 jv_convert_LINK = $(GCJLINK)
683 ## We don't explicitly link in the libraries we need; libgcj.la brings
684 ## in all dependencies.  We need the -L so that gcj can find libgcj
685 ## with `-lgcj', but it must come first, otherwise the -L flags
686 ## brought in from libgcj.la would cause the install directories to be
687 ## searched before the build-tree ones, and we'd get errors because of
688 ## different libraries with the same SONAME from picky linkers such as
689 ## Solaris'.  FIXME: should be _libs on some systems.
690 jv_convert_LDADD = -L$(here)/.libs libgcj.la
691 ## Depend on the spec file to make sure it is up to date before
692 ## linking this program.
693 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
695 gcj_dbtool_SOURCES = \
696 gnu/gcj/tools/gcj_dbtool/Main.java \
697 gnu/gcj/tools/gcj_dbtool/natMain.cc
699 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
700 ## need this because we are explicitly using libtool to link using the
701 ## `.la' file.
702 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
703         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
704 gcj_dbtool_LINK = $(GCJLINK)
705 ## We don't explicitly link in the libraries we need; libgcj.la brings
706 ## in all dependencies.  We need the -L so that gcj can find libgcj
707 ## with `-lgcj', but it must come first, otherwise the -L flags
708 ## brought in from libgcj.la would cause the install directories to be
709 ## searched before the build-tree ones, and we'd get errors because of
710 ## different libraries with the same SONAME from picky linkers such as
711 ## Solaris'.  FIXME: should be _libs on some systems.
712 gcj_dbtool_LDADD = -L$(here)/.libs libgcj.la
713 ## Depend on the spec file to make sure it is up to date before
714 ## linking this program.
715 gcj_dbtool_DEPENDENCIES = libgcj.la libgcj.spec
717 gij_SOURCES = 
718 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
719 ## need this because we are explicitly using libtool to link using the
720 ## `.la' file.
721 gij_LDFLAGS = -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
722 gij_LINK = $(GCJLINK)
723 ## See jv_convert_LDADD.
724 gij_LDADD = -L$(here)/.libs libgij.la
725 ## Depend on the spec file to make sure it is up to date before
726 ## linking this program.
727 gij_DEPENDENCIES = libgij.la
729 ## This is a dummy definition.
730 grmic_SOURCES =
731 grmic_LDFLAGS = --main=gnu.java.rmi.rmic.RMIC \
732         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
733 grmic_LINK = $(GCJLINK)
734 ## See jv_convert_LDADD.
735 grmic_LDADD = -L$(here)/.libs libgcj.la
736 ## Depend on the spec file to make sure it is up to date before
737 ## linking this program.
738 grmic_DEPENDENCIES = libgcj.la libgcj.spec
740 ## This is a dummy definition.
741 grmiregistry_SOURCES =
742 grmiregistry_LDFLAGS = --main=gnu.java.rmi.registry.RegistryImpl \
743         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
744 grmiregistry_LINK = $(GCJLINK)
745 ## See jv_convert_LDADD.
746 grmiregistry_LDADD = -L$(here)/.libs libgcj.la
747 ## Depend on the spec file to make sure it is up to date before
748 ## linking this program.
749 grmiregistry_DEPENDENCIES = libgcj.la libgcj.spec
751 ## ################################################################
753 ## This lists all the C++ source files in subdirectories.
754 nat_source_files = \
755 gnu/classpath/natSystemProperties.cc \
756 gnu/gcj/natCore.cc \
757 gnu/gcj/convert/JIS0208_to_Unicode.cc \
758 gnu/gcj/convert/JIS0212_to_Unicode.cc \
759 gnu/gcj/convert/Unicode_to_JIS.cc \
760 gnu/gcj/convert/natIconv.cc \
761 gnu/gcj/convert/natInput_EUCJIS.cc \
762 gnu/gcj/convert/natInput_SJIS.cc \
763 gnu/gcj/convert/natOutput_EUCJIS.cc \
764 gnu/gcj/convert/natOutput_SJIS.cc \
765 gnu/gcj/io/natSimpleSHSStream.cc \
766 gnu/gcj/io/shs.cc \
767 gnu/gcj/runtime/natFinalizerThread.cc \
768 gnu/gcj/runtime/natSharedLibLoader.cc \
769 gnu/gcj/runtime/natStringBuffer.cc \
770 gnu/gcj/util/natDebug.cc \
771 gnu/java/lang/natMainThread.cc \
772 gnu/java/net/natPlainDatagramSocketImpl.cc \
773 gnu/java/net/natPlainSocketImpl.cc \
774 gnu/java/net/protocol/core/natCoreInputStream.cc \
775 gnu/java/nio/natPipeImpl.cc \
776 gnu/java/nio/natSelectorImpl.cc \
777 gnu/java/nio/natNIOServerSocket.cc \
778 gnu/java/nio/channels/natFileChannelImpl.cc \
779 java/io/natFile.cc \
780 java/io/natObjectInputStream.cc \
781 java/io/natVMObjectStreamClass.cc \
782 java/lang/natCharacter.cc \
783 java/lang/natClass.cc \
784 java/lang/natClassLoader.cc \
785 java/lang/natConcreteProcess.cc \
786 java/lang/natDouble.cc \
787 java/lang/natFloat.cc \
788 java/lang/natMath.cc \
789 java/lang/natObject.cc \
790 java/lang/natRuntime.cc \
791 java/lang/natString.cc \
792 java/lang/natStringBuffer.cc \
793 java/lang/natStringBuilder.cc \
794 java/lang/natSystem.cc \
795 java/lang/natThread.cc \
796 java/lang/natVMClassLoader.cc \
797 java/lang/natVMSecurityManager.cc \
798 java/lang/natVMThrowable.cc \
799 java/lang/ref/natReference.cc \
800 java/lang/reflect/natArray.cc \
801 java/lang/reflect/natConstructor.cc \
802 java/lang/reflect/natField.cc \
803 java/lang/reflect/natMethod.cc \
804 java/lang/reflect/natProxy.cc \
805 java/net/natVMNetworkInterface.cc \
806 java/net/natInetAddress.cc \
807 java/nio/channels/natChannels.cc \
808 java/nio/natDirectByteBufferImpl.cc \
809 java/text/natCollator.cc \
810 java/util/natResourceBundle.cc \
811 java/util/natVMTimeZone.cc \
812 java/util/logging/natLogger.cc \
813 java/util/zip/natDeflater.cc \
814 java/util/zip/natInflater.cc
816 xlib_nat_source_files = \
817 gnu/gcj/xlib/natClip.cc \
818 gnu/gcj/xlib/natColormap.cc \
819 gnu/gcj/xlib/natDisplay.cc \
820 gnu/gcj/xlib/natDrawable.cc \
821 gnu/gcj/xlib/natFont.cc \
822 gnu/gcj/xlib/natGC.cc \
823 gnu/gcj/xlib/natPixmap.cc \
824 gnu/gcj/xlib/natScreen.cc \
825 gnu/gcj/xlib/natVisual.cc \
826 gnu/gcj/xlib/natWMSizeHints.cc \
827 gnu/gcj/xlib/natWindow.cc \
828 gnu/gcj/xlib/natWindowAttributes.cc \
829 gnu/gcj/xlib/natXAnyEvent.cc \
830 gnu/gcj/xlib/natXButtonEvent.cc \
831 gnu/gcj/xlib/natXColor.cc \
832 gnu/gcj/xlib/natXConfigureEvent.cc \
833 gnu/gcj/xlib/natXException.cc \
834 gnu/gcj/xlib/natXExposeEvent.cc \
835 gnu/gcj/xlib/natXImage.cc \
836 gnu/gcj/xlib/natXUnmapEvent.cc
838 ## ################################################################
841 ## Creating and installing sources.zip
844 ## Create a zip holding all the sources.  This can be meaningfully
845 ## used in Eclipse.
846 src.zip:
847         -rm -f src.zip
848         here=`pwd`; \
849         ( ( cd $(srcdir); \
850           find java gnu javax org -name '*.java' -print | \
851           while read file; do \
852 ## Ugly code to avoid "echo -C".  Must separate each entry by a newline
853 ## Gross but easy.
854             echo "x-C" | sed -e 's/^.//'; \
855             echo $(srcdir); \
856             echo $$file; \
857           done ); \
858 ## Now the build tree.
859           find gnu java -name '*.java' -print) | \
860 ## Many of the above circumlocutions are because ZIP will most likely
861 ## be a relative path to fastjar.
862         $(ZIP) -cfM@ $$here/src.zip
864 ## We use a variable for this in case the user wants to override it.
865 sourcesdir = $(jardir)
867 install-src.zip: src.zip
868         $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
871 ## ################################################################
874 ## Dependency tracking madness.
877 ## This is an evil hack to work around an automake limitation.  We
878 ## need to ensure that all CNI headers are built, not just the ones
879 ## used internally by libgcj. We can't make the .o files depend on
880 ## nat_headers, because in that case we'll force a complete rebuild of
881 ## the C++ code whenever any .java file is touched.  So instead we
882 ## have a dummy rule which is only used once, namely the first time a
883 ## build is done.  On subsequent builds, the dependency tracking for
884 ## the .cc compilations will have picked up the .h files, and these
885 ## will be built directly as needed.
887 headers.stamp:
888 ## Note that we don't use a real dependency here, since we don't want
889 ## to rebuild all the headers here when the header list changes.  If
890 ## we did rebuild here, then any addition of a .java file would cause
891 ## a large number of recompilations.
892         $(MAKE) create-headers
893         @echo > headers.stamp
895 headers_to_make = $(nat_headers)
896 if XLIB_AWT
897 headers_to_make += $(xlib_nat_headers)
898 endif
900 create-headers: $(headers_to_make)
902 .PHONY: create-headers
904 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
905 $(libgij_la_OBJECTS): headers.stamp
907 ## ################################################################
910 ## This section is for make and multilib madness.
913 # Work around what appears to be a GNU make bug handling MAKEFLAGS
914 # values defined in terms of make variables, as is the case for CC and
915 # friends when we are called from the top level Makefile.
916 AM_MAKEFLAGS = \
917         "AR_FLAGS=$(AR_FLAGS)" \
918         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
919         "CFLAGS=$(CFLAGS)" \
920         "CXXFLAGS=$(CXXFLAGS)" \
921         "CPPFLAGS=$(CPPFLAGS)" \
922         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
923         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
924         "INSTALL=$(INSTALL)" \
925         "INSTALL_DATA=$(INSTALL_DATA)" \
926         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
927         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
928         "GCJFLAGS=$(GCJFLAGS)" \
929         "LDFLAGS=$(LDFLAGS)" \
930         "LIBCFLAGS=$(LIBCFLAGS)" \
931         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
932         "MAKE=$(MAKE)" \
933         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
934         "PICFLAG=$(PICFLAG)" \
935         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
936         "SHELL=$(SHELL)" \
937         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
938         "exec_prefix=$(exec_prefix)" \
939         "infodir=$(infodir)" \
940         "libdir=$(libdir)" \
941         "prefix=$(prefix)" \
942         "gxx_include_dir=$(gxx_include_dir)" \
943         "AR=$(AR)" \
944         "AS=$(AS)" \
945         "LD=$(LD)" \
946         "LIBCFLAGS=$(LIBCFLAGS)" \
947         "NM=$(NM)" \
948         "PICFLAG=$(PICFLAG)" \
949         "RANLIB=$(RANLIB)" \
950         "DESTDIR=$(DESTDIR)"
952 # Subdir rules rely on $(FLAGS_TO_PASS)
953 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
955 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
957 MAKEOVERRIDES=
959 # Multilib support variables.
960 MULTISRCTOP =
961 MULTIBUILDTOP =
962 MULTIDIRS =
963 MULTISUBDIR =
964 MULTIDO = true
965 MULTICLEAN = true
967 # Multilib support.
968 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
969         maintainer-clean-multi
971 all-recursive: all-multi
972 install-recursive: install-multi
973 mostlyclean-recursive: mostlyclean-multi
974 clean-recursive: clean-multi
975 distclean-recursive: distclean-multi
976 maintainer-clean-recursive: maintainer-clean-multi
978 all-multi:
979         : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
980 install-multi:
981         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
982 mostlyclean-multi:
983         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
984 clean-multi:
985         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
986 distclean-multi:
987         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
988 maintainer-clean-multi:
989         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean