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)
33 ## What gets installed, and where.
36 toolexeclib_LTLIBRARIES = libgcj.la libgij.la libgcj-tools.la
37 toolexecmainlib_DATA = libgcj.spec
40 toolexeclib_LTLIBRARIES += libgcj_bc.la
44 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
47 dbexec_LTLIBRARIES = libjvm.la
49 pkgconfigdir = $(libdir)/pkgconfig
51 jardir = $(datadir)/java
52 jar_DATA = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
55 JAVA_HOME_DIR = $(JAVA_HOME)
56 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
58 JAVA_HOME_DIR = $(prefix)
59 BOOT_CLASS_PATH_DIR = $(jardir)/libgcj-$(gcc_version).jar
62 ## Name of the default .db.
64 ## Compiler specific component of the .db file
65 db_pathtail = gcj-$(gcc_version)/$(db_name)
67 ## For now, only on native systems. FIXME.
69 bin_PROGRAMS = jv-convert gij grmic grmiregistry gcj-dbtool \
70 gappletviewer gjarsigner gkeytool
72 ## It is convenient to actually build and install the default database
73 ## when gcj-dbtool is available.
74 dbexec_DATA = $(db_name)
77 bin_SCRIPTS = addr2name.awk
79 ## ################################################################
82 ## Compilers and compilation flags.
86 bin_SCRIPTS += scripts/jar
89 ## The compiler with whatever flags we want for both -c and -C
91 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
93 extra_ldflags_libjava = @extra_ldflags_libjava@
95 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
97 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
98 $(LDFLAGS) $(extra_ldflags_libjava) -o $@
100 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
102 WARNINGS = -Wextra -Wall
103 ## Some systems don't allow `$' in identifiers by default, so we force
104 ## it with -fdollars-in-identifiers. -Wswitch-enum detects bugs in
105 ## the verifier implementation, and maybe other places. We need
106 ## _GNU_SOURCE defined for some Linux builds. It doesn't hurt to
107 ## always define it. Some systems, including Linux, need
108 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
111 -fnon-call-exceptions \
113 -fdollars-in-identifiers \
115 -D_FILE_OFFSET_BITS=64 \
120 -DPREFIX="\"$(prefix)\"" \
121 -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
122 -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
123 -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
124 -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
125 -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
126 -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
127 -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
128 -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
129 -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
133 -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
135 -Wno-deprecated -fbootstrap-classes
137 AM_CFLAGS = @LIBGCJ_CFLAGS@
139 AM_CFLAGS += $(WARNINGS)
142 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
143 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
146 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
148 LIBFFIINCS = @LIBFFIINCS@
150 AM_CPPFLAGS = -I$(top_srcdir) \
151 -Iinclude -I$(top_srcdir)/include \
152 -I$(top_srcdir)/classpath/include \
153 -Iclasspath/include \
154 -I$(top_srcdir)/classpath/native/fdlibm \
155 $(GCINCS) $(THREADINCS) $(INCLTDL) \
156 $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
158 BOOTCLASSPATH = $(here)/classpath/lib
160 ## ################################################################
163 ## How to build libgcj.a and libgcj.jar
166 libgij_la_SOURCES = gij.cc
167 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
168 ## See jv_convert_LDADD.
169 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
170 ## The mysterious backslash in the grep pattern is consumed by make.
171 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
172 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
174 libgcj_la_SOURCES = prims.cc jni.cc jvmti.cc exception.cc stacktrace.cc \
175 link.cc defineclass.cc interpret.cc verify.cc \
176 java/lang/Class.java java/lang/Object.java \
180 libgcj_la_SOURCES += boehm.cc
184 libgcj_la_SOURCES += nogc.cc
187 if USING_POSIX_PLATFORM
188 libgcj_la_SOURCES += posix.cc
191 if USING_WIN32_PLATFORM
192 libgcj_la_SOURCES += win32.cc
196 libgcj_la_SOURCES += darwin.cc
199 if USING_POSIX_THREADS
200 libgcj_la_SOURCES += posix-threads.cc
203 if USING_WIN32_THREADS
204 libgcj_la_SOURCES += win32-threads.cc
208 libgcj_la_SOURCES += no-threads.cc
211 ## Objects from C++ sources in subdirs.
212 nat_files = $(nat_source_files:.cc=.lo)
213 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
215 # Include THREADLIBS here to ensure that the correct version of
216 # certain linuxthread functions get linked:
217 ## The mysterious backslash in the grep pattern is consumed by make.
218 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(THREADLIBS) \
219 $(LIBLTDL) $(SYS_ZLIBS) \
220 -version-info `grep -v '^\#' $(srcdir)/libtool-version`
222 classpath/native/fdlibm/libfdlibm.la \
223 $(all_packages_source_files:.list=.lo) \
226 $(LIBFFI) $(ZLIBS) $(GCLIBS)
227 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
228 $(all_packages_source_files:.list=.lo) \
229 $(LIBLTDL) $(libgcj_la_LIBADD)
230 libgcj_la_LINK = $(LIBLINK)
232 libgcj_tools_la_SOURCES = classpath/tools/tools.jar
233 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes
234 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
235 -version-info `grep -v '^\#' $(srcdir)/libtool-version`
236 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
237 libgcj_tools_la_LINK = $(LIBLINK)
240 libjvm_la_SOURCES = jni-libjvm.cc
241 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
242 ## See jv_convert_LDADD.
243 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
244 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC)
246 ## The .db file. This rule is only used for native builds, so it is
247 ## safe to invoke gcj-dbtool.
248 $(db_name): gcj-dbtool$(EXEEXT)
249 ## In case it exists already.
251 ## We don't actually care if it fails -- if it does, just make an
252 ## empty file. This is simpler than trying to discover when mmap is
254 ./gcj-dbtool -n $(db_name) || touch $(db_name)
256 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
257 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
258 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
259 libgcj.la libgcj.spec \
260 $(lib_gnu_awt_xlib_la_LIBADD)
261 ## We require libstdc++-v3 to be in the same build tree.
262 lib_gnu_awt_xlib_la_CPPFLAGS = \
264 -I../libstdc++-v3/include \
265 -I../libstdc++-v3/include/$(target_noncanonical) \
266 -I$(srcdir)/../libstdc++-v3/libsupc++
267 ## The mysterious backslash in the grep pattern is consumed by make.
268 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
269 @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
270 -rpath $(toolexeclibdir) \
271 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
272 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
274 ## Support for libgcj_bc: dummy shared library.
276 ## This lets us have one soname in BC objects and another in C++ ABI objects.
277 libgcj_bc_la_SOURCES = libgcj_bc.c
278 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0
279 libgcj_bc_la_LIBADD = libgcj.la
280 libgcj_bc_la_DEPENDENCIES = libgcj.la
281 libgcj_bc_la_LINK = $(LIBLINK)
282 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
283 ## USE_LIBGCJ_BC shouldn't be set on other targets.
284 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
287 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
289 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
290 $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
291 $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
292 rm .libs/libgcj_bc.so; \
293 mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
294 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
295 -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
296 rm .libs/libgcj_bc.so.1; \
297 $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
299 ## Note that property_files is defined in sources.am.
300 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
302 $(propertyo_files): %.lo: classpath/resource/%
303 $(mkinstalldirs) `dirname $@`; \
304 $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
306 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
307 cd classpath/lib; $(JAR) -cfM \
308 ../../libgcj-$(gcc_version).jar gnu java javax org
310 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.jar
313 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
314 DISTCLEANFILES = native.dirs
317 ## Use libtool rm to remove each libtool object
318 find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
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.
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.
343 $(LTGCJCOMPILE) -c -o $@ -MT $@ -MD -MP -MF $(basename $@).deps @$<
345 ## ################################################################
347 ## This pulls in a number of variable and target definitions.
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 'class _Jv_Thread_t;' \
401 -prepend '#define _JV_NOT_OWNER 1' \
402 -prepend '#define _JV_INTERRUPTED 2' \
403 -prepend '_Jv_JNIEnv * _Jv_GetCurrentJNIEnv ();' \
404 -prepend 'void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
405 -prepend 'void _Jv_ThreadRun (java::lang::Thread* thread);' \
406 -prepend 'jint _Jv_AttachCurrentThread(java::lang::Thread* thread);' \
407 -prepend 'java::lang::Thread* _Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
408 -prepend 'java::lang::Thread* _Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
409 -prepend 'jint _Jv_DetachCurrentThread ();' \
410 -prepend '_Jv_Thread_t* _Jv_ThreadGetData (java::lang::Thread* thread);' \
411 -friend '_Jv_JNIEnv * ::_Jv_GetCurrentJNIEnv ();' \
412 -friend 'void ::_Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
413 -friend 'void ::_Jv_ThreadRun (java::lang::Thread* thread);' \
414 -friend 'jint (::_Jv_AttachCurrentThread) (java::lang::Thread* thread);' \
415 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
416 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
417 -friend 'jint (::_Jv_DetachCurrentThread) ();' \
418 -friend '_Jv_Thread_t* ::_Jv_ThreadGetData (java::lang::Thread* thread);' \
421 java/lang/String.h: classpath/lib/java/lang/String.class
422 $(GCJH) -classpath '' -bootclasspath classpath/lib \
423 -prepend 'jchar* _Jv_GetStringChars (jstring str);' \
424 -prepend 'jstring* _Jv_StringFindSlot (jchar*, jint, jint);' \
425 -prepend 'jstring* _Jv_StringGetSlot (jstring);' \
426 -prepend 'jstring _Jv_NewStringUtf8Const (_Jv_Utf8Const* str);' \
427 -prepend 'jstring _Jv_NewStringLatin1 (const char*, jsize);' \
428 -prepend 'jstring _Jv_AllocString (jsize);' \
429 -friend 'jchar* ::_Jv_GetStringChars (jstring str);' \
430 -friend 'jstring* ::_Jv_StringFindSlot (jchar*, jint, jint);' \
431 -friend 'jstring* ::_Jv_StringGetSlot (jstring);' \
432 -friend 'jstring (::_Jv_NewStringUtf8Const) (_Jv_Utf8Const* str);' \
433 -friend 'jstring (::_Jv_NewStringLatin1) (const char*, jsize);' \
434 -friend 'jstring (::_Jv_AllocString) (jsize);' \
437 java/lang/reflect/Constructor.h: classpath/lib/java/lang/reflect/Constructor.class
438 $(GCJH) -classpath '' -bootclasspath classpath/lib \
439 -prepend 'jmethodID _Jv_FromReflectedConstructor (java::lang::reflect::Constructor *);' \
440 -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
441 -friend 'jmethodID (::_Jv_FromReflectedConstructor) (java::lang::reflect::Constructor *);' \
442 -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
443 -friend 'class java::lang::Class;' \
444 java/lang/reflect/Constructor
446 java/lang/reflect/Field.h: classpath/lib/java/lang/reflect/Field.class
447 $(GCJH) -classpath '' -bootclasspath classpath/lib \
448 -prepend 'jfieldID _Jv_FromReflectedField (java::lang::reflect::Field *);' \
449 -prepend 'jobject _Jv_JNI_ToReflectedField (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
450 -friend 'jfieldID (::_Jv_FromReflectedField) (java::lang::reflect::Field *);' \
451 -friend 'jobject (::_Jv_JNI_ToReflectedField) (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
452 -friend 'class java::lang::Class;' \
453 java/lang/reflect/Field
455 java/lang/reflect/Method.h: classpath/lib/java/lang/reflect/Method.class
456 $(GCJH) -classpath '' -bootclasspath classpath/lib \
457 -prepend 'jmethodID _Jv_FromReflectedMethod (java::lang::reflect::Method *);' \
458 -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
459 -friend 'jmethodID (::_Jv_FromReflectedMethod) (java::lang::reflect::Method *);' \
460 -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
461 -friend 'class java::lang::Class;' \
462 -friend 'class java::io::ObjectInputStream;' \
463 java/lang/reflect/Method
465 java/lang/reflect/Proxy.h: classpath/lib/java/lang/reflect/Proxy.class
466 $(GCJH) -classpath '' -bootclasspath classpath/lib \
467 java/lang/reflect/Proxy
469 java/lang/reflect/Proxy$$ProxyData.h: classpath/lib/java/lang/reflect/Proxy.class
470 $(GCJH) -classpath '' -bootclasspath classpath/lib \
471 'java/lang/reflect/Proxy$$ProxyData'
473 java/lang/reflect/Proxy$$ProxyType.h: classpath/lib/java/lang/reflect/Proxy.class
474 $(GCJH) -classpath '' -bootclasspath classpath/lib \
475 'java/lang/reflect/Proxy$$ProxyType'
477 gnu/gcj/runtime/ExtensionClassLoader.h: classpath/lib/gnu/gcj/runtime/ExtensionClassLoader.class
478 $(GCJH) -classpath '' -bootclasspath classpath/lib \
479 -friend 'class ::java::lang::ClassLoader;' \
480 gnu/gcj/runtime/ExtensionClassLoader
482 java/io/ObjectInputStream$$GetField.h: classpath/lib/java/io/ObjectInputStream.class
483 $(GCJH) -classpath '' -bootclasspath classpath/lib \
484 'java/io/ObjectInputStream$$GetField'
486 java/io/ObjectOutputStream$$PutField.h: classpath/lib/java/io/ObjectOutputStream.class
487 $(GCJH) -classpath '' -bootclasspath classpath/lib \
488 'java/io/ObjectOutputStream$$PutField'
490 java/nio/DirectByteBufferImpl$$ReadWrite.h: classpath/lib/java/nio/DirectByteBufferImpl.class
491 $(GCJH) -classpath '' -bootclasspath classpath/lib \
492 'java/nio/DirectByteBufferImpl$$ReadWrite'
494 java/nio/channels/Pipe$$SinkChannel.h: classpath/lib/java/nio/channels/Pipe.class
495 $(GCJH) -classpath '' -bootclasspath classpath/lib \
496 'java/nio/channels/Pipe$$SinkChannel'
498 java/nio/channels/Pipe$$SourceChannel.h: classpath/lib/java/nio/channels/Pipe.class
499 $(GCJH) -classpath '' -bootclasspath classpath/lib \
500 'java/nio/channels/Pipe$$SourceChannel'
502 gnu/java/net/PlainSocketImpl$$SocketInputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
503 $(GCJH) -classpath '' -bootclasspath classpath/lib \
504 'gnu/java/net/PlainSocketImpl$$SocketInputStream'
506 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
507 $(GCJH) -classpath '' -bootclasspath classpath/lib \
508 'gnu/java/net/PlainSocketImpl$$SocketOutputStream'
510 gnu/java/nio/PipeImpl$$SinkChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
511 $(GCJH) -classpath '' -bootclasspath classpath/lib \
512 'gnu/java/nio/PipeImpl$$SinkChannelImpl'
514 gnu/java/nio/PipeImpl$$SourceChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
515 $(GCJH) -classpath '' -bootclasspath classpath/lib \
516 'gnu/java/nio/PipeImpl$$SourceChannelImpl'
518 ## Only used by PosixProcess.java
519 java/lang/ConcreteProcess$$ProcessManager.h: classpath/lib/java/lang/ConcreteProcess.class
520 $(GCJH) -classpath '' -bootclasspath classpath/lib \
521 'java/lang/ConcreteProcess$$ProcessManager'
523 ## Headers we maintain by hand and which we want to install.
524 extra_headers = java/lang/Object.h java/lang/Class.h
526 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
529 ## Support for libgcj_bc: dummy shared library used only at link-time.
531 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
532 ## libtool's .la file, this prevents libtool resetting the lib again
534 install-exec-hook: install-toolexeclibLTLIBRARIES
535 @echo Installing dummy lib libgcj_bc.so.1.0.0; \
536 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
537 mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
538 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
539 -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
540 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
541 $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
542 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
545 ## Install the headers. It is fairly ugly that we have to do this by
549 ## Install the .pc file.
550 @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
551 file="libgcj-$${pc_version}.pc"; \
552 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
553 echo " $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
554 $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
555 ## We use a GNU make trick here so that we don't go over the command
556 ## length limit of some shells.
557 @echo Creating list of headers to install...
558 @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
559 @cat tmp-ilist | while read f; do \
560 d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
561 $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$d; \
562 if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
563 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f"; \
564 $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f; \
567 ## Install inner class headers.
568 $(INSTALL_DATA) 'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
569 $(INSTALL_DATA) 'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
570 $(INSTALL_DATA) 'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
571 $(INSTALL_DATA) 'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
572 $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
573 $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
574 $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
575 $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
576 $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
577 $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
578 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
581 ## ################################################################
584 ## Additional `check' targets for maintainer convenience.
587 ## This is used for maintainer-check. FIXME: should set from
588 ## configure using AC_CHECK_TOOL.
591 ## Try to make sure our library doesn't stomp the namespace.
592 maintainer-check: libgcj.la
593 $(NM) .libs/libgcj.a | grep ' T ' \
594 ## Anything with `4java' is assumed to be from .java source.
596 ## Anything with Jv is ok.
598 ## `terminate' and `unexpected' are part of the runtime.
599 | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
601 ## This rule can be used to see if the headers are more or less
603 header-check: libgcj-$(gcc_version).jar $(nat_headers)
605 for h in $(nat_headers); do \
606 echo "#include \"$$h\"" >> htest.cc; \
608 $(CXXCOMPILE) -fsyntax-only htest.cc
610 ## This rule can be used to see if all the .class files verify
612 class-check: libgcj-$(gcc_version).jar
613 @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
615 echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
616 if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
620 ## This rule checks whether write_entries_to_file works properly.
621 write-entries-to-file-check:
622 @echo Creating list of files to link...
623 @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
625 ## ################################################################
628 ## The `jv-convert' program and code to rebuild the converter header
632 ## it only makes sense to try to rebuild the JIS .h files on native
636 noinst_PROGRAMS = gen-from-JIS
638 gen_from_JIS_SOURCES = \
639 gnu/gcj/convert/gen-from-JIS.c \
640 gnu/gcj/convert/make-trie.c
642 gen_from_JIS_DEPENDENCIES = \
643 gnu/gcj/convert/JIS0201.h \
644 gnu/gcj/convert/JIS0208.h \
645 gnu/gcj/convert/JIS0212.h
647 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
648 ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
650 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
651 ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
653 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
654 ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
656 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
657 # You can get it from
658 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
660 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
661 echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
662 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
663 | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2) /*\3 */|p' \
665 mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
667 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
668 # You can get it from
669 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
671 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
672 echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
673 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
674 | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4) /*\5 */|p' \
676 mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
678 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
679 # You can get it from
680 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
682 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
683 echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
684 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
685 | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
687 mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
694 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
695 ## need this because we are explicitly using libtool to link using the
697 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
698 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
699 jv_convert_LINK = $(GCJLINK)
700 ## We don't explicitly link in the libraries we need; libgcj.la brings
701 ## in all dependencies. We need the -L so that gcj can find libgcj
702 ## with `-lgcj', but it must come first, otherwise the -L flags
703 ## brought in from libgcj.la would cause the install directories to be
704 ## searched before the build-tree ones, and we'd get errors because of
705 ## different libraries with the same SONAME from picky linkers such as
706 ## Solaris'. FIXME: should be _libs on some systems.
707 jv_convert_LDADD = -L$(here)/.libs libgcj.la
708 ## Depend on the spec file to make sure it is up to date before
709 ## linking this program.
710 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
712 gcj_dbtool_SOURCES = \
713 gnu/gcj/tools/gcj_dbtool/Main.java \
714 gnu/gcj/tools/gcj_dbtool/natMain.cc
716 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
717 ## need this because we are explicitly using libtool to link using the
719 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
720 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
721 gcj_dbtool_LINK = $(GCJLINK)
722 ## We don't explicitly link in the libraries we need; libgcj.la brings
723 ## in all dependencies. We need the -L so that gcj can find libgcj
724 ## with `-lgcj', but it must come first, otherwise the -L flags
725 ## brought in from libgcj.la would cause the install directories to be
726 ## searched before the build-tree ones, and we'd get errors because of
727 ## different libraries with the same SONAME from picky linkers such as
728 ## Solaris'. FIXME: should be _libs on some systems.
729 gcj_dbtool_LDADD = -L$(here)/.libs libgcj.la
730 ## Depend on the spec file to make sure it is up to date before
731 ## linking this program.
732 gcj_dbtool_DEPENDENCIES = libgcj.la libgcj.spec
735 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
736 ## need this because we are explicitly using libtool to link using the
738 gij_LDFLAGS = -rpath $(libdir)/gcj-$(gcc_version) -rpath $(toolexeclibdir) \
739 -shared-libgcc $(THREADLDFLAGS)
740 gij_LINK = $(GCJLINK)
741 ## See jv_convert_LDADD.
742 gij_LDADD = -L$(here)/.libs libgij.la
743 ## Depend on the spec file to make sure it is up to date before
744 ## linking this program.
745 gij_DEPENDENCIES = libgij.la
747 ## This is a dummy definition.
749 grmic_LDFLAGS = --main=gnu.java.rmi.rmic.RMIC \
750 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
751 grmic_LINK = $(GCJLINK)
752 ## See jv_convert_LDADD.
753 grmic_LDADD = -L$(here)/.libs libgcj.la
754 ## Depend on the spec file to make sure it is up to date before
755 ## linking this program.
756 grmic_DEPENDENCIES = libgcj.la libgcj.spec
758 ## This is a dummy definition.
759 grmiregistry_SOURCES =
760 grmiregistry_LDFLAGS = --main=gnu.java.rmi.registry.RegistryImpl \
761 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
762 grmiregistry_LINK = $(GCJLINK)
763 ## See jv_convert_LDADD.
764 grmiregistry_LDADD = -L$(here)/.libs libgcj.la
765 ## Depend on the spec file to make sure it is up to date before
766 ## linking this program.
767 grmiregistry_DEPENDENCIES = libgcj.la libgcj.spec
769 ## This is a dummy definition.
770 gappletviewer_SOURCES =
771 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
772 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
773 gappletviewer_LINK = $(GCJLINK)
774 ## See jv_convert_LDADD.
775 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
776 ## Depend on the spec file to make sure it is up to date before
777 ## linking this program.
778 gappletviewer_DEPENDENCIES = libgcj-tools.la
780 ## This is a dummy definition.
782 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
783 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
784 gjarsigner_LINK = $(GCJLINK)
785 ## See jv_convert_LDADD.
786 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
787 ## Depend on the spec file to make sure it is up to date before
788 ## linking this program.
789 gjarsigner_DEPENDENCIES = libgcj-tools.la
791 ## This is a dummy definition.
793 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
794 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
795 gkeytool_LINK = $(GCJLINK)
796 ## See jv_convert_LDADD.
797 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
798 ## Depend on the spec file to make sure it is up to date before
799 ## linking this program.
800 gkeytool_DEPENDENCIES = libgcj-tools.la
802 ## ################################################################
804 ## This lists all the C++ source files in subdirectories.
806 gnu/classpath/natSystemProperties.cc \
807 gnu/classpath/jdwp/natVMFrame.cc \
808 gnu/classpath/jdwp/natVMMethod.cc \
809 gnu/classpath/jdwp/natVMVirtualMachine.cc \
811 gnu/gcj/convert/JIS0208_to_Unicode.cc \
812 gnu/gcj/convert/JIS0212_to_Unicode.cc \
813 gnu/gcj/convert/Unicode_to_JIS.cc \
814 gnu/gcj/convert/natIconv.cc \
815 gnu/gcj/convert/natInput_EUCJIS.cc \
816 gnu/gcj/convert/natInput_SJIS.cc \
817 gnu/gcj/convert/natOutput_EUCJIS.cc \
818 gnu/gcj/convert/natOutput_SJIS.cc \
819 gnu/gcj/io/natSimpleSHSStream.cc \
821 gnu/gcj/runtime/natFinalizerThread.cc \
822 gnu/gcj/runtime/natSharedLibLoader.cc \
823 gnu/gcj/runtime/natSystemClassLoader.cc \
824 gnu/gcj/runtime/natStringBuffer.cc \
825 gnu/gcj/util/natDebug.cc \
826 gnu/java/lang/natMainThread.cc \
827 gnu/java/net/natPlainDatagramSocketImpl.cc \
828 gnu/java/net/natPlainSocketImpl.cc \
829 gnu/java/net/protocol/core/natCoreInputStream.cc \
830 gnu/java/nio/natPipeImpl.cc \
831 gnu/java/nio/natSelectorImpl.cc \
832 gnu/java/nio/natNIOServerSocket.cc \
833 gnu/java/nio/channels/natFileChannelImpl.cc \
835 java/io/natObjectInputStream.cc \
836 java/io/natVMObjectStreamClass.cc \
837 java/lang/natCharacter.cc \
838 java/lang/natClass.cc \
839 java/lang/natClassLoader.cc \
840 java/lang/natConcreteProcess.cc \
841 java/lang/natDouble.cc \
842 java/lang/natFloat.cc \
843 java/lang/natMath.cc \
844 java/lang/natObject.cc \
845 java/lang/natRuntime.cc \
846 java/lang/natString.cc \
847 java/lang/natStringBuffer.cc \
848 java/lang/natStringBuilder.cc \
849 java/lang/natSystem.cc \
850 java/lang/natThread.cc \
851 java/lang/natVMClassLoader.cc \
852 java/lang/natVMSecurityManager.cc \
853 java/lang/natVMThrowable.cc \
854 java/lang/ref/natReference.cc \
855 java/lang/reflect/natArray.cc \
856 java/lang/reflect/natConstructor.cc \
857 java/lang/reflect/natField.cc \
858 java/lang/reflect/natMethod.cc \
859 java/net/natVMNetworkInterface.cc \
860 java/net/natInetAddress.cc \
861 java/net/natURLClassLoader.cc \
862 java/nio/channels/natVMChannels.cc \
863 java/nio/natDirectByteBufferImpl.cc \
864 java/security/natVMAccessController.cc \
865 java/security/natVMAccessControlState.cc \
866 java/text/natCollator.cc \
867 java/util/natResourceBundle.cc \
868 java/util/natVMTimeZone.cc \
869 java/util/logging/natLogger.cc \
870 java/util/zip/natDeflater.cc \
871 java/util/zip/natInflater.cc
873 xlib_nat_source_files = \
874 gnu/gcj/xlib/natClip.cc \
875 gnu/gcj/xlib/natColormap.cc \
876 gnu/gcj/xlib/natDisplay.cc \
877 gnu/gcj/xlib/natDrawable.cc \
878 gnu/gcj/xlib/natFont.cc \
879 gnu/gcj/xlib/natGC.cc \
880 gnu/gcj/xlib/natPixmap.cc \
881 gnu/gcj/xlib/natScreen.cc \
882 gnu/gcj/xlib/natVisual.cc \
883 gnu/gcj/xlib/natWMSizeHints.cc \
884 gnu/gcj/xlib/natWindow.cc \
885 gnu/gcj/xlib/natWindowAttributes.cc \
886 gnu/gcj/xlib/natXAnyEvent.cc \
887 gnu/gcj/xlib/natXButtonEvent.cc \
888 gnu/gcj/xlib/natXColor.cc \
889 gnu/gcj/xlib/natXConfigureEvent.cc \
890 gnu/gcj/xlib/natXException.cc \
891 gnu/gcj/xlib/natXExposeEvent.cc \
892 gnu/gcj/xlib/natXImage.cc \
893 gnu/gcj/xlib/natXUnmapEvent.cc
895 ## ################################################################
898 ## Creating and installing sources.zip
901 ## Create a zip holding all the sources. This can be meaningfully
907 ( cd $(srcdir)/classpath; \
908 find java gnu javax org -name '*.java' -print | \
909 while read file; do \
910 ## Ugly code to avoid "echo -C". Must separate each entry by a newline
912 echo "x-C" | sed -e 's/^.//'; \
913 echo $(srcdir)/classpath; \
916 ## Now the build tree.
918 find gnu java -name '*.java' -print | \
919 while read file; do \
920 echo "x-C" | sed -e 's/^.//'; \
925 ## Many of the above circumlocutions were because ZIP used to be a
926 ## relative path to fastjar. It didn't seem worthwhile to change the
927 ## code when we moved to an external jar.
928 $(JAR) -cfM@ $$here/src.zip
929 ## Override GNU Classpath sources with libgcj replacements.
933 find gnu java -name '*.java' -print | \
934 while read file; do \
935 echo "x-C" | sed -e 's/^.//'; \
940 $(JAR) -ufM@ $$here/src.zip
942 ## We use a variable for this in case the user wants to override it.
943 sourcesdir = $(jardir)
945 install-src.zip: src.zip
946 $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
949 ## ################################################################
952 ## Dependency tracking madness.
955 ## This is an evil hack to work around an automake limitation. We
956 ## need to ensure that all CNI headers are built, not just the ones
957 ## used internally by libgcj. We can't make the .o files depend on
958 ## nat_headers, because in that case we'll force a complete rebuild of
959 ## the C++ code whenever any .java file is touched. So instead we
960 ## have a dummy rule which is only used once, namely the first time a
961 ## build is done. On subsequent builds, the dependency tracking for
962 ## the .cc compilations will have picked up the .h files, and these
963 ## will be built directly as needed.
966 ## Note that we don't use a real dependency here, since we don't want
967 ## to rebuild all the headers here when the header list changes. If
968 ## we did rebuild here, then any addition of a .java file would cause
969 ## a large number of recompilations.
970 $(MAKE) create-headers
971 @echo > headers.stamp
973 headers_to_make = $(nat_headers)
975 headers_to_make += $(xlib_nat_headers)
978 create-headers: $(headers_to_make)
980 .PHONY: create-headers
982 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
983 $(libgij_la_OBJECTS): headers.stamp
984 $(libjvm_la_OBJECTS): headers.stamp
986 ## ################################################################
989 ## This section is for make and multilib madness.
992 # Work around what appears to be a GNU make bug handling MAKEFLAGS
993 # values defined in terms of make variables, as is the case for CC and
994 # friends when we are called from the top level Makefile.
996 "AR_FLAGS=$(AR_FLAGS)" \
997 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
999 "CXXFLAGS=$(CXXFLAGS)" \
1000 "CPPFLAGS=$(CPPFLAGS)" \
1001 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1002 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1003 "INSTALL=$(INSTALL)" \
1004 "INSTALL_DATA=$(INSTALL_DATA)" \
1005 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1006 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1007 "GCJFLAGS=$(GCJFLAGS)" \
1008 "LDFLAGS=$(LDFLAGS)" \
1009 "LIBCFLAGS=$(LIBCFLAGS)" \
1010 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1012 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1013 "PICFLAG=$(PICFLAG)" \
1014 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1016 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1017 "exec_prefix=$(exec_prefix)" \
1018 "infodir=$(infodir)" \
1019 "libdir=$(libdir)" \
1020 "prefix=$(prefix)" \
1021 "gxx_include_dir=$(gxx_include_dir)" \
1025 "LIBCFLAGS=$(LIBCFLAGS)" \
1027 "PICFLAG=$(PICFLAG)" \
1028 "RANLIB=$(RANLIB)" \
1029 "DESTDIR=$(DESTDIR)"
1031 # Subdir rules rely on $(FLAGS_TO_PASS)
1032 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1034 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1038 # No install-html support yet.
1039 .PHONY: install-html
1042 # Multilib support variables.
1051 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1052 maintainer-clean-multi
1054 all-recursive: all-multi
1055 install-recursive: install-multi
1056 mostlyclean-recursive: mostlyclean-multi
1057 clean-recursive: clean-multi
1058 distclean-recursive: distclean-multi
1059 maintainer-clean-recursive: maintainer-clean-multi
1062 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1064 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1066 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1068 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1070 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1071 maintainer-clean-multi:
1072 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean