OSDN Git Service

PR target/38695
[pf3gnuchains/gcc-fork.git] / libjava / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2
3 AUTOMAKE_OPTIONS = foreign subdir-objects
4
5 ACLOCAL_AMFLAGS = -I . -I .. -I ../config -I libltdl
6
7 # May be used by various substitution variables.
8 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
9
10 SUBDIRS = $(DIRLTDL) gcj include classpath
11 if TESTSUBDIR
12 SUBDIRS += testsuite
13 endif
14
15 # write_entries_to_file - writes each entry in a list
16 # to the specified file.  Entries are written in chunks of
17 # $(write_entries_to_file_split) to accomodate systems with
18 # severe command-line-length limitations.
19 # Parameters:
20 # $(1): variable containing entries to iterate over
21 # $(2): output file
22 write_entries_to_file_split = 50
23 write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
24         $(foreach range, \
25           $(shell i=1; while test $$i -le $(words $(1)); do \
26              echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
27           $(shell echo $(wordlist $(range), \
28                           $(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
29              | tr ' ' '\n' >> $(2)))
30
31 ## ################################################################
32
33 # autoconf2.13's target_alias
34 target_noncanonical = @target_noncanonical@
35
36 # This is required by TL_AC_GXX_INCLUDE_DIR.
37 libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
38
39 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
40
41 ##
42 ## What gets installed, and where.
43 ##
44
45 toolexeclib_LTLIBRARIES = libgcj.la libgij.la libgcj-tools.la
46 toolexecmainlib_DATA = libgcj.spec
47
48 if USE_LIBGCJ_BC
49 toolexeclib_LTLIBRARIES += libgcj_bc.la
50 endif
51
52 if XLIB_AWT
53 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
54 endif
55
56 dbexec_LTLIBRARIES = libjvm.la
57
58 pkgconfigdir = $(libdir)/pkgconfig
59
60 jardir = $(datadir)/java
61 jar_DATA = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
62 if INSTALL_ECJ_JAR
63 jar_DATA += $(ECJ_BUILD_JAR)
64 endif
65
66 if JAVA_HOME_SET
67 JAVA_HOME_DIR = $(JAVA_HOME)
68 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
69 else
70 JAVA_HOME_DIR = $(prefix)
71 BOOT_CLASS_PATH_DIR = $(jardir)/libgcj-$(gcc_version).jar
72 endif
73
74 ## Name of the default .db.
75 db_name = classmap.db
76 ## Compiler specific component of the .db file
77 gcjsubdir = @gcjsubdir@
78 db_pathtail = $(gcjsubdir)/$(db_name)
79
80 ## For now, only on native systems.  FIXME.
81 if NATIVE
82 bin_programs = jv-convert gij grmic grmiregistry gcj-dbtool \
83         gappletviewer gjarsigner gkeytool gjar gcjh gjavah gnative2ascii \
84         gorbd grmid gserialver gtnameserv gc-analyze
85 if CREATE_GJDOC
86 bin_programs += gjdoc
87 endif
88
89 noinst_PROGRAMS =
90 if INSTALL_BINARIES
91 bin_PROGRAMS = $(bin_programs)
92 else
93 noinst_PROGRAMS += $(bin_programs)
94 endif
95
96 ## It is convenient to actually build and install the default database
97 ## when gcj-dbtool is available.
98 dbexec_DATA = $(db_name)
99 endif 
100
101 bin_SCRIPTS = addr2name.awk contrib/rebuild-gcj-db contrib/aot-compile
102
103 if INSTALL_AOT_RPM
104 bin_SCRIPTS += contrib/aot-compile-rpm
105 endif
106
107 if BUILD_ECJ1
108 ## We build ecjx and not ecj1 because in one mode, ecjx will not work
109 ## until after 'make install', and we don't want it to be picked up in
110 ## the build tree by gcj via a -B option.
111 libexecsub_PROGRAMS = ecjx
112 endif
113
114 ## ################################################################
115
116 ##
117 ## Compilers and compilation flags.
118 ##
119
120 ## The compiler with whatever flags we want for both -c and -C
121 ## compiles.
122 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
123
124 extra_ldflags_libjava = @extra_ldflags_libjava@
125 extra_ldflags = @extra_ldflags@
126
127 if ANONVERSCRIPT
128 extra_ldflags_libjava += -Wl,--version-script=$(srcdir)/libgcj.ver
129 endif
130
131 GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \
132           $(LDFLAGS) -o $@
133 GCJ_FOR_ECJX = @GCJ_FOR_ECJX@
134 GCJ_FOR_ECJX_LINK = $(GCJ_FOR_ECJX) -o $@
135 LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS) \
136           $(LDFLAGS) $(extra_ldflags_libjava) $(extra_ldflags) -o $@
137
138 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
139
140 WARNINGS = -Wextra -Wall
141 ## Some systems don't allow `$' in identifiers by default, so we force
142 ## it with -fdollars-in-identifiers.  -Wswitch-enum detects bugs in
143 ## the verifier implementation, and maybe other places.  We need
144 ## _GNU_SOURCE defined for some Linux builds.  It doesn't hurt to
145 ## always define it.  Some systems, including Linux, need
146 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
147 AM_CXXFLAGS = \
148         -fno-rtti \
149         -fnon-call-exceptions \
150         $(THREADCXXFLAGS) \
151         -fdollars-in-identifiers \
152         -Wswitch-enum \
153         -D_FILE_OFFSET_BITS=64 \
154         @LIBGCJ_CXXFLAGS@ \
155         $(WARNINGS) \
156         -D_GNU_SOURCE \
157         -DPREFIX="\"$(prefix)\"" \
158         -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
159         -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
160         -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
161         -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
162         -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
163         -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
164         -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
165         -DECJ_JAR_FILE="\"$(ECJ_JAR)\"" \
166         -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
167         -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
168
169 AM_GCJFLAGS = \
170         @LIBGCJ_JAVAFLAGS@ \
171         -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
172         --encoding=UTF-8 \
173         -Wno-deprecated -fbootstrap-classes
174
175 AM_CFLAGS = @LIBGCJ_CFLAGS@
176 if USING_GCC
177 AM_CFLAGS += $(WARNINGS)
178 endif
179
180 if SUPPRESS_LIBGCJ_BC
181 LIBGCJ_BC_FLAGS =
182 else
183 LIBGCJ_BC_FLAGS = -findirect-dispatch -fno-indirect-classes
184 endif
185
186 if BUILD_LIBGCJ_REDUCED_REFLECTION
187 LIBGCJ_REDUCED_REFLECTION_FLAGS = -freduced-reflection
188 else
189 LIBGCJ_REDUCED_REFLECTION_FLAGS =
190 endif
191
192 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
193 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
194
195 JCFLAGS = -g
196 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
197
198 LIBFFIINCS = @LIBFFIINCS@
199
200 AM_CPPFLAGS = -I$(top_srcdir) \
201         -Iinclude -I$(top_srcdir)/include \
202         -I$(top_srcdir)/classpath/include \
203         -Iclasspath/include \
204         -I$(top_srcdir)/classpath/native/fdlibm \
205         $(GCINCS) $(THREADINCS) $(INCLTDL) \
206         $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
207
208 BOOTCLASSPATH = $(srcdir)/classpath/lib
209
210 ## ################################################################
211
212 ##
213 ## How to build libgcj.a and libgcj.jar
214 ##
215
216 libgij_la_SOURCES = gij.cc
217 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
218 ## See jv_convert_LDADD.
219 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
220 ## The mysterious backslash in the grep pattern is consumed by make.
221 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) \
222         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
223
224 if INTERPRETER
225 libgcj_interpret_source_files = jvmti.cc interpret.cc
226 else
227 libgcj_interpret_source_files = 
228 endif
229
230 libgcj_la_SOURCES = prims.cc jni.cc exception.cc stacktrace.cc \
231         link.cc defineclass.cc verify.cc $(libgcj_interpret_source_files) \
232         $(nat_source_files)
233
234 ## We need to compile at least the interpreter this way.
235 interpret.lo:  AM_CXXFLAGS += -fwrapv
236
237 if USING_BOEHMGC
238 libgcj_la_SOURCES += boehm.cc
239 endif
240
241 if USING_NOGC
242 libgcj_la_SOURCES += nogc.cc
243 endif
244
245 if USING_POSIX_PLATFORM
246 libgcj_la_SOURCES += posix.cc
247 endif
248
249 if USING_WIN32_PLATFORM
250 libgcj_la_SOURCES += win32.cc
251 endif
252
253 if USING_DARWIN_CRT
254 libgcj_la_SOURCES += darwin.cc
255 endif
256
257 if USING_POSIX_THREADS
258 libgcj_la_SOURCES += posix-threads.cc
259 endif
260
261 if USING_WIN32_THREADS
262 libgcj_la_SOURCES += win32-threads.cc
263 endif
264
265 if USING_NO_THREADS
266 libgcj_la_SOURCES += no-threads.cc
267 endif
268
269 ## Objects from C++ sources in subdirs.
270 nat_files = $(nat_source_files:.cc=.lo)
271 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
272
273 # Include THREADLIBS here to ensure that the correct version of
274 # certain linuxthread functions get linked:
275 ## The mysterious backslash in the grep pattern is consumed by make.
276 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(extra_ldflags) $(THREADLIBS) \
277         $(LIBLTDL) $(SYS_ZLIBS) \
278         -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
279         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
280 libgcj_la_LIBADD = \
281         classpath/native/fdlibm/libfdlibm.la \
282         java/lang/Object.lo \
283         java/lang/Class.lo \
284         java/process-$(PLATFORM).lo \
285         $(all_packages_source_files:.list=.lo) \
286         $(bc_objects) \
287         $(propertyo_files) \
288         $(LIBFFI) $(ZLIBS) $(GCLIBS)
289 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
290         java/lang/Object.lo \
291         java/lang/Class.lo \
292         java/process-$(PLATFORM).lo \
293         $(all_packages_source_files:.list=.lo) \
294         $(LIBLTDL) $(libgcj_la_LIBADD)
295 if ANONVERSCRIPT
296 libgcj_la_DEPENDENCIES += $(srcdir)/libgcj.ver
297 endif
298 libgcj_la_LINK = $(LIBLINK)
299
300 ## A hack to make sure the various gcj-related macros, like
301 ## LTGCJCOMPILE, are defined by automake.  This is never actually
302 ## compiled.
303 EXTRA_libgcj_la_SOURCES = java/lang/Object.java
304
305 libgcj_tools_la_SOURCES = classpath/tools/tools.zip
306 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes  -fsource-filename=$(here)/classpath/tools/all-classes.lst
307 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
308  -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
309  $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
310 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
311 libgcj_tools_la_LINK = $(LIBLINK)
312
313 ## libjvm.so
314 libjvm_la_SOURCES = jni-libjvm.cc
315 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
316 ## See jv_convert_LDADD.
317 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
318 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC)
319
320 ## The .db file.  This rule is only used for native builds, so it is
321 ## safe to invoke gcj-dbtool.
322 $(db_name): gcj-dbtool$(EXEEXT)
323 ## In case it exists already.
324         @rm -f $(db_name)
325 ## We don't actually care if it fails -- if it does, just make an
326 ## empty file.  This is simpler than trying to discover when mmap is
327 ## not available.
328         ./gcj-dbtool -n $(db_name) || touch $(db_name)
329
330 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
331 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
332 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
333         libgcj.la libgcj.spec \
334         $(lib_gnu_awt_xlib_la_LIBADD)
335 ## We require libstdc++-v3 to be in the same build tree.
336 lib_gnu_awt_xlib_la_CPPFLAGS = \
337         $(AM_CPPFLAGS) \
338         -I../libstdc++-v3/include \
339         -I../libstdc++-v3/include/$(target_noncanonical) \
340         -I$(srcdir)/../libstdc++-v3/libsupc++
341 ## The mysterious backslash in the grep pattern is consumed by make.
342 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
343         @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
344         -rpath $(toolexeclibdir) \
345         -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
346 lib_gnu_awt_xlib_la_LINK = $(LIBLINK)
347
348 ## Support for libgcj_bc: dummy shared library.
349 ##
350 ## This lets us have one soname in BC objects and another in C++ ABI objects.
351 libgcj_bc_la_SOURCES = libgcj_bc.c
352 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0 \
353         $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
354 libgcj_bc_la_LIBADD = libgcj.la
355 libgcj_bc_la_DEPENDENCIES = libgcj.la
356 libgcj_bc_la_LINK = $(LIBLINK)
357 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
358 ## USE_LIBGCJ_BC shouldn't be set on other targets.
359 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
360         -fPIC -nostdlib
361
362 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
363 ## when testing.
364 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
365         $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
366         $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
367         rm .libs/libgcj_bc.so; \
368         mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
369         $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
370         -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
371         rm .libs/libgcj_bc.so.1; \
372         $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
373
374 ## Note that property_files is defined in sources.am.
375 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
376
377 $(propertyo_files): %.lo: classpath/resource/%
378         $(mkinstalldirs) `dirname $@`; \
379         $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
380
381 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
382 ## Note that this now omits the property files.
383 ## It doesn't matter since we don't use the jar at runtime.
384         here=`pwd`; cd $(srcdir)/classpath/lib; \
385         find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
386         $(JAR) -cfM@ $$here/libgcj-$(gcc_version).jar
387
388 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
389         cp $< $@
390
391 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
392 DISTCLEANFILES = native.dirs
393
394 mostlyclean-local:
395 ## Use libtool rm to remove each libtool object
396         find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
397
398 distclean-local:
399 ## Remove every .d file that was created.
400         find . -name '*.d' -print | xargs rm -f
401
402 # Just remove the objects from C++ sources, for testing the C++ compiler.
403 clean-nat:
404         rm -f $(nat_files) $(xlib_nat_files)
405
406 SUFFIXES = .class .java .h .properties .list
407
408 ## Pass the list of object files to libtool in a temporary file to
409 ## avoid tripping platform command line length limits.
410 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
411         @echo Creating list of files to link...
412         @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
413         $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
414         -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
415
416 ## ################################################################
417
418 ## Compiling a list of java sources to a single .o.
419
420 # Concurrent things use reflection internally.
421 java/util/concurrent.lo \
422 java/util/concurrent/atomic.lo \
423 java/util/concurrent/locks.lo: LIBGCJ_REDUCED_REFLECTION_FLAGS =
424
425 %.lo: %.list
426         $(LTGCJCOMPILE) $(LIBGCJ_REDUCED_REFLECTION_FLAGS) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
427
428 java/lang/Object.lo: classpath/lib/java/lang/Object.class
429         $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
430
431 java/lang/Class.lo: classpath/lib/java/lang/Class.class
432         $(LTGCJCOMPILE) -c -o $@  -fsource-filename=$(srcdir)/$(basename $@).java $<
433
434 ## ################################################################
435
436 ## This pulls in a number of variable and target definitions.
437 include sources.am
438
439 ## ################################################################
440
441 ##
442 ## How to build header files.
443 ##
444
445 ## We have special rules for certain headers.
446 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
447         java/lang/String.h java/lang/reflect/Constructor.h \
448         java/lang/reflect/Field.h java/lang/reflect/Method.h \
449         java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
450
451 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
452         java/io/ObjectInputStream$$GetField.h \
453         java/nio/DirectByteBufferImpl$$ReadWrite.h \
454         java/nio/channels/Pipe$$SinkChannel.h \
455         java/nio/channels/Pipe$$SourceChannel.h \
456         java/lang/VMProcess$ImmediateEOFInputStream.h \
457         java/lang/reflect/Proxy$$ProxyData.h \
458         java/lang/reflect/Proxy$$ProxyType.h \
459         gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
460         gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
461         gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
462         gnu/java/nio/PipeImpl$$SourceChannelImpl.h
463
464 generic_header_files = $(ordinary_header_files) $(inner_nat_headers) \
465         $(xlib_nat_headers)
466
467 MYGCJH = gjavah
468
469 $(generic_header_files): gcjh.stamp
470
471 gcjh.stamp: classpath/lib/compile-classes
472 if JAVA_MAINTAINER_MODE
473         $(MYGCJH) --cni --all $(srcdir)/classpath/lib \
474             --cmdfile=$(srcdir)/headers.txt -d $(srcdir) --force
475 endif
476         echo > gcjh.stamp
477
478 nat_headers = $(ordinary_header_files) $(inner_nat_headers)
479 nat_headers_install = $(ordinary_header_files)
480
481 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
482
483 ## Headers we maintain by hand and which we want to install.
484 extra_headers = java/lang/Object.h java/lang/Class.h
485
486 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
487         @:
488
489 install-exec-hook: install-binPROGRAMS install-toolexeclibLTLIBRARIES \
490         install-libexecsubPROGRAMS
491 ## Support for libgcj_bc: dummy shared library used only at link-time.
492 if USE_LIBGCJ_BC
493 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
494 ## libtool's .la file, this prevents libtool resetting the lib again 
495 ## later.
496         @echo Installing dummy lib libgcj_bc.so.1.0.0; \
497         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
498         mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
499         $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
500         -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
501         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
502         $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
503         rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
504 endif
505 if BUILD_ECJ1
506 ## Undo any prepending of the target prefix and transform
507 ## to the actual host's executable suffix.
508         mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
509 endif BUILD_ECJ1
510
511 ## Install the headers.  It is fairly ugly that we have to do this by
512 ## hand.
513 install_data_local_split = 50
514 install-data-local:
515         $(PRE_INSTALL)
516 ## Install the .pc file.
517         @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
518         file="libgcj-$${pc_version}.pc"; \
519         $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
520         echo "  $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
521         $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
522 ## We use a GNU make trick here so that we don't go over the command
523 ## length limit of some shells.
524         @echo Creating list of headers to install...
525         @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
526         @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
527         while read file; do echo "$$file $$file"; done < tmp-ilist | \
528         sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
529         $(AWK) 'BEGIN { files["."] = "" } \
530           { files[$$2] = files[$$2] " " $$1; \
531             if (++n[$$2] == $(install_data_local_split)) { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
532              END { for (dir in files) print dir, files[dir] }' | \
533         while read dir files; do \
534           xfiles=; for file in $$files; do \
535             if test -f "$$file"; then xfiles="$$xfiles $$file"; \
536             else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
537           test -z "$$xfiles" || { \
538             test "x$$dir" = x. || { \
539               echo "$(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir"; \
540               $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
541             echo " $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir"; \
542             $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
543         done
544         -@rm -f tmp-ilist
545 ## Install inner class headers.
546         $(INSTALL_DATA) $(srcdir)/'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
547         $(INSTALL_DATA) $(srcdir)/'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
548         $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
549         $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
550         $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
551         $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
552         $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
553         $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
554         $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
555         $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
556 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
557 ## Install Python modules for aot-compile.
558         $(mkinstalldirs) $(DESTDIR)$(python_mod_dir); \
559         $(INSTALL_DATA) $(srcdir)/contrib/classfile.py \
560           $(DESTDIR)$(python_mod_dir)/classfile.py; \
561         $(INSTALL_DATA) contrib/aotcompile.py \
562           $(DESTDIR)$(python_mod_dir)/aotcompile.py;
563 if CREATE_JAVA_HOME
564 ## Create sdk style directories
565         $(mkinstalldirs) $(DESTDIR)$(JRE_BIN_DIR)
566         $(mkinstalldirs) $(DESTDIR)$(SDK_BIN_DIR)
567         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)
568         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)
569         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)
570         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS)
571         relative() { \
572           $(PERL) -e 'use File::Spec; \
573             print File::Spec->abs2rel($$ARGV[0], $$ARGV[1])' $$1 $$2; \
574         }; \
575         RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(SDK_BIN_DIR)); \
576         ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
577           $(DESTDIR)$(SDK_BIN_DIR)/java; \
578         ln -sf $$RELATIVE/`echo gjar | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
579           $(DESTDIR)$(SDK_BIN_DIR)/jar; \
580         ln -sf $$RELATIVE/`echo gjdoc | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
581           $(DESTDIR)$(SDK_BIN_DIR)/javadoc; \
582         ln -sf $$RELATIVE/`echo grmic | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
583           $(DESTDIR)$(SDK_BIN_DIR)/rmic; \
584         ln -sf $$RELATIVE/`echo gjavah | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
585           $(DESTDIR)$(SDK_BIN_DIR)/javah; \
586         ln -sf $$RELATIVE/ecj $(DESTDIR)$(SDK_BIN_DIR)/javac; \
587         ln -sf $$RELATIVE/`echo gappletviewer | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
588           $(DESTDIR)$(SDK_BIN_DIR)/appletviewer; \
589         ln -sf $$RELATIVE/`echo gjarsigner | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
590           $(DESTDIR)$(SDK_BIN_DIR)/jarsigner; \
591         ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
592           $(DESTDIR)$(SDK_BIN_DIR)/rmiregistry; \
593         ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
594           $(DESTDIR)$(SDK_BIN_DIR)/keytool; \
595         ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
596           $(DESTDIR)$(SDK_BIN_DIR)/orbd; \
597         ln -sf $$RELATIVE/`echo gnative2ascii | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
598           $(DESTDIR)$(SDK_BIN_DIR)/native2ascii; \
599         ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
600           $(DESTDIR)$(SDK_BIN_DIR)/rmid; \
601         ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
602           $(DESTDIR)$(SDK_BIN_DIR)/tnameserv; \
603         ln -sf $$RELATIVE/`echo gserialver | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
604           $(DESTDIR)$(SDK_BIN_DIR)/serialver; \
605         RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(JRE_BIN_DIR)); \
606         ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
607           $(DESTDIR)$(JRE_BIN_DIR)/rmiregistry; \
608         ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
609           $(DESTDIR)$(JRE_BIN_DIR)/keytool; \
610         ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
611           $(DESTDIR)$(JRE_BIN_DIR)/java; \
612         ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
613           $(DESTDIR)$(JRE_BIN_DIR)/orbd; \
614         ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
615           $(DESTDIR)$(JRE_BIN_DIR)/rmid; \
616         ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
617           $(DESTDIR)$(JRE_BIN_DIR)/tnameserv; \
618         $(mkinstalldirs) $(DESTDIR)$(JVM_JAR_DIR); \
619         version=$(JAVA_VERSION).$(BUILD_VERSION); \
620         working_dir=`pwd`; \
621         cd $(DESTDIR)$(JVM_JAR_DIR); \
622           RELATIVE=$$(relative $(DESTDIR)$(JRE_LIB_DIR) \
623             $(DESTDIR)$(JVM_JAR_DIR)); \
624           for jarname in jaas jce jdbc-stdext jndi jndi-cos jndi-dns \
625             jndi-ldap jndi-rmi jsse sasl; \
626           do \
627             ln -sf $$RELATIVE/rt.jar $$jarname-$$version.jar; \
628           done; \
629           RELATIVE=$$(relative $(DESTDIR)$(jardir) \
630             $(DESTDIR)$(JVM_JAR_DIR)); \
631           for jar in *-$$version.jar; \
632           do \
633             ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|-$(JAVA_VERSION).jar|g"); \
634             ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|.jar|g"); \
635           done; \
636         cd $$working_dir; \
637         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/security; \
638         RELATIVE=$$(relative $(DESTDIR)$(libdir)/security \
639           $(DESTDIR)$(JRE_LIB_DIR)/security); \
640         cd $(DESTDIR)$(JRE_LIB_DIR)/security; \
641           ln -sf $$RELATIVE/classpath.security java.security; \
642         cd $$working_dir; \
643         $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/linux; \
644         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client; \
645         $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server; \
646         $(mkinstalldirs) $(DESTDIR)$(SDK_LIB_DIR); \
647         RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
648           $(DESTDIR)$(JRE_LIB_DIR)); \
649         ln -sf $$RELATIVE/libgcj-$(gcc_version).jar \
650           $(DESTDIR)$(JRE_LIB_DIR)/rt.jar; \
651         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
652           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)); \
653         ln -sf $$RELATIVE/libjawt.so \
654           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/libjawt.so; \
655         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
656           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client); \
657         ln -sf $$RELATIVE/libjvm.so \
658           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client/libjvm.so; \
659         RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
660           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server); \
661         ln -sf $$RELATIVE/libjvm.so \
662           $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server/libjvm.so;     \
663         RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
664           $(DESTDIR)$(SDK_LIB_DIR)); \
665         ln -sf $$RELATIVE/libgcj-tools-$(gcc_version).jar \
666           $(DESTDIR)$(SDK_LIB_DIR)/tools.jar; \
667         for headername in jawt jni; do \
668           DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/gcj \
669             -print-file-name=include/$$headername.h)); \
670           RELATIVE=$$(relative $$DIRECTORY \
671             $(DESTDIR)$(SDK_INCLUDE_DIR)); \
672           ln -sf $$RELATIVE/$$headername.h \
673             $(DESTDIR)$(SDK_INCLUDE_DIR)/$$headername.h; \
674         done; \
675         for headername in jawt_md jni_md; do \
676           DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/gcj \
677             -print-file-name=include/$$headername.h)); \
678           RELATIVE=$$(relative $$DIRECTORY \
679             $(DESTDIR)$(SDK_INCLUDE_DIR)/linux); \
680           ln -sf $$RELATIVE/$$headername.h \
681             $(DESTDIR)$(SDK_INCLUDE_DIR)/linux/$$headername.h; \
682         done; \
683         RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
684           $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR)); \
685         ln -sf $$RELATIVE/src-$(gcc_version).zip \
686           $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR)/src.zip;
687 endif
688
689 ## ################################################################
690
691 ##
692 ## Additional `check' targets for maintainer convenience.
693 ##
694
695 ## This is used for maintainer-check.  FIXME: should set from
696 ## configure using AC_CHECK_TOOL.
697 NM = nm
698
699 ## Try to make sure our library doesn't stomp the namespace.
700 maintainer-check: libgcj.la
701         $(NM) .libs/libgcj.a | grep ' T ' \
702 ## Anything with `4java' is assumed to be from .java source.
703           | grep -v '4java' \
704 ## Anything with Jv is ok.
705           | grep -v 'Jv' \
706 ## `terminate' and `unexpected' are part of the runtime.
707           | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
708
709 ## This rule can be used to see if the headers are more or less
710 ## correct.
711 header-check: libgcj-$(gcc_version).jar $(nat_headers)
712         rm -f htest.cc; \
713         for h in $(nat_headers); do \
714           echo "#include \"$$h\"" >> htest.cc; \
715         done; \
716         $(CXXCOMPILE) -fsyntax-only htest.cc
717
718 ## This rule can be used to see if all the .class files verify
719 ## correctly.
720 class-check: libgcj-$(gcc_version).jar
721         @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
722         while read f; do \
723           echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
724           if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
725           :; else ok=1; fi; \
726         done; exit $$ok
727
728 ## This rule checks whether write_entries_to_file works properly.
729 write-entries-to-file-check:
730         @echo Creating list of files to link...
731         @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
732
733 ## ################################################################
734
735 ##
736 ## The `jv-convert' program and code to rebuild the converter header
737 ## files.
738 ##
739
740 ## it only makes sense to try to rebuild the JIS .h files on native
741 ## systems.
742 if NATIVE
743 if MAINTAINER_MODE
744 noinst_PROGRAMS += gen-from-JIS
745
746 gen_from_JIS_SOURCES = \
747         gnu/gcj/convert/gen-from-JIS.c \
748         gnu/gcj/convert/make-trie.c \
749         gnu/gcj/convert/make-trie.h
750
751 gen_from_JIS_DEPENDENCIES = \
752         gnu/gcj/convert/JIS0201.h \
753         gnu/gcj/convert/JIS0208.h \
754         gnu/gcj/convert/JIS0212.h
755
756 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
757          ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
758
759 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
760          ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
761
762 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
763          ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
764
765 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
766 # You can get it from
767 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
768
769 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
770         echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
771         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
772         | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2)  /*\3 */|p' \
773         >> tmp-0201; \
774         mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
775
776 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
777 # You can get it from
778 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
779
780 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
781         echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
782         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
783         | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4)  /*\5 */|p' \
784         >> tmp-0208; \
785         mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
786
787 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
788 # You can get it from
789 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
790
791 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
792         echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
793         tr  -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
794         | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3)  /*\4 */|p' \
795         >> tmp-0212; \
796         mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
797
798 endif
799 endif 
800
801
802 jv_convert_SOURCES =
803 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
804 ## need this because we are explicitly using libtool to link using the
805 ## `.la' file.
806 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
807         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
808 jv_convert_LINK = $(GCJLINK)
809 ## We don't explicitly link in the libraries we need; libgcj.la brings
810 ## in all dependencies.  We need the -L so that gcj can find libgcj
811 ## with `-lgcj', but it must come first, otherwise the -L flags
812 ## brought in from libgcj.la would cause the install directories to be
813 ## searched before the build-tree ones, and we'd get errors because of
814 ## different libraries with the same SONAME from picky linkers such as
815 ## Solaris'.  FIXME: should be _libs on some systems.
816 jv_convert_LDADD = -L$(here)/.libs libgcj.la
817 ## Depend on the spec file to make sure it is up to date before
818 ## linking this program.
819 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
820
821 gcj_dbtool_SOURCES = \
822 gnu/gcj/tools/gcj_dbtool/natMain.cc
823
824 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
825 ## need this because we are explicitly using libtool to link using the
826 ## `.la' file.
827 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
828         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
829 gcj_dbtool_LINK = $(GCJLINK)
830 ## We don't explicitly link in the libraries we need; libgcj.la brings
831 ## in all dependencies.  We need the -L so that gcj can find libgcj
832 ## with `-lgcj', but it must come first, otherwise the -L flags
833 ## brought in from libgcj.la would cause the install directories to be
834 ## searched before the build-tree ones, and we'd get errors because of
835 ## different libraries with the same SONAME from picky linkers such as
836 ## Solaris'.  FIXME: should be _libs on some systems.
837 gcj_dbtool_LDADD = gnu/gcj/tools/gcj_dbtool.lo -L$(here)/.libs libgcj.la
838 ## Depend on the spec file to make sure it is up to date before
839 ## linking this program.
840 gcj_dbtool_DEPENDENCIES = gnu/gcj/tools/gcj_dbtool.lo libgcj.la libgcj.spec
841
842 gc_analyze_SOURCES =
843
844 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
845 ## need this because we are explicitly using libtool to link using the
846 ## `.la' file.
847 gc_analyze_LDFLAGS = --main=gnu.gcj.tools.gc_analyze.MemoryAnalyze \
848         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
849 gc_analyze_LINK = $(GCJLINK)
850 ## See jv_convert_LDADD.
851 gc_analyze_LDADD = -L$(here)/.libs libgcj-tools.la libgcj.la
852 ## Depend on the spec file to make sure it is up to date before
853 ## linking this program.
854 gc_analyze_DEPENDENCIES = libgcj-tools.la libgcj.la libgcj.spec
855
856 gij_SOURCES = 
857 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'.  We
858 ## need this because we are explicitly using libtool to link using the
859 ## `.la' file.
860 gij_LDFLAGS = -rpath $(dbexecdir) -rpath $(toolexeclibdir) \
861         -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags) \
862         $(extra_gij_ldflags) 
863 gij_LINK = $(GCJLINK)
864 ## See jv_convert_LDADD.
865 gij_LDADD = -L$(here)/.libs libgij.la
866 ## Depend on the spec file to make sure it is up to date before
867 ## linking this program.
868 gij_DEPENDENCIES = libgij.la
869
870 ## Build an ecjx from a .jar.
871 ecjx_SOURCES = ecjx.cc
872 ## We use the BC ABI here so that we don't need to compile ecj.jar.
873 ## Hopefully the user has compiled it into his system .db.
874 ## However, even if not it will run reasonably quickly.
875
876 ECJX_BASE_FLAGS = -findirect-dispatch \
877         --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
878
879 if NATIVE
880
881 ecjx_LINK = $(GCJLINK)
882
883 if ENABLE_SHARED
884 ## Use ecj.jar at runtime.
885 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
886 else !ENABLE_SHARED
887 ## Use ecj.jar at compile time.
888 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
889 endif !ENABLE_SHARED
890
891 ecjx_LDADD = -L$(here)/.libs
892 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
893 if USE_LIBGCJ_BC
894 ecjx_DEPENDENCIES += libgcj_bc.la
895 else
896 ecjx_LDADD += libgcj.la
897 endif
898
899 else !NATIVE
900
901 ecjx_LINK = $(GCJ_FOR_ECJX_LINK)
902 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
903 ecjx_LDADD = 
904 ecjx_DEPENDENCIES = 
905
906 endif !NATIVE
907
908 ## This is a dummy definition.
909 gappletviewer_SOURCES =
910 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
911         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
912 gappletviewer_LINK = $(GCJLINK)
913 ## See jv_convert_LDADD.
914 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
915 gappletviewer_DEPENDENCIES = libgcj-tools.la
916
917 ## This is a dummy definition.
918 gjarsigner_SOURCES =
919 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
920         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
921 gjarsigner_LINK = $(GCJLINK)
922 ## See jv_convert_LDADD.
923 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
924 gjarsigner_DEPENDENCIES = libgcj-tools.la
925
926 ## This is a dummy definition.
927 gkeytool_SOURCES =
928 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
929         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
930 gkeytool_LINK = $(GCJLINK)
931 ## See jv_convert_LDADD.
932 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
933 gkeytool_DEPENDENCIES = libgcj-tools.la
934
935 ## This is a dummy definition.
936 gjar_SOURCES =
937 gjar_LDFLAGS = --main=gnu.classpath.tools.jar.Main \
938         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
939 gjar_LINK = $(GCJLINK)
940 ## See jv_convert_LDADD.
941 gjar_LDADD = -L$(here)/.libs libgcj-tools.la
942 gjar_DEPENDENCIES = libgcj-tools.la
943
944 ## This is a dummy definition.
945 gjavah_SOURCES =
946 gjavah_LDFLAGS = --main=gnu.classpath.tools.javah.Main \
947         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
948 gjavah_LINK = $(GCJLINK)
949 ## See jv_convert_LDADD.
950 gjavah_LDADD = -L$(here)/.libs libgcj-tools.la
951 gjavah_DEPENDENCIES = libgcj-tools.la
952
953 ## This is a dummy definition.
954 gcjh_SOURCES =
955 gcjh_LDFLAGS = --main=gnu.classpath.tools.javah.GcjhMain \
956         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
957 gcjh_LINK = $(GCJLINK)
958 ## See jv_convert_LDADD.
959 gcjh_LDADD = -L$(here)/.libs libgcj-tools.la
960 gcjh_DEPENDENCIES = libgcj-tools.la
961
962 ## This is a dummy definition.
963 gnative2ascii_SOURCES =
964 gnative2ascii_LDFLAGS = --main=gnu.classpath.tools.native2ascii.Native2ASCII \
965         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
966 gnative2ascii_LINK = $(GCJLINK)
967 ## See jv_convert_LDADD.
968 gnative2ascii_LDADD = -L$(here)/.libs libgcj-tools.la
969 gnative2ascii_DEPENDENCIES = libgcj-tools.la
970
971 ## This is a dummy definition.
972 gorbd_SOURCES =
973 gorbd_LDFLAGS = --main=gnu.classpath.tools.orbd.Main \
974         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
975 gorbd_LINK = $(GCJLINK)
976 ## See jv_convert_LDADD.
977 gorbd_LDADD = -L$(here)/.libs libgcj-tools.la
978 gorbd_DEPENDENCIES = libgcj-tools.la
979
980 ## This is a dummy definition.
981 grmid_SOURCES =
982 grmid_LDFLAGS = --main=gnu.classpath.tools.rmid.Main \
983         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
984 grmid_LINK = $(GCJLINK)
985 ## See jv_convert_LDADD.
986 grmid_LDADD = -L$(here)/.libs libgcj-tools.la
987 grmid_DEPENDENCIES = libgcj-tools.la
988
989 ## This is a dummy definition.
990 gserialver_SOURCES =
991 gserialver_LDFLAGS = --main=gnu.classpath.tools.serialver.SerialVer \
992         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
993 gserialver_LINK = $(GCJLINK)
994 ## See jv_convert_LDADD.
995 gserialver_LDADD = -L$(here)/.libs libgcj-tools.la
996 gserialver_DEPENDENCIES = libgcj-tools.la
997
998 ## This is a dummy definition.
999 gtnameserv_SOURCES =
1000 gtnameserv_LDFLAGS = --main=gnu.classpath.tools.tnameserv.Main \
1001         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1002 gtnameserv_LINK = $(GCJLINK)
1003 ## See jv_convert_LDADD.
1004 gtnameserv_LDADD = -L$(here)/.libs libgcj-tools.la
1005 gtnameserv_DEPENDENCIES = libgcj-tools.la
1006
1007 ## This is a dummy definition.
1008 grmic_SOURCES =
1009 grmic_LDFLAGS = --main=gnu.classpath.tools.rmic.Main \
1010         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1011 grmic_LINK = $(GCJLINK)
1012 ## See jv_convert_LDADD.
1013 grmic_LDADD = -L$(here)/.libs libgcj-tools.la
1014 grmic_DEPENDENCIES = libgcj-tools.la
1015
1016 ## This is a dummy definition.
1017 grmiregistry_SOURCES =
1018 grmiregistry_LDFLAGS = --main=gnu.classpath.tools.rmiregistry.Main \
1019         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1020 grmiregistry_LINK = $(GCJLINK)
1021 ## See jv_convert_LDADD.
1022 grmiregistry_LDADD = -L$(here)/.libs libgcj-tools.la
1023 grmiregistry_DEPENDENCIES = libgcj-tools.la
1024
1025 ## This is a dummy definition.
1026 gjdoc_SOURCES =
1027 gjdoc_LDFLAGS = --main=gnu.classpath.tools.gjdoc.Main \
1028         -Djava.class.path=$(ANTLR_JAR) \
1029         -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1030 gjdoc_LINK = $(GCJLINK)
1031 ## See jv_convert_LDADD.
1032 gjdoc_LDADD = -L$(here)/.libs libgcj-tools.la
1033 gjdoc_DEPENDENCIES = libgcj-tools.la
1034
1035 ## ################################################################
1036 if INTERPRETER
1037 nat_jdwp_source_files = \
1038 gnu/classpath/jdwp/natVMFrame.cc \
1039 gnu/classpath/jdwp/natVMMethod.cc \
1040 gnu/classpath/jdwp/natVMVirtualMachine.cc
1041
1042 nat_jvmti_source_files = \
1043 gnu/gcj/jvmti/natBreakpoint.cc \
1044 gnu/gcj/jvmti/natNormalBreakpoint.cc
1045 else
1046 nat_jdwp_source_files = 
1047 nat_jvmti_source_files =
1048 endif
1049 ## This lists all the C++ source files in subdirectories.
1050 nat_source_files = \
1051 $(nat_jdwp_source_files) \
1052 gnu/classpath/natConfiguration.cc \
1053 gnu/classpath/natSystemProperties.cc \
1054 gnu/classpath/natVMStackWalker.cc \
1055 gnu/gcj/natCore.cc \
1056 gnu/gcj/convert/JIS0208_to_Unicode.cc \
1057 gnu/gcj/convert/JIS0212_to_Unicode.cc \
1058 gnu/gcj/convert/Unicode_to_JIS.cc \
1059 gnu/gcj/convert/natIconv.cc \
1060 gnu/gcj/convert/natInput_EUCJIS.cc \
1061 gnu/gcj/convert/natInput_SJIS.cc \
1062 gnu/gcj/convert/natOutput_EUCJIS.cc \
1063 gnu/gcj/convert/natOutput_SJIS.cc \
1064 gnu/gcj/io/natSimpleSHSStream.cc \
1065 gnu/gcj/io/shs.cc \
1066 $(nat_jvmti_source_files) \
1067 gnu/gcj/runtime/natFinalizerThread.cc \
1068 gnu/gcj/runtime/natSharedLibLoader.cc \
1069 gnu/gcj/runtime/natSystemClassLoader.cc \
1070 gnu/gcj/runtime/natStringBuffer.cc \
1071 gnu/gcj/util/natDebug.cc \
1072 gnu/gcj/util/natGCInfo.cc \
1073 gnu/java/lang/natMainThread.cc \
1074 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc \
1075 gnu/java/lang/management/natVMCompilationMXBeanImpl.cc \
1076 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc \
1077 gnu/java/lang/management/natVMMemoryMXBeanImpl.cc \
1078 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc \
1079 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc \
1080 gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.cc \
1081 gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc \
1082 gnu/java/lang/management/natVMThreadMXBeanImpl.cc \
1083 gnu/java/net/natPlainDatagramSocketImpl.cc \
1084 gnu/java/net/natPlainSocketImpl.cc \
1085 gnu/java/net/protocol/core/natCoreInputStream.cc \
1086 gnu/java/nio/natVMPipe.cc \
1087 gnu/java/nio/natVMSelector.cc \
1088 gnu/java/nio/natNIOServerSocket.cc \
1089 gnu/java/nio/natVMChannel.cc \
1090 gnu/java/nio/channels/natFileChannelImpl.cc \
1091 java/io/natFile.cc \
1092 java/io/natVMObjectInputStream.cc \
1093 java/io/natVMObjectStreamClass.cc \
1094 java/lang/natCharacter.cc \
1095 java/lang/natClass.cc \
1096 java/lang/natClassLoader.cc \
1097 java/lang/natConcreteProcess.cc \
1098 java/lang/natVMDouble.cc \
1099 java/lang/natVMFloat.cc \
1100 java/lang/natMath.cc \
1101 java/lang/natObject.cc \
1102 java/lang/natRuntime.cc \
1103 java/lang/natString.cc \
1104 java/lang/natAbstractStringBuffer.cc \
1105 java/lang/natSystem.cc \
1106 java/lang/natThread.cc \
1107 java/lang/natThreadLocal.cc \
1108 java/lang/natVMClassLoader.cc \
1109 java/lang/natVMProcess.cc \
1110 java/lang/natVMThrowable.cc \
1111 java/lang/ref/natReference.cc \
1112 java/lang/reflect/natArray.cc \
1113 java/lang/reflect/natConstructor.cc \
1114 java/lang/reflect/natField.cc \
1115 java/lang/reflect/natMethod.cc \
1116 java/lang/reflect/natVMProxy.cc \
1117 java/net/natVMInetAddress.cc \
1118 java/net/natVMNetworkInterface.cc \
1119 java/net/natVMURLConnection.cc \
1120 java/nio/channels/natVMChannels.cc \
1121 java/nio/natVMDirectByteBufferImpl.cc \
1122 java/security/natVMAccessController.cc \
1123 java/security/natVMAccessControlState.cc \
1124 java/text/natCollator.cc \
1125 java/util/natVMTimeZone.cc \
1126 java/util/concurrent/atomic/natAtomicLong.cc \
1127 java/util/logging/natLogger.cc \
1128 java/util/zip/natDeflater.cc \
1129 java/util/zip/natInflater.cc \
1130 sun/misc/natUnsafe.cc
1131
1132 xlib_nat_source_files = \
1133 gnu/gcj/xlib/natClip.cc \
1134 gnu/gcj/xlib/natColormap.cc \
1135 gnu/gcj/xlib/natDisplay.cc \
1136 gnu/gcj/xlib/natDrawable.cc \
1137 gnu/gcj/xlib/natFont.cc \
1138 gnu/gcj/xlib/natGC.cc \
1139 gnu/gcj/xlib/natPixmap.cc \
1140 gnu/gcj/xlib/natScreen.cc \
1141 gnu/gcj/xlib/natVisual.cc \
1142 gnu/gcj/xlib/natWMSizeHints.cc \
1143 gnu/gcj/xlib/natWindow.cc \
1144 gnu/gcj/xlib/natWindowAttributes.cc \
1145 gnu/gcj/xlib/natXAnyEvent.cc \
1146 gnu/gcj/xlib/natXButtonEvent.cc \
1147 gnu/gcj/xlib/natXColor.cc \
1148 gnu/gcj/xlib/natXConfigureEvent.cc \
1149 gnu/gcj/xlib/natXException.cc \
1150 gnu/gcj/xlib/natXExposeEvent.cc \
1151 gnu/gcj/xlib/natXImage.cc \
1152 gnu/gcj/xlib/natXUnmapEvent.cc
1153
1154 ## ################################################################
1155
1156 ##
1157 ## Creating and installing sources.zip
1158 ##
1159
1160 ## Create a zip holding all the sources.  This can be meaningfully
1161 ## used in Eclipse.
1162 src.zip:
1163         -rm -f src.zip
1164         here=`pwd`; \
1165         ( \
1166           ( cd $(srcdir)/classpath; \
1167           find java gnu javax org sun -name '*.java' -print | \
1168           while read file; do \
1169 ## Ugly code to avoid "echo -C".  Must separate each entry by a newline
1170 ## Gross but easy.
1171             echo "x-C" | sed -e 's/^.//'; \
1172             echo $(srcdir)/classpath; \
1173             echo $$file; \
1174           done ); \
1175           ( cd $(srcdir)/classpath/external/sax; \
1176           find org -name '*.java' -print | \
1177           while read file; do \
1178             echo "x-C" | sed -e 's/^.//'; \
1179             echo $(srcdir)/classpath/external/sax; \
1180             echo $$file; \
1181           done ); \
1182           ( cd $(srcdir)/classpath/external/relaxngDatatype; \
1183           find org -name '*.java' -print | \
1184           while read file; do \
1185             echo "x-C" | sed -e 's/^.//'; \
1186             echo $(srcdir)/classpath/external/relaxngDatatype; \
1187             echo $$file; \
1188           done ); \
1189           ( cd $(srcdir)/classpath/external/w3c_dom; \
1190           find org -name '*.java' -print | \
1191           while read file; do \
1192             echo "x-C" | sed -e 's/^.//'; \
1193             echo $(srcdir)/classpath/external/w3c_dom; \
1194             echo $$file; \
1195           done ); \
1196 ## Now the build tree.
1197           ( cd classpath; \
1198             find gnu java -name '*.java' -print | \
1199             while read file; do \
1200             echo "x-C" | sed -e 's/^.//'; \
1201             echo `pwd`; \
1202             echo $$file; \
1203           done ); \
1204         ) | \
1205 ## Many of the above circumlocutions were because ZIP used to be a
1206 ## relative path to fastjar.  It didn't seem worthwhile to change the
1207 ## code when we moved to an external jar.
1208         $(JAR) -cfM@ $$here/src.zip
1209 ## Override GNU Classpath sources with libgcj replacements.
1210         here=`pwd`; \
1211         ( \
1212           ( cd $(srcdir); \
1213           find gnu java -name '*.java' -print | \
1214           while read file; do \
1215             echo "x-C" | sed -e 's/^.//'; \
1216             echo $(srcdir); \
1217             echo $$file; \
1218           done ); \
1219         ) | \
1220         $(JAR) -ufM@ $$here/src.zip
1221
1222 ## We use a variable for this in case the user wants to override it.
1223 sourcesdir = $(jardir)
1224
1225 install-src.zip: src.zip
1226         $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
1227
1228
1229 ## ################################################################
1230
1231 ##
1232 ## Dependency tracking madness.
1233 ##
1234
1235 ## This is an evil hack to work around an automake limitation.  We
1236 ## need to ensure that all CNI headers are built, not just the ones
1237 ## used internally by libgcj. We can't make the .o files depend on
1238 ## nat_headers, because in that case we'll force a complete rebuild of
1239 ## the C++ code whenever any .java file is touched.  So instead we
1240 ## have a dummy rule which is only used once, namely the first time a
1241 ## build is done.  On subsequent builds, the dependency tracking for
1242 ## the .cc compilations will have picked up the .h files, and these
1243 ## will be built directly as needed.
1244
1245 headers.stamp:
1246 ## Note that we don't use a real dependency here, since we don't want
1247 ## to rebuild all the headers here when the header list changes.  If
1248 ## we did rebuild here, then any addition of a .java file would cause
1249 ## a large number of recompilations.
1250         $(MAKE) create-headers
1251         @echo > headers.stamp
1252
1253 headers_to_make = $(nat_headers)
1254 if XLIB_AWT
1255 headers_to_make += $(xlib_nat_headers)
1256 endif
1257
1258 create-headers: $(headers_to_make)
1259
1260 .PHONY: create-headers
1261
1262 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
1263 $(libgij_la_OBJECTS): headers.stamp
1264 $(libjvm_la_OBJECTS): headers.stamp
1265
1266 ## ################################################################
1267
1268 ##
1269 ## This section is for make and multilib madness.
1270 ##
1271
1272 # Work around what appears to be a GNU make bug handling MAKEFLAGS
1273 # values defined in terms of make variables, as is the case for CC and
1274 # friends when we are called from the top level Makefile.
1275 AM_MAKEFLAGS = \
1276         "AR_FLAGS=$(AR_FLAGS)" \
1277         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
1278         "CFLAGS=$(CFLAGS)" \
1279         "CXXFLAGS=$(CXXFLAGS)" \
1280         "CPPFLAGS=$(CPPFLAGS)" \
1281         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1282         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1283         "INSTALL=$(INSTALL)" \
1284         "INSTALL_DATA=$(INSTALL_DATA)" \
1285         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1286         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1287         "GCJFLAGS=$(GCJFLAGS)" \
1288         "LDFLAGS=$(LDFLAGS)" \
1289         "LIBCFLAGS=$(LIBCFLAGS)" \
1290         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1291         "MAKE=$(MAKE)" \
1292         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1293         "PICFLAG=$(PICFLAG)" \
1294         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1295         "SHELL=$(SHELL)" \
1296         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1297         "exec_prefix=$(exec_prefix)" \
1298         "infodir=$(infodir)" \
1299         "libdir=$(libdir)" \
1300         "mandir=$(mandir)" \
1301         "prefix=$(prefix)" \
1302         "gxx_include_dir=$(gxx_include_dir)" \
1303         "AR=$(AR)" \
1304         "AS=$(AS)" \
1305         "LD=$(LD)" \
1306         "LIBCFLAGS=$(LIBCFLAGS)" \
1307         "NM=$(NM)" \
1308         "PICFLAG=$(PICFLAG)" \
1309         "RANLIB=$(RANLIB)" \
1310         "DESTDIR=$(DESTDIR)" \
1311         "JAR=$(JAR)"
1312
1313 # Subdir rules rely on $(FLAGS_TO_PASS)
1314 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1315
1316 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1317
1318 MAKEOVERRIDES=
1319
1320 # No install-html or install-pdf support in automake yet
1321 .PHONY: install-html install-pdf
1322 install-html:
1323 install-pdf:
1324
1325 # Multilib support variables.
1326 MULTISRCTOP =
1327 MULTIBUILDTOP =
1328 MULTIDIRS =
1329 MULTISUBDIR =
1330 MULTIDO = true
1331 MULTICLEAN = true
1332
1333 # Multilib support.
1334 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1335         maintainer-clean-multi
1336
1337 all-recursive: all-multi
1338 install-recursive: install-multi
1339 mostlyclean-recursive: mostlyclean-multi
1340 clean-recursive: clean-multi
1341 distclean-recursive: distclean-multi
1342 maintainer-clean-recursive: maintainer-clean-multi
1343
1344 all-multi:
1345         : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1346 install-multi:
1347         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1348 mostlyclean-multi:
1349         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1350 clean-multi:
1351         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1352 distclean-multi:
1353         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1354 maintainer-clean-multi:
1355         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean