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@
30 ## What gets installed, and where.
33 toolexeclib_LTLIBRARIES = libgcj.la libgij.la
34 toolexecmainlib_DATA = libgcj.spec
37 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
41 toolexeclib_LTLIBRARIES += lib-gnu-java-awt-peer-gtk.la libgcjawt.la
45 toolexeclib_LTLIBRARIES += lib-gnu-java-awt-peer-qt.la
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = libgcj.pc
51 jardir = $(datadir)/java
52 jar_DATA = libgcj-$(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)/$(jar_DATA)
62 ## FIXME: Using libdir violates GNU coding standards.
63 secdir = $(libdir)/security
64 ## Where to install default logging property file.
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
76 ## It is convenient to actually build and install the default database
77 ## when gcj-dbtool is available.
78 dbexec_DATA = $(db_name)
81 bin_SCRIPTS = addr2name.awk
83 ## ################################################################
86 ## Compilers and compilation flags.
92 ## The compiler with whatever flags we want for both -c and -C
94 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
96 extra_ldflags_libjava = @extra_ldflags_libjava@
98 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
100 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
101 $(LDFLAGS) $(extra_ldflags_libjava) -o $@
103 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
105 WARNINGS = -Wextra -Wall
106 ## Some systems don't allow `$' in identifiers by default, so we force
107 ## it with -fdollars-in-identifiers. -Wswitch-enum detects bugs in
108 ## the verifier implementation, and maybe other places. We need
109 ## _GNU_SOURCE defined for some Linux builds. It doesn't hurt to
110 ## always define it. Some systems, including Linux, need
111 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
114 -fnon-call-exceptions \
116 -fdollars-in-identifiers \
118 -D_FILE_OFFSET_BITS=64 \
123 -DPREFIX="\"$(prefix)\"" \
124 -DLIBDIR="\"$(libdir)\"" \
125 -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
126 -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
127 -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
128 -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
129 -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
130 -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\"" \
131 -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\""
135 -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
137 -Wno-deprecated -fbootstrap-classes
139 AM_CFLAGS = @LIBGCJ_CFLAGS@
141 AM_CFLAGS += $(WARNINGS)
144 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
145 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
148 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
150 LIBFFIINCS = @LIBFFIINCS@
152 AM_CPPFLAGS = -I$(top_srcdir) \
153 -Iinclude -I$(top_srcdir)/include \
154 -I$(top_srcdir)/classpath/include \
155 -I$(top_srcdir)/classpath/native/fdlibm \
156 $(GCINCS) $(THREADINCS) $(INCLTDL) \
157 $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
159 BOOTCLASSPATH = $(here)/classpath/lib
161 ## ################################################################
163 all_property_files = $(property_files) \
164 java/util/logging/logging.properties
167 ## How to build libgcj.a and libgcj.jar
170 libgij_la_SOURCES = gij.cc
171 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
172 ## See jv_convert_LDADD.
173 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
174 ## The mysterious backslash in the grep pattern is consumed by make.
175 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
176 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
178 libgcj_la_SOURCES = prims.cc jni.cc exception.cc stacktrace.cc \
179 link.cc defineclass.cc interpret.cc verify.cc \
180 java/lang/Class.java java/lang/Object.java \
184 libgcj_la_SOURCES += boehm.cc
188 libgcj_la_SOURCES += nogc.cc
191 if USING_POSIX_PLATFORM
192 libgcj_la_SOURCES += posix.cc
195 if USING_WIN32_PLATFORM
196 libgcj_la_SOURCES += win32.cc
200 libgcj_la_SOURCES += darwin.cc
203 if USING_POSIX_THREADS
204 libgcj_la_SOURCES += posix-threads.cc
207 if USING_WIN32_THREADS
208 libgcj_la_SOURCES += win32-threads.cc
212 libgcj_la_SOURCES += no-threads.cc
215 ## Objects from C++ sources in subdirs.
216 nat_files = $(nat_source_files:.cc=.lo)
217 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
219 # Include THREADLIBS here to ensure that the correct version of
220 # certain linuxthread functions get linked:
221 ## The mysterious backslash in the grep pattern is consumed by make.
222 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(THREADLIBS) \
223 $(LIBLTDL) $(SYS_ZLIBS) \
224 -version-info `grep -v '^\#' $(srcdir)/libtool-version`
226 classpath/native/fdlibm/libfdlibm.la \
227 $(all_packages_source_files:.list=.lo) \
230 $(LIBFFI) $(ZLIBS) $(GCLIBS)
231 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
232 $(all_packages_source_files:.list=.lo) \
233 $(LIBLTDL) $(libgcj_la_LIBADD)
234 libgcj_la_LINK = $(LIBLINK)
237 ## The .db file. This rule is only used for native builds, so it is
238 ## safe to invoke gcj-dbtool.
239 $(db_name): gcj-dbtool$(EXEEXT)
240 ## In case it exists already.
242 ## We don't actually care if it fails -- if it does, just make an
243 ## empty file. This is simpler than trying to discover when mmap is
245 ./gcj-dbtool -n $(db_name) || touch $(db_name)
247 ## For the peer library, DEPENDENCIES need to come before OBJECTS so
248 ## that JNI headers are built before JNI C files.
249 $(lib_gnu_java_awt_peer_gtk_la_OBJECTS): $(lib_gnu_java_awt_peer_gtk_la_DEPENDENCIES)
251 lib_gnu_java_awt_peer_gtk_la_SOURCES =
252 lib_gnu_java_awt_peer_gtk_la_LIBADD = \
253 gnu-java-awt-peer-gtk.lo \
254 classpath/native/jni/gtk-peer/libgtkpeer.la \
255 $(GTK_LIBS) $(GLIB_LIBS) $(LIBART_LIBS) $(CAIRO_LIBS) $(PANGOFT2_LIBS)
256 lib_gnu_java_awt_peer_gtk_la_DEPENDENCIES = gnu-java-awt-peer-gtk.lo \
257 classpath/native/jni/gtk-peer/libgtkpeer.la \
258 libgcj-$(gcc_version).jar libgcj.la libgcj.spec
259 ## The mysterious backslash in the grep pattern is consumed by make.
260 lib_gnu_java_awt_peer_gtk_la_LDFLAGS = \
261 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC) $(X_LIBS) -lXtst
262 lib_gnu_java_awt_peer_gtk_la_LINK = $(LIBLINK)
264 libgcjawt_la_SOURCES = classpath/native/jawt/jawt.c
265 libgcjawt_la_CFLAGS = -I$(srcdir)/classpath/native/jni/classpath \
266 $(PEDANTIC_CFLAGS) $(X_CFLAGS)
267 ## See jv_convert_LDADD.
268 libgcjawt_la_LIBADD = -L$(here)/.libs lib-gnu-java-awt-peer-gtk.la
269 libgcjawt_la_LDFLAGS = \
270 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
271 $(LIBGCJ_LD_SYMBOLIC)
272 libgcjawt_la_LINK = $(LIBLINK)
274 lib_gnu_java_awt_peer_qt_la_SOURCES =
275 lib_gnu_java_awt_peer_qt_la_LIBADD = \
276 gnu-java-awt-peer-qt.lo \
277 classpath/native/jni/qt-peer/libqtpeer.la
278 lib_gnu_java_awt_peer_qt_la_DEPENDENCIES = gnu-java-awt-peer-qt.lo \
279 classpath/native/jni/qt-peer/libqtpeer.la \
280 libgcj-$(gcc_version).jar libgcj.la libgcj.spec
281 ## The mysterious backslash in the grep pattern is consumed by make.
282 lib_gnu_java_awt_peer_qt_la_LDFLAGS = \
283 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC) $(X_LIBS) -lXtst
284 lib_gnu_java_awt_peer_qt_la_LINK = $(LIBLINK)
286 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
287 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
288 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
289 libgcj.la libgcj.spec \
290 $(lib_gnu_awt_xlib_la_LIBADD)
291 ## We require libstdc++-v3 to be in the same build tree.
292 lib_gnu_awt_xlib_la_CPPFLAGS = \
294 -I../libstdc++-v3/include \
295 -I../libstdc++-v3/include/$(target_noncanonical) \
296 -I$(srcdir)/../libstdc++-v3/libsupc++
297 ## The mysterious backslash in the grep pattern is consumed by make.
298 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
299 @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
300 -rpath $(toolexeclibdir) \
301 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
302 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
304 ## Build property files into the library.
306 classpath/resource/org/ietf/jgss/MessagesBundle.properties \
307 classpath/resource/java/util/iso4217.properties \
308 classpath/resource/gnu/java/awt/peer/gtk/font.properties \
309 classpath/resource/gnu/regexp/MessagesBundle_it.properties \
310 classpath/resource/gnu/regexp/MessagesBundle_fr.properties \
311 classpath/resource/gnu/regexp/MessagesBundle.properties \
312 classpath/resource/META-INF/services/org.xml.sax.driver \
313 classpath/resource/META-INF/services/javax.xml.parsers.SAXParserFactory \
314 classpath/resource/META-INF/services/javax.xml.parsers.DocumentBuilderFactory \
315 classpath/resource/META-INF/services/javax.xml.parsers.TransformerFactory
317 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
319 $(propertyo_files): %.lo: classpath/resource/%
320 $(mkinstalldirs) `dirname $@`; \
321 $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
323 libgcj-$(gcc_version).jar:
324 jardir=`dirname $(ZIP)`; \
325 jardir=`cd $$jardir && pwd`; \
326 jarname=`basename $(ZIP)`; \
327 cd classpath/lib; $$jardir/$$jarname -cfM \
328 ../../libgcj-$(gcc_version).jar gnu java javax org
330 CLEANFILES = libgcj-$(gcc_version).jar \
331 $(all_java_deps_files) $(all_java_filelist_files)
332 DISTCLEANFILES = native.dirs
335 ## Use libtool rm to remove each libtool object
336 find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
339 ## Remove every .d file that was created.
340 find . -name '*.d' -print | xargs rm -f
342 # Just remove the objects from C++ sources, for testing the C++ compiler.
344 rm -f $(nat_files) $(xlib_nat_files)
346 SUFFIXES = .class .java .h .properties .list
348 ## Pass the list of object files to libtool in a temporary file to
349 ## avoid tripping platform command line length limits.
350 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
351 @echo Creating list of files to link...
352 @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
353 $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
354 -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
356 ## ################################################################
358 ## Compiling a list of java sources to a single .o.
361 $(LTGCJCOMPILE) -c -o $@ -MT $@ -MD -MP -MF $(basename $@).deps @$<
363 ## ################################################################
365 ## This pulls in a number of variable and target definitions.
368 ## ################################################################
371 ## How to build header files.
374 ## We have special rules for certain headers.
375 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
376 java/lang/String.h java/lang/reflect/Constructor.h \
377 java/lang/reflect/Field.h java/lang/reflect/Method.h \
378 java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
380 generic_header_files = $(filter-out $(omitted_headers),$(ordinary_header_files) $(xlib_nat_headers)) \
381 gnu/gcj/tools/gcj_dbtool/Main.h
383 $(generic_header_files): %.h: classpath/lib/%.class
384 name=`echo $< | sed -e 's/\.class$$//' -e 's,classpath/lib/,,'`; \
385 $(mkinstalldirs) `dirname $$name`; \
386 $(GCJH) -d . -classpath '' -bootclasspath classpath/lib $$name
388 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
389 java/io/ObjectInputStream$$GetField.h \
390 java/nio/DirectByteBufferImpl$$ReadWrite.h \
391 java/nio/channels/Pipe$$SinkChannel.h \
392 java/nio/channels/Pipe$$SourceChannel.h \
393 java/lang/reflect/Proxy$$ProxyData.h \
394 java/lang/reflect/Proxy$$ProxyType.h \
395 gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
396 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
397 gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
398 gnu/java/nio/PipeImpl$$SourceChannelImpl.h \
399 $(PLATFORM_INNER_NAT_HDRS)
401 nat_headers = $(ordinary_header_files) $(inner_nat_headers) \
402 gnu/gcj/tools/gcj_dbtool/Main.h
403 nat_headers_install = $(ordinary_header_files)
405 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
407 java/lang/ClassLoader.h: classpath/lib/java/lang/ClassLoader.class
408 $(GCJH) -classpath '' -bootclasspath classpath/lib \
409 -prepend 'jclass _Jv_FindClass (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);' \
410 -prepend 'void _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);' \
411 -friend 'jclass (::_Jv_FindClass) (_Jv_Utf8Const *name, java::lang::ClassLoader *loader);' \
412 -friend 'void ::_Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar);' \
413 java/lang/ClassLoader
415 java/lang/Thread.h: classpath/lib/java/lang/Thread.class
416 $(GCJH) -classpath '' -bootclasspath classpath/lib \
417 -prepend 'class _Jv_JNIEnv;' \
418 -prepend '#define _JV_NOT_OWNER 1' \
419 -prepend '#define _JV_INTERRUPTED 2' \
420 -prepend '_Jv_JNIEnv * _Jv_GetCurrentJNIEnv ();' \
421 -prepend 'void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
422 -prepend 'void _Jv_ThreadRun (java::lang::Thread* thread);' \
423 -prepend 'jint _Jv_AttachCurrentThread(java::lang::Thread* thread);' \
424 -prepend 'java::lang::Thread* _Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
425 -prepend 'java::lang::Thread* _Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
426 -prepend 'jint _Jv_DetachCurrentThread ();' \
427 -friend '_Jv_JNIEnv * ::_Jv_GetCurrentJNIEnv ();' \
428 -friend 'void ::_Jv_SetCurrentJNIEnv (_Jv_JNIEnv *env);' \
429 -friend 'void ::_Jv_ThreadRun (java::lang::Thread* thread);' \
430 -friend 'jint (::_Jv_AttachCurrentThread) (java::lang::Thread* thread);' \
431 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThread (jstring name, java::lang::ThreadGroup* group);' \
432 -friend 'java::lang::Thread* ::_Jv_AttachCurrentThreadAsDaemon (jstring name, java::lang::ThreadGroup* group);' \
433 -friend 'jint (::_Jv_DetachCurrentThread) ();' \
436 java/lang/String.h: classpath/lib/java/lang/String.class
437 $(GCJH) -classpath '' -bootclasspath classpath/lib \
438 -prepend 'jchar* _Jv_GetStringChars (jstring str);' \
439 -prepend 'jstring* _Jv_StringFindSlot (jchar*, jint, jint);' \
440 -prepend 'jstring* _Jv_StringGetSlot (jstring);' \
441 -prepend 'jstring _Jv_NewStringUtf8Const (_Jv_Utf8Const* str);' \
442 -prepend 'jstring _Jv_NewStringLatin1 (const char*, jsize);' \
443 -prepend 'jstring _Jv_AllocString (jsize);' \
444 -friend 'jchar* ::_Jv_GetStringChars (jstring str);' \
445 -friend 'jstring* ::_Jv_StringFindSlot (jchar*, jint, jint);' \
446 -friend 'jstring* ::_Jv_StringGetSlot (jstring);' \
447 -friend 'jstring (::_Jv_NewStringUtf8Const) (_Jv_Utf8Const* str);' \
448 -friend 'jstring (::_Jv_NewStringLatin1) (const char*, jsize);' \
449 -friend 'jstring (::_Jv_AllocString) (jsize);' \
452 java/lang/reflect/Constructor.h: classpath/lib/java/lang/reflect/Constructor.class
453 $(GCJH) -classpath '' -bootclasspath classpath/lib \
454 -prepend 'jmethodID _Jv_FromReflectedConstructor (java::lang::reflect::Constructor *);' \
455 -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
456 -friend 'jmethodID (::_Jv_FromReflectedConstructor) (java::lang::reflect::Constructor *);' \
457 -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
458 -friend 'class java::lang::Class;' \
459 java/lang/reflect/Constructor
461 java/lang/reflect/Field.h: classpath/lib/java/lang/reflect/Field.class
462 $(GCJH) -classpath '' -bootclasspath classpath/lib \
463 -prepend 'jfieldID _Jv_FromReflectedField (java::lang::reflect::Field *);' \
464 -prepend 'jobject _Jv_JNI_ToReflectedField (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
465 -friend 'jfieldID (::_Jv_FromReflectedField) (java::lang::reflect::Field *);' \
466 -friend 'jobject (::_Jv_JNI_ToReflectedField) (_Jv_JNIEnv*, jclass, jfieldID, jboolean);' \
467 -friend 'class java::lang::Class;' \
468 java/lang/reflect/Field
470 java/lang/reflect/Method.h: classpath/lib/java/lang/reflect/Method.class
471 $(GCJH) -classpath '' -bootclasspath classpath/lib \
472 -prepend 'jmethodID _Jv_FromReflectedMethod (java::lang::reflect::Method *);' \
473 -prepend 'jobject _Jv_JNI_ToReflectedMethod (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
474 -friend 'jmethodID (::_Jv_FromReflectedMethod) (java::lang::reflect::Method *);' \
475 -friend 'jobject (::_Jv_JNI_ToReflectedMethod) (_Jv_JNIEnv *, jclass, jmethodID, jboolean);' \
476 -friend 'class java::lang::Class;' \
477 -friend 'class java::io::ObjectInputStream;' \
478 java/lang/reflect/Method
480 java/lang/reflect/Proxy.h: classpath/lib/java/lang/reflect/Proxy.class
481 $(GCJH) -classpath '' -bootclasspath classpath/lib \
482 java/lang/reflect/Proxy
484 java/lang/reflect/Proxy$$ProxyData.h: classpath/lib/java/lang/reflect/Proxy.class
485 $(GCJH) -classpath '' -bootclasspath classpath/lib \
486 'java/lang/reflect/Proxy$$ProxyData'
488 java/lang/reflect/Proxy$$ProxyType.h: classpath/lib/java/lang/reflect/Proxy.class
489 $(GCJH) -classpath '' -bootclasspath classpath/lib \
490 'java/lang/reflect/Proxy$$ProxyType'
492 gnu/gcj/runtime/ExtensionClassLoader.h: classpath/lib/gnu/gcj/runtime/ExtensionClassLoader.class
493 $(GCJH) -classpath '' -bootclasspath classpath/lib \
494 -friend 'class ::java::lang::ClassLoader;' \
495 gnu/gcj/runtime/ExtensionClassLoader
497 java/io/ObjectInputStream$$GetField.h: classpath/lib/java/io/ObjectInputStream.class
498 $(GCJH) -classpath '' -bootclasspath classpath/lib \
499 'java/io/ObjectInputStream$$GetField'
501 java/io/ObjectOutputStream$$PutField.h: classpath/lib/java/io/ObjectOutputStream.class
502 $(GCJH) -classpath '' -bootclasspath classpath/lib \
503 'java/io/ObjectOutputStream$$PutField'
505 java/nio/DirectByteBufferImpl$$ReadWrite.h: classpath/lib/java/nio/DirectByteBufferImpl.class
506 $(GCJH) -classpath '' -bootclasspath classpath/lib \
507 'java/nio/DirectByteBufferImpl$$ReadWrite'
509 java/nio/channels/Pipe$$SinkChannel.h: classpath/lib/java/nio/channels/Pipe.class
510 $(GCJH) -classpath '' -bootclasspath classpath/lib \
511 'java/nio/channels/Pipe$$SinkChannel'
513 java/nio/channels/Pipe$$SourceChannel.h: classpath/lib/java/nio/channels/Pipe.class
514 $(GCJH) -classpath '' -bootclasspath classpath/lib \
515 'java/nio/channels/Pipe$$SourceChannel'
517 gnu/java/net/PlainSocketImpl$$SocketInputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
518 $(GCJH) -classpath '' -bootclasspath classpath/lib \
519 'gnu/java/net/PlainSocketImpl$$SocketInputStream'
521 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h: classpath/lib/gnu/java/net/PlainSocketImpl.class
522 $(GCJH) -classpath '' -bootclasspath classpath/lib \
523 'gnu/java/net/PlainSocketImpl$$SocketOutputStream'
525 gnu/java/nio/PipeImpl$$SinkChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
526 $(GCJH) -classpath '' -bootclasspath classpath/lib \
527 'gnu/java/nio/PipeImpl$$SinkChannelImpl'
529 gnu/java/nio/PipeImpl$$SourceChannelImpl.h: classpath/lib/gnu/java/nio/PipeImpl.class
530 $(GCJH) -classpath '' -bootclasspath classpath/lib \
531 'gnu/java/nio/PipeImpl$$SourceChannelImpl'
533 ## Only used by PosixProcess.java
534 java/lang/ConcreteProcess$$ProcessManager.h: classpath/lib/java/lang/ConcreteProcess.class
535 $(GCJH) -classpath '' -bootclasspath classpath/lib \
536 'java/lang/ConcreteProcess$$ProcessManager'
538 ## Headers we maintain by hand and which we want to install.
539 extra_headers = java/lang/Object.h java/lang/Class.h
541 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
544 ## Install the headers. It is fairly ugly that we have to do this by
548 ## We use a GNU make trick here so that we don't go over the command
549 ## length limit of some shells.
550 @echo Creating list of headers to install...
551 @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
552 @cat tmp-ilist | while read f; do \
553 d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
554 $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$d; \
555 if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
556 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f"; \
557 $(INSTALL_DATA) $$p $(DESTDIR)$(gxx_include_dir)/$$f; \
560 ## FIXME: the obvious approach using lib_DATA doesn't work with
562 $(mkinstalldirs) $(DESTDIR)$(secdir)
563 @for f in libgcj.security; do \
564 echo " $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f"; \
565 $(INSTALL_DATA) $(srcdir)/java/security/$$f $(DESTDIR)$(secdir)/$$f; \
567 $(INSTALL_DATA) $(srcdir)/java/util/logging/logging.properties $(DESTDIR)$(propdir)/logging.properties
568 ## Install inner class headers.
569 $(INSTALL_DATA) 'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
570 $(INSTALL_DATA) 'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
571 $(INSTALL_DATA) 'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
572 $(INSTALL_DATA) 'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
573 $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
574 $(INSTALL_DATA) 'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
575 $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
576 $(INSTALL_DATA) 'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
577 $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
578 $(INSTALL_DATA) 'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
579 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
582 ## ################################################################
585 ## Additional `check' targets for maintainer convenience.
588 ## This is used for maintainer-check. FIXME: should set from
589 ## configure using AC_CHECK_TOOL.
592 ## Try to make sure our library doesn't stomp the namespace.
593 maintainer-check: libgcj.la
594 $(NM) .libs/libgcj.a | grep ' T ' \
595 ## Anything with `4java' is assumed to be from .java source.
597 ## Anything with Jv is ok.
599 ## `terminate' and `unexpected' are part of the runtime.
600 | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
602 ## This rule can be used to see if the headers are more or less
604 header-check: libgcj-$(gcc_version).jar $(nat_headers)
606 for h in $(nat_headers); do \
607 echo "#include \"$$h\"" >> htest.cc; \
609 $(CXXCOMPILE) -fsyntax-only htest.cc
611 ## This rule can be used to see if all the .class files verify
613 class-check: libgcj-$(gcc_version).jar
614 @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
616 echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
617 if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
621 ## This rule checks whether write_entries_to_file works properly.
622 write-entries-to-file-check:
623 @echo Creating list of files to link...
624 @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
626 ## ################################################################
629 ## The `jv-convert' program and code to rebuild the converter header
633 ## it only makes sense to try to rebuild the JIS .h files on native
637 noinst_PROGRAMS = gen-from-JIS
639 gen_from_JIS_SOURCES = \
640 gnu/gcj/convert/gen-from-JIS.c \
641 gnu/gcj/convert/make-trie.c
643 gen_from_JIS_DEPENDENCIES = \
644 gnu/gcj/convert/JIS0201.h \
645 gnu/gcj/convert/JIS0208.h \
646 gnu/gcj/convert/JIS0212.h
648 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
649 ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
651 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
652 ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
654 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
655 ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
657 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
658 # You can get it from
659 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
661 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
662 echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
663 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
664 | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2) /*\3 */|p' \
666 mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
668 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
669 # You can get it from
670 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
672 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
673 echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
674 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
675 | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4) /*\5 */|p' \
677 mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
679 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
680 # You can get it from
681 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
683 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
684 echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
685 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
686 | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
688 mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
695 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
696 ## need this because we are explicitly using libtool to link using the
698 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
699 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
700 jv_convert_LINK = $(GCJLINK)
701 ## We don't explicitly link in the libraries we need; libgcj.la brings
702 ## in all dependencies. We need the -L so that gcj can find libgcj
703 ## with `-lgcj', but it must come first, otherwise the -L flags
704 ## brought in from libgcj.la would cause the install directories to be
705 ## searched before the build-tree ones, and we'd get errors because of
706 ## different libraries with the same SONAME from picky linkers such as
707 ## Solaris'. FIXME: should be _libs on some systems.
708 jv_convert_LDADD = -L$(here)/.libs libgcj.la
709 ## Depend on the spec file to make sure it is up to date before
710 ## linking this program.
711 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
713 gcj_dbtool_SOURCES = \
714 gnu/gcj/tools/gcj_dbtool/Main.java \
715 gnu/gcj/tools/gcj_dbtool/natMain.cc
717 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
718 ## need this because we are explicitly using libtool to link using the
720 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
721 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS)
722 gcj_dbtool_LINK = $(GCJLINK)
723 ## We don't explicitly link in the libraries we need; libgcj.la brings
724 ## in all dependencies. We need the -L so that gcj can find libgcj
725 ## with `-lgcj', but it must come first, otherwise the -L flags
726 ## brought in from libgcj.la would cause the install directories to be
727 ## searched before the build-tree ones, and we'd get errors because of
728 ## different libraries with the same SONAME from picky linkers such as
729 ## Solaris'. FIXME: should be _libs on some systems.
730 gcj_dbtool_LDADD = -L$(here)/.libs libgcj.la
731 ## Depend on the spec file to make sure it is up to date before
732 ## linking this program.
733 gcj_dbtool_DEPENDENCIES = libgcj.la libgcj.spec
736 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
737 ## need this because we are explicitly using libtool to link using the
739 gij_LDFLAGS = -rpath $(toolexeclibdir) -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 ## ################################################################
771 ## This lists all the C++ source files in subdirectories.
773 gnu/classpath/natSystemProperties.cc \
775 gnu/gcj/convert/JIS0208_to_Unicode.cc \
776 gnu/gcj/convert/JIS0212_to_Unicode.cc \
777 gnu/gcj/convert/Unicode_to_JIS.cc \
778 gnu/gcj/convert/natIconv.cc \
779 gnu/gcj/convert/natInput_EUCJIS.cc \
780 gnu/gcj/convert/natInput_SJIS.cc \
781 gnu/gcj/convert/natOutput_EUCJIS.cc \
782 gnu/gcj/convert/natOutput_SJIS.cc \
783 gnu/gcj/io/natSimpleSHSStream.cc \
785 gnu/gcj/runtime/natFinalizerThread.cc \
786 gnu/gcj/runtime/natSharedLibLoader.cc \
787 gnu/gcj/runtime/natStringBuffer.cc \
788 gnu/gcj/util/natDebug.cc \
789 gnu/java/lang/natMainThread.cc \
790 gnu/java/net/natPlainDatagramSocketImpl.cc \
791 gnu/java/net/natPlainSocketImpl.cc \
792 gnu/java/net/protocol/core/natCoreInputStream.cc \
793 gnu/java/nio/natPipeImpl.cc \
794 gnu/java/nio/natSelectorImpl.cc \
795 gnu/java/nio/natNIOServerSocket.cc \
796 gnu/java/nio/channels/natFileChannelImpl.cc \
798 java/io/natObjectInputStream.cc \
799 java/io/natVMObjectStreamClass.cc \
800 java/lang/natCharacter.cc \
801 java/lang/natClass.cc \
802 java/lang/natClassLoader.cc \
803 java/lang/natConcreteProcess.cc \
804 java/lang/natDouble.cc \
805 java/lang/natFloat.cc \
806 java/lang/natMath.cc \
807 java/lang/natObject.cc \
808 java/lang/natRuntime.cc \
809 java/lang/natString.cc \
810 java/lang/natStringBuffer.cc \
811 java/lang/natStringBuilder.cc \
812 java/lang/natSystem.cc \
813 java/lang/natThread.cc \
814 java/lang/natVMClassLoader.cc \
815 java/lang/natVMSecurityManager.cc \
816 java/lang/natVMThrowable.cc \
817 java/lang/ref/natReference.cc \
818 java/lang/reflect/natArray.cc \
819 java/lang/reflect/natConstructor.cc \
820 java/lang/reflect/natField.cc \
821 java/lang/reflect/natMethod.cc \
822 java/net/natVMNetworkInterface.cc \
823 java/net/natInetAddress.cc \
824 java/nio/channels/natChannels.cc \
825 java/nio/natDirectByteBufferImpl.cc \
826 java/text/natCollator.cc \
827 java/util/natResourceBundle.cc \
828 java/util/natVMTimeZone.cc \
829 java/util/logging/natLogger.cc \
830 java/util/zip/natDeflater.cc \
831 java/util/zip/natInflater.cc
833 xlib_nat_source_files = \
834 gnu/gcj/xlib/natClip.cc \
835 gnu/gcj/xlib/natColormap.cc \
836 gnu/gcj/xlib/natDisplay.cc \
837 gnu/gcj/xlib/natDrawable.cc \
838 gnu/gcj/xlib/natFont.cc \
839 gnu/gcj/xlib/natGC.cc \
840 gnu/gcj/xlib/natPixmap.cc \
841 gnu/gcj/xlib/natScreen.cc \
842 gnu/gcj/xlib/natVisual.cc \
843 gnu/gcj/xlib/natWMSizeHints.cc \
844 gnu/gcj/xlib/natWindow.cc \
845 gnu/gcj/xlib/natWindowAttributes.cc \
846 gnu/gcj/xlib/natXAnyEvent.cc \
847 gnu/gcj/xlib/natXButtonEvent.cc \
848 gnu/gcj/xlib/natXColor.cc \
849 gnu/gcj/xlib/natXConfigureEvent.cc \
850 gnu/gcj/xlib/natXException.cc \
851 gnu/gcj/xlib/natXExposeEvent.cc \
852 gnu/gcj/xlib/natXImage.cc \
853 gnu/gcj/xlib/natXUnmapEvent.cc
855 ## ################################################################
858 ## Creating and installing sources.zip
861 ## Create a zip holding all the sources. This can be meaningfully
867 find java gnu javax org -name '*.java' -print | \
868 while read file; do \
869 ## Ugly code to avoid "echo -C". Must separate each entry by a newline
871 echo "x-C" | sed -e 's/^.//'; \
875 ## Now the build tree.
876 find gnu java -name '*.java' -print) | \
877 ## Many of the above circumlocutions are because ZIP will most likely
878 ## be a relative path to fastjar.
879 $(ZIP) -cfM@ $$here/src.zip
881 ## We use a variable for this in case the user wants to override it.
882 sourcesdir = $(jardir)
884 install-src.zip: src.zip
885 $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
888 ## ################################################################
891 ## Dependency tracking madness.
894 ## This is an evil hack to work around an automake limitation. We
895 ## need to ensure that all CNI headers are built, not just the ones
896 ## used internally by libgcj. We can't make the .o files depend on
897 ## nat_headers, because in that case we'll force a complete rebuild of
898 ## the C++ code whenever any .java file is touched. So instead we
899 ## have a dummy rule which is only used once, namely the first time a
900 ## build is done. On subsequent builds, the dependency tracking for
901 ## the .cc compilations will have picked up the .h files, and these
902 ## will be built directly as needed.
905 ## Note that we don't use a real dependency here, since we don't want
906 ## to rebuild all the headers here when the header list changes. If
907 ## we did rebuild here, then any addition of a .java file would cause
908 ## a large number of recompilations.
909 $(MAKE) create-headers
910 @echo > headers.stamp
912 headers_to_make = $(nat_headers)
914 headers_to_make += $(xlib_nat_headers)
917 create-headers: $(headers_to_make)
919 .PHONY: create-headers
921 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
922 $(libgij_la_OBJECTS): headers.stamp
924 ## ################################################################
927 ## This section is for make and multilib madness.
930 # Work around what appears to be a GNU make bug handling MAKEFLAGS
931 # values defined in terms of make variables, as is the case for CC and
932 # friends when we are called from the top level Makefile.
934 "AR_FLAGS=$(AR_FLAGS)" \
935 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
937 "CXXFLAGS=$(CXXFLAGS)" \
938 "CPPFLAGS=$(CPPFLAGS)" \
939 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
940 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
941 "INSTALL=$(INSTALL)" \
942 "INSTALL_DATA=$(INSTALL_DATA)" \
943 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
944 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
945 "GCJFLAGS=$(GCJFLAGS)" \
946 "LDFLAGS=$(LDFLAGS)" \
947 "LIBCFLAGS=$(LIBCFLAGS)" \
948 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
950 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
951 "PICFLAG=$(PICFLAG)" \
952 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
954 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
955 "exec_prefix=$(exec_prefix)" \
956 "infodir=$(infodir)" \
959 "gxx_include_dir=$(gxx_include_dir)" \
963 "LIBCFLAGS=$(LIBCFLAGS)" \
965 "PICFLAG=$(PICFLAG)" \
969 # Subdir rules rely on $(FLAGS_TO_PASS)
970 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
972 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
976 # Multilib support variables.
985 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
986 maintainer-clean-multi
988 all-recursive: all-multi
989 install-recursive: install-multi
990 mostlyclean-recursive: mostlyclean-multi
991 clean-recursive: clean-multi
992 distclean-recursive: distclean-multi
993 maintainer-clean-recursive: maintainer-clean-multi
996 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
998 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1000 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1002 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1004 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1005 maintainer-clean-multi:
1006 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean