1 ## Process this file with automake to produce Makefile.in.
3 AUTOMAKE_OPTIONS = foreign subdir-objects
5 ACLOCAL_AMFLAGS = -I . -I .. -I ../config -I libltdl
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. Entries are written in chunks of
17 # $(write_entries_to_file_split) to accomodate systems with
18 # severe command-line-length limitations.
20 # $(1): variable containing entries to iterate over
22 write_entries_to_file_split = 50
23 write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
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)))
31 ## ################################################################
33 # autoconf2.13's target_alias
34 target_noncanonical = @target_noncanonical@
36 # This is required by TL_AC_GXX_INCLUDE_DIR.
37 libsubdir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
39 libexecsubdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
42 ## What gets installed, and where.
45 toolexeclib_LTLIBRARIES = libgcj.la libgij.la libgcj-tools.la
46 toolexecmainlib_DATA = libgcj.spec
49 ## These files form a closed dependency group at the lower
50 ## edge of libjava's dependency graph, so can be separated out.
51 ## For details of how the list was generated, see the GCC wiki:
53 ## http://gcc.gnu.org/wiki/Internal_dependencies_of_libgcj
55 LOWER_PACKAGE_FILES_LO = \
58 gnu-java-awt-dnd-peer-gtk.lo \
59 gnu-java-awt-peer-gtk.lo \
60 gnu-java-awt-peer-swing.lo \
61 gnu-java-lang-management.lo \
62 gnu-javax-management.lo \
64 gnu-javax-sound-midi.lo \
70 gnu-xml-transform.lo \
72 gnu-xml-validation.lo \
74 java-lang-management.lo \
79 org-omg-CORBA_2_3.lo \
80 org-omg-CosNaming.lo \
82 org-omg-DynamicAny.lo \
84 org-omg-Messaging.lo \
85 org-omg-PortableInterceptor.lo \
86 org-omg-PortableServer.lo \
87 org-omg-SendingContext.lo \
91 META-INF/services/java.util.prefs.PreferencesFactory.in.lo \
92 META-INF/services/java.util.prefs.PreferencesFactory.lo \
93 META-INF/services/javax.sound.midi.spi.MidiDeviceProvider.lo \
94 META-INF/services/javax.sound.midi.spi.MidiFileReader.lo \
95 META-INF/services/javax.sound.midi.spi.MidiFileWriter.lo \
96 META-INF/services/javax.sound.sampled.spi.AudioFileReader.lo \
97 classpath/native/jni/classpath/jcl.lo \
98 classpath/native/jni/classpath/jnilink.lo \
99 classpath/native/jni/java-math/gnu_java_math_GMP.lo \
100 classpath/tools/libgcj_tools_la-tools.lo \
104 gnu/gcj/io/natSimpleSHSStream.lo \
106 gnu/gcj/tools/gcj_dbtool.lo \
107 gnu/gcj/util/natDebug.lo \
108 gnu/gcj/util/natGCInfo.lo \
109 gnu/java/awt/dnd.lo \
110 gnu/java/awt/font.lo \
111 gnu/java/awt/image.lo \
112 gnu/java/awt/print.lo \
113 gnu/java/awt/font/autofit.lo \
114 gnu/java/awt/font/opentype.lo \
115 gnu/java/awt/font/opentype/truetype.lo \
116 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.lo \
117 gnu/java/lang/management/natVMCompilationMXBeanImpl.lo \
118 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.lo \
119 gnu/java/lang/management/natVMMemoryMXBeanImpl.lo \
120 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.lo \
121 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.lo \
122 gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.lo \
123 gnu/java/lang/management/natVMRuntimeMXBeanImpl.lo \
124 gnu/java/lang/management/natVMThreadMXBeanImpl.lo \
125 gnu/java/net/local.lo \
126 gnu/java/net/protocol/ftp.lo \
127 gnu/java/net/protocol/gcjlib.lo \
128 gnu/java/net/protocol/https.lo \
129 gnu/javax/imageio.lo \
132 gnu/javax/activation/viewers.lo \
133 gnu/javax/imageio/bmp.lo \
134 gnu/javax/imageio/gif.lo \
135 gnu/javax/imageio/jpeg.lo \
136 gnu/javax/imageio/png.lo \
137 gnu/javax/naming/giop.lo \
138 gnu/javax/naming/ictxImpl/trans.lo \
139 gnu/javax/naming/jndi/url/corbaname.lo \
140 gnu/javax/naming/jndi/url/rmi.lo \
141 gnu/javax/print/ipp.lo \
142 gnu/javax/print/ipp/attribute.lo \
143 gnu/javax/print/ipp/attribute/defaults.lo \
144 gnu/javax/print/ipp/attribute/job.lo \
145 gnu/javax/print/ipp/attribute/printer.lo \
146 gnu/javax/print/ipp/attribute/supported.lo \
147 gnu/javax/security/auth/login.lo \
148 gnu/javax/sound/sampled/AU.lo \
149 gnu/javax/sound/sampled/WAV.lo \
150 gnu/javax/swing/plaf/gnu.lo \
151 gnu/javax/swing/plaf/metal.lo \
156 java/security/acl.lo \
157 javax/activation.lo \
159 javax/management.lo \
164 javax/transaction.lo \
165 javax/management/loading.lo \
166 javax/management/openmbean.lo \
167 javax/management/remote.lo \
168 javax/management/remote/rmi.lo \
169 javax/naming/directory.lo \
170 javax/naming/event.lo \
171 javax/naming/ldap.lo \
172 javax/naming/spi.lo \
173 javax/print/attribute.lo \
174 javax/print/event.lo \
175 javax/print/attribute/standard.lo \
176 javax/security/cert.lo \
177 javax/security/auth/kerberos.lo \
178 javax/security/auth/login.lo \
179 javax/security/auth/spi.lo \
180 javax/sound/midi.lo \
181 javax/sound/midi/spi.lo \
182 javax/swing/plaf/multi.lo \
183 javax/swing/plaf/synth.lo \
184 javax/swing/text/rtf.lo \
185 javax/swing/text/html/default.css.lo \
186 javax/transaction/xa.lo \
191 ## Lists of all .lo files, and filtered core and non-core lists.
193 ALL_PACKAGE_SOURCE_FILES_LO = $(all_packages_source_files:.list=.lo) $(propertyo_files) $(bc_objects)
194 NONCORE_PACKAGE_SOURCE_FILES_LO = $(filter $(LOWER_PACKAGE_FILES_LO),$(ALL_PACKAGE_SOURCE_FILES_LO))
195 CORE_PACKAGE_SOURCE_FILES_LO = $(filter-out $(LOWER_PACKAGE_FILES_LO),$(ALL_PACKAGE_SOURCE_FILES_LO))
198 ## Assign objects to output libraries.
201 toolexeclib_LTLIBRARIES += libgcj-noncore.la
202 libgcj_noncore_la_LIBADD_SUBOBJECTS = $(NONCORE_PACKAGE_SOURCE_FILES_LO)
203 libgcj_la_LIBADD_SUBOBJECTS = $(CORE_PACKAGE_SOURCE_FILES_LO)
204 LIBJAVA_LDFLAGS_NOUNDEF = $(LIBGCJ_SUBLIB_LTFLAGS)
206 # If not building sublibraries, everything goes in libgcj,
207 # and it cannot be usefully built shared on PE platforms.
208 libgcj_la_LIBADD_SUBOBJECTS = $(ALL_PACKAGE_SOURCE_FILES_LO)
209 LIBJAVA_LDFLAGS_NOUNDEF =
213 toolexeclib_LTLIBRARIES += libgcj_bc.la
217 toolexeclib_LTLIBRARIES += lib-gnu-awt-xlib.la
220 dbexec_LTLIBRARIES = libjvm.la
222 pkgconfigdir = $(libdir)/pkgconfig
224 jardir = $(datadir)/java
225 jar_DATA = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
227 jar_DATA += $(ECJ_BUILD_JAR)
231 JAVA_HOME_DIR = $(JAVA_HOME)
232 BOOT_CLASS_PATH_DIR = $(JAVA_HOME)/lib/rt.jar
234 JAVA_HOME_DIR = $(prefix)
235 BOOT_CLASS_PATH_DIR = $(jardir)/libgcj-$(gcc_version).jar
238 ## Name of the default .db.
239 db_name = classmap.db
240 ## Compiler specific component of the .db file
241 gcjsubdir = @gcjsubdir@
242 db_pathtail = $(gcjsubdir)/$(db_name)
244 ## For now, only on native systems. FIXME.
246 bin_programs = jv-convert gij grmic grmiregistry gcj-dbtool \
247 gappletviewer gjarsigner gkeytool gjar gcjh gjavah gnative2ascii \
248 gorbd grmid gserialver gtnameserv gc-analyze
250 bin_programs += gjdoc
255 bin_PROGRAMS = $(bin_programs)
257 noinst_PROGRAMS += $(bin_programs)
260 ## It is convenient to actually build and install the default database
261 ## when gcj-dbtool is available.
262 dbexec_DATA = $(db_name)
265 bin_SCRIPTS = contrib/rebuild-gcj-db contrib/aot-compile
268 bin_SCRIPTS += contrib/aot-compile-rpm
272 ## We build ecjx and not ecj1 because in one mode, ecjx will not work
273 ## until after 'make install', and we don't want it to be picked up in
274 ## the build tree by gcj via a -B option.
275 libexecsub_PROGRAMS = ecjx
278 ## ################################################################
281 ## Compilers and compilation flags.
284 ## The compiler with whatever flags we want for both -c and -C
286 GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
288 extra_ldflags_libjava = @extra_ldflags_libjava@
289 extra_ldflags = @extra_ldflags@
292 extra_ldflags_libjava += -Wl,--version-script=$(srcdir)/libgcj.ver
295 LTLDFLAGS = $(shell $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
296 GCJLINK = $(LIBTOOL) --tag=GCJ $(LIBTOOLFLAGS) --mode=link $(GCJ) -L$(here) \
297 $(JC1FLAGS) $(LTLDFLAGS) -o $@
298 GCJ_FOR_ECJX = @GCJ_FOR_ECJX@
299 GCJ_FOR_ECJX_LINK = $(GCJ_FOR_ECJX) -o $@
300 LIBLINK = $(LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link $(CXX) -L$(here) \
301 $(JC1FLAGS) $(LTLDFLAGS) $(extra_ldflags_libjava) $(extra_ldflags) -o $@
302 CXXLINK = $(LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
303 $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LTLDFLAGS) -o $@
305 GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
307 WARNINGS = -Wextra -Wall
308 ## Some systems don't allow `$' in identifiers by default, so we force
309 ## it with -fdollars-in-identifiers. -Wswitch-enum detects bugs in
310 ## the verifier implementation, and maybe other places. We need
311 ## _GNU_SOURCE defined for some Linux builds. It doesn't hurt to
312 ## always define it. Some systems, including Linux, need
313 ## -D_FILE_OFFSET_BITS=64 to enable > 2GB file support.
316 -fnon-call-exceptions \
318 -fdollars-in-identifiers \
320 -D_FILE_OFFSET_BITS=64 \
324 -DPREFIX="\"$(prefix)\"" \
325 -DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
326 -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \
327 -DBOOT_CLASS_PATH="\"$(BOOT_CLASS_PATH_DIR)\"" \
328 -DJAVA_EXT_DIRS="\"$(jardir)/ext\"" \
329 -DGCJ_ENDORSED_DIRS="\"$(jardir)/gcj-endorsed\"" \
330 -DGCJ_VERSIONED_LIBDIR="\"$(dbexecdir)\"" \
331 -DPATH_SEPARATOR="\"$(CLASSPATH_SEPARATOR)\"" \
332 -DECJ_JAR_FILE="\"$(ECJ_JAR)\"" \
333 -DLIBGCJ_DEFAULT_DATABASE="\"$(dbexecdir)/$(db_name)\"" \
334 -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL="\"$(db_pathtail)\""
338 -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
340 -Wno-deprecated -fbootstrap-classes
342 AM_CFLAGS = @LIBGCJ_CFLAGS@
344 AM_CFLAGS += $(WARNINGS)
347 if SUPPRESS_LIBGCJ_BC
350 LIBGCJ_BC_FLAGS = -findirect-dispatch -fno-indirect-classes
353 if BUILD_LIBGCJ_REDUCED_REFLECTION
354 LIBGCJ_REDUCED_REFLECTION_FLAGS = -freduced-reflection
356 LIBGCJ_REDUCED_REFLECTION_FLAGS =
359 ## Extra CFLAGS used for JNI C sources shared with GNU Classpath.
360 PEDANTIC_CFLAGS = -ansi -pedantic -Wall -Wno-long-long
363 JC1FLAGS = @LIBGCJ_JAVAFLAGS@ $(GCJFLAGS)
365 LIBFFIINCS = @LIBFFIINCS@
367 AM_CPPFLAGS = -I$(top_srcdir) \
368 -Iinclude -I$(top_srcdir)/include \
369 -I$(top_srcdir)/classpath/include \
370 -Iclasspath/include \
371 -I$(top_srcdir)/classpath/native/fdlibm \
372 $(GCINCS) $(THREADINCS) $(INCLTDL) \
373 $(GCC_UNWIND_INCLUDE) $(ZINCS) $(LIBFFIINCS)
375 BOOTCLASSPATH = $(srcdir)/classpath/lib
377 ## ################################################################
380 ## How to build libgcj.a and libgcj.jar
383 libgij_la_SOURCES = gij.cc
384 libgij_la_DEPENDENCIES = libgcj.la libgcj.spec
386 libgij_la_DEPENDENCIES += libgcj-noncore.la
388 ## See jv_convert_LDADD.
389 libgij_la_LIBADD = -L$(here)/.libs libgcj.la
390 ## The mysterious backslash in the grep pattern is consumed by make.
391 libgij_la_LDFLAGS = -rpath $(toolexeclibdir) $(LIBJAVA_LDFLAGS_NOUNDEF) \
392 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
393 libgij_la_LINK = $(CXXLINK) $(libgij_la_LDFLAGS)
396 libgcj_interpret_source_files = jvmti.cc interpret.cc
398 libgcj_interpret_source_files =
401 libgcj_la_SOURCES = prims.cc jni.cc exception.cc stacktrace.cc \
402 link.cc defineclass.cc verify.cc $(libgcj_interpret_source_files) \
405 ## We need to compile at least the interpreter this way.
406 interpret.lo: AM_CXXFLAGS += -fwrapv
409 libgcj_la_SOURCES += boehm.cc
413 libgcj_la_SOURCES += nogc.cc
416 if USING_POSIX_PLATFORM
417 libgcj_la_SOURCES += posix.cc
420 if USING_WIN32_PLATFORM
421 libgcj_la_SOURCES += win32.cc
425 libgcj_la_SOURCES += darwin.cc
428 if USING_POSIX_THREADS
429 libgcj_la_SOURCES += posix-threads.cc
432 if USING_WIN32_THREADS
433 libgcj_la_SOURCES += win32-threads.cc
437 libgcj_la_SOURCES += no-threads.cc
440 ## Objects from C++ sources in subdirs.
441 nat_files = $(nat_source_files:.cc=.lo)
442 xlib_nat_files = $(xlib_nat_source_files:.cc=.lo)
444 # Include THREADLIBS here to ensure that the correct version of
445 # certain linuxthread functions get linked:
446 ## The mysterious backslash in the grep pattern is consumed by make.
447 libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLDFLAGS) $(extra_ldflags) $(THREADLIBS) \
448 $(LIBLTDL) $(SYS_ZLIBS) $(LIBJAVA_LDFLAGS_NOUNDEF) \
449 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
450 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)
452 classpath/native/fdlibm/libfdlibm.la \
453 java/lang/Object.lo \
455 java/process-$(PLATFORM).lo \
456 $(libgcj_la_LIBADD_SUBOBJECTS) \
457 $(LIBFFI) $(ZLIBS) $(GCLIBS)
458 libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
459 java/lang/Object.lo \
461 java/process-$(PLATFORM).lo \
462 $(ALL_PACKAGE_SOURCE_FILES_LO) \
463 $(LIBLTDL) $(libgcj_la_LIBADD)
465 libgcj_la_DEPENDENCIES += $(srcdir)/libgcj.ver
467 libgcj_la_LINK = $(LIBLINK) $(libgcj_la_LDFLAGS)
469 ## A hack to make sure the various gcj-related macros, like
470 ## LTGCJCOMPILE, are defined by automake. This is never actually
472 EXTRA_libgcj_la_SOURCES = java/lang/Object.java
475 libgcj_noncore_la_SOURCES =
476 libgcj_noncore_la_LDFLAGS = $(libgcj_la_LDFLAGS)
477 libgcj_noncore_la_LIBADD = $(libgcj_noncore_la_LIBADD_SUBOBJECTS) \
478 $(LIBFFI) $(ZLIBS) $(GCLIBS) libgcj.la
479 libgcj_noncore_la_DEPENDENCIES = libgcj-$(gcc_version).jar $(LIBLTDL) \
480 $(libgcj_noncore_la_LIBADD) libgcj.la
482 libgcj_noncore_la_DEPENDENCIES += $(srcdir)/libgcj.ver
484 libgcj_noncore_la_LINK = $(libgcj_la_LINK)
487 # We compile libgcj_tools with -findirect-dispatch so that they can
488 # depend on external classes: in particular, gjdoc uses antlr. In
489 # addition, -fno-bootstrap-classes ensures that the tools are loaded
490 # by the system class loader rather than the bootstrap class loader:
491 # only core library classes should be loaded by the bootstrap loader.
492 libgcj_tools_la_SOURCES = classpath/tools/tools.zip
493 libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch \
494 -fno-bootstrap-classes -fno-indirect-classes \
495 -fsource-filename=$(here)/classpath/tools/all-classes.lst
496 libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \
497 -version-info `grep -v '^\#' $(srcdir)/libtool-version` \
498 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS) $(LIBJAVA_LDFLAGS_NOUNDEF)
499 libgcj_tools_la_LIBADD = libgcj.la -lm
500 libgcj_tools_la_DEPENDENCIES = libgcj.la libgcj.spec
502 libgcj_tools_la_DEPENDENCIES += libgcj-noncore.la
504 libgcj_tools_la_LINK = $(LIBLINK) $(libgcj_tools_la_LDFLAGS)
507 libjvm_la_SOURCES = jni-libjvm.cc
508 libjvm_la_DEPENDENCIES = libgcj.la libgcj.spec
510 libjvm_la_DEPENDENCIES += libgcj-noncore.la
512 ## See jv_convert_LDADD.
513 libjvm_la_LIBADD = -L$(here)/.libs libgcj.la
514 libjvm_la_LDFLAGS = -avoid-version $(LIBGCJ_LD_SYMBOLIC) \
515 $(LIBJAVA_LDFLAGS_NOUNDEF)
516 libjvm_la_LINK = $(CXXLINK) $(libjvm_la_LDFLAGS)
518 ## The .db file. This rule is only used for native builds, so it is
519 ## safe to invoke gcj-dbtool.
520 $(db_name): gcj-dbtool$(EXEEXT)
521 ## In case it exists already.
523 ## We don't actually care if it fails -- if it does, just make an
524 ## empty file. This is simpler than trying to discover when mmap is
526 ./gcj-dbtool -n $(db_name) || touch $(db_name)
528 lib_gnu_awt_xlib_la_SOURCES = $(xlib_nat_source_files)
529 lib_gnu_awt_xlib_la_LIBADD = gnu/awt/xlib.lo gnu/gcj/xlib.lo
530 lib_gnu_awt_xlib_la_DEPENDENCIES = libgcj-$(gcc_version).jar \
531 libgcj.la libgcj.spec \
532 $(lib_gnu_awt_xlib_la_LIBADD)
534 lib_gnu_awt_xlib_la_DEPENDENCIES += libgcj-noncore.la
536 ## We require libstdc++-v3 to be in the same build tree.
537 lib_gnu_awt_xlib_la_CPPFLAGS = \
539 -I../libstdc++-v3/include \
540 -I../libstdc++-v3/include/$(target_noncanonical) \
541 -I$(srcdir)/../libstdc++-v3/libsupc++
542 ## The mysterious backslash in the grep pattern is consumed by make.
543 lib_gnu_awt_xlib_la_LDFLAGS = ../libstdc++-v3/src/libstdc++.la \
544 @X_PRE_LIBS@ @X_LIBS@ -lX11 @X_EXTRA_LIBS@ \
545 -rpath $(toolexeclibdir) $(LIBJAVA_LDFLAGS_NOUNDEF) \
546 -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LIBGCJ_LD_SYMBOLIC)
547 lib_gnu_awt_xlib_la_LINK = $(LIBLINK) $(lib_gnu_awt_xlib_la_LDFLAGS)
549 ## Support for libgcj_bc: dummy shared library.
551 ## This lets us have one soname in BC objects and another in C++ ABI objects.
552 ## This library is not linked against libgcj.
553 libgcj_bc_la_SOURCES = libgcj_bc.c
554 libgcj_bc_la_LDFLAGS = -rpath $(toolexeclibdir) -no-static -version-info 1:0:0 \
555 $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS) $(LIBJAVA_LDFLAGS_NOUNDEF)
556 libgcj_bc_la_DEPENDENCIES = libgcj.la
557 libgcj_bc_la_LINK = $(LIBLINK) $(libgcj_bc_la_LDFLAGS)
558 ## This is specific to Linux/{Free,Net,Open}BSD/Hurd and perhaps few others.
559 ## USE_LIBGCJ_BC shouldn't be set on other targets.
560 libgcj_bc_dummy_LINK = $(CC) -L$(here)/.libs $(CFLAGS) $(LDFLAGS) -shared \
563 ## This rule creates the libgcj_bc dummy library in the .libs directory, for use
565 libgcj_bc.la: $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_DEPENDENCIES)
566 $(libgcj_bc_la_LINK) $(am_libgcj_bc_la_rpath) $(libgcj_bc_la_LDFLAGS) \
567 $(libgcj_bc_la_OBJECTS) $(libgcj_bc_la_LIBADD) $(LIBS) || exit; \
568 rm .libs/libgcj_bc.so; \
569 mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
570 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
571 -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
572 rm .libs/libgcj_bc.so.1; \
573 $(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
575 ## Note that property_files is defined in sources.am.
576 propertyo_files = $(patsubst classpath/resource/%,%,$(addsuffix .lo,$(property_files)))
578 $(propertyo_files): %.lo: classpath/resource/%
579 $(mkinstalldirs) `dirname $@`; \
580 $(LTGCJCOMPILE) -o $@ -c $< -Wc,--resource,$(@:.lo=)
582 libgcj-$(gcc_version).jar: classpath/lib/compile-classes
583 ## Note that this now omits the property files.
584 ## It doesn't matter since we don't use the jar at runtime.
585 here=`pwd`; cd $(srcdir)/classpath/lib; \
586 find gnu java javax org sun -name .svn -prune -o -name '*.class' -print | \
587 $(JAR) -cfM@ $$here/libgcj-$(gcc_version).jar
589 libgcj-tools-$(gcc_version).jar: classpath/tools/tools.zip
592 CLEANFILES = libgcj-$(gcc_version).jar libgcj-tools-$(gcc_version).jar
593 DISTCLEANFILES = native.dirs
596 ## Use libtool rm to remove each libtool object
597 find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
600 ## Remove every .d file that was created.
601 find . -name '*.d' -print | xargs rm -f
603 # Just remove the objects from C++ sources, for testing the C++ compiler.
605 rm -f $(nat_files) $(xlib_nat_files)
607 SUFFIXES = .class .java .h .properties .list
609 ## Pass the list of object files to libtool in a temporary file to
610 ## avoid tripping platform command line length limits.
611 lib-gnu-awt-xlib.la: $(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_DEPENDENCIES)
612 @echo Creating list of files to link...
613 @: $(call write_entries_to_file,$(lib_gnu_awt_xlib_la_OBJECTS) $(lib_gnu_awt_xlib_la_LIBADD),lib_gnu_awt_xlib.objectlist)
614 $(lib_gnu_awt_xlib_la_LINK) -objectlist lib_gnu_awt_xlib.objectlist \
615 -rpath $(toolexeclibdir) $(lib_gnu_awt_xlib_la_LDFLAGS) $(LIBS)
617 ## ################################################################
619 ## Compiling a list of java sources to a single .o.
621 # Concurrent things use reflection internally.
622 java/util/concurrent.lo \
623 java/util/concurrent/atomic.lo \
624 java/util/concurrent/locks.lo: LIBGCJ_REDUCED_REFLECTION_FLAGS =
627 $(LTGCJCOMPILE) $(LIBGCJ_REDUCED_REFLECTION_FLAGS) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
629 java/lang/Object.lo: classpath/lib/java/lang/Object.class
630 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
632 java/lang/Class.lo: classpath/lib/java/lang/Class.class
633 $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(srcdir)/$(basename $@).java $<
635 ## ################################################################
637 ## This pulls in a number of variable and target definitions.
640 ## ################################################################
643 ## How to build header files.
646 ## We have special rules for certain headers.
647 omitted_headers = java/lang/ClassLoader.h java/lang/Thread.h \
648 java/lang/String.h java/lang/reflect/Constructor.h \
649 java/lang/reflect/Field.h java/lang/reflect/Method.h \
650 java/lang/reflect/Proxy.h gnu/gcj/runtime/ExtensionClassLoader.h
652 inner_nat_headers = java/io/ObjectOutputStream$$PutField.h \
653 java/io/ObjectInputStream$$GetField.h \
654 java/nio/DirectByteBufferImpl$$ReadWrite.h \
655 java/nio/channels/Pipe$$SinkChannel.h \
656 java/nio/channels/Pipe$$SourceChannel.h \
657 java/lang/VMProcess$ImmediateEOFInputStream.h \
658 java/lang/reflect/Proxy$$ProxyData.h \
659 java/lang/reflect/Proxy$$ProxyType.h \
660 gnu/java/net/PlainSocketImpl$$SocketInputStream.h \
661 gnu/java/net/PlainSocketImpl$$SocketOutputStream.h \
662 gnu/java/nio/PipeImpl$$SinkChannelImpl.h \
663 gnu/java/nio/PipeImpl$$SourceChannelImpl.h
665 generic_header_files = $(ordinary_header_files) $(inner_nat_headers) \
670 $(generic_header_files): gcjh.stamp
672 gcjh.stamp: classpath/lib/compile-classes
673 if JAVA_MAINTAINER_MODE
674 $(MYGCJH) --cni --all $(srcdir)/classpath/lib \
675 --cmdfile=$(srcdir)/headers.txt -d $(srcdir) --force
679 nat_headers = $(ordinary_header_files) $(inner_nat_headers)
680 nat_headers_install = $(ordinary_header_files)
682 xlib_nat_headers = $(gnu_awt_xlib_header_files) $(gnu_gcj_xlib_header_files)
684 ## Headers we maintain by hand and which we want to install.
685 extra_headers = java/lang/Object.h java/lang/Class.h
687 $(extra_headers) $(srcdir)/java/lang/Object.h $(srcdir)/java/lang/Class.h:
690 install-exec-hook: install-binPROGRAMS install-toolexeclibLTLIBRARIES \
691 install-libexecsubPROGRAMS
692 ## Support for libgcj_bc: dummy shared library used only at link-time.
694 ## Install libgcj_bc dummy lib in the target directory. We also need to delete
695 ## libtool's .la file, this prevents libtool resetting the lib again
697 @echo Installing dummy lib libgcj_bc.so.1.0.0; \
698 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
699 mv $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so; \
700 $(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
701 -o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj || exit; \
702 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
703 $(LN_S) libgcj_bc.so.1.0.0 $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1; \
704 rm $(DESTDIR)$(toolexeclibdir)/libgcj_bc.la;
707 ## Undo any prepending of the target prefix and transform
708 ## to the actual host's executable suffix.
709 mv $(DESTDIR)$(libexecsubdir)/`echo ecjx | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` $(DESTDIR)$(libexecsubdir)/ecj1$(host_exeext)
712 ## Install the headers. It is fairly ugly that we have to do this by
714 install_data_local_split = 50
717 ## Install the .pc file.
718 @pc_version=`echo $(GCJVERSION) | sed -e 's/[.][^.]*$$//'`; \
719 file="libgcj-$${pc_version}.pc"; \
720 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir); \
721 echo " $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file"; \
722 $(INSTALL_DATA) libgcj.pc $(DESTDIR)$(pkgconfigdir)/$$file
723 ## We use a GNU make trick here so that we don't go over the command
724 ## length limit of some shells.
725 @echo Creating list of headers to install...
726 @: $(call write_entries_to_file,$(nat_headers_install) $(extra_headers),tmp-ilist)
727 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
728 while read file; do echo "$$file $$file"; done < tmp-ilist | \
729 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
730 $(AWK) 'BEGIN { files["."] = "" } \
731 { files[$$2] = files[$$2] " " $$1; \
732 if (++n[$$2] == $(install_data_local_split)) { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
733 END { for (dir in files) print dir, files[dir] }' | \
734 while read dir files; do \
735 xfiles=; for file in $$files; do \
736 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
737 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
738 test -z "$$xfiles" || { \
739 test "x$$dir" = x. || { \
740 echo "$(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir"; \
741 $(mkinstalldirs) $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
742 echo " $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir"; \
743 $(INSTALL_DATA) $$xfiles $(DESTDIR)$(gxx_include_dir)/$$dir; }; \
746 ## Install inner class headers.
747 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectOutputStream$$PutField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
748 $(INSTALL_DATA) $(srcdir)/'java/io/ObjectInputStream$$GetField.h' $(DESTDIR)$(gxx_include_dir)/java/io/
749 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SinkChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
750 $(INSTALL_DATA) $(srcdir)/'java/nio/channels/Pipe$$SourceChannel.h' $(DESTDIR)$(gxx_include_dir)/java/nio/channels/
751 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyData.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
752 $(INSTALL_DATA) $(srcdir)/'java/lang/reflect/Proxy$$ProxyType.h' $(DESTDIR)$(gxx_include_dir)/java/lang/reflect/
753 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketInputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
754 $(INSTALL_DATA) $(srcdir)/'gnu/java/net/PlainSocketImpl$$SocketOutputStream.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/net/
755 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SinkChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
756 $(INSTALL_DATA) $(srcdir)/'gnu/java/nio/PipeImpl$$SourceChannelImpl.h' $(DESTDIR)$(gxx_include_dir)/gnu/java/nio/
757 ## Don't install java/nio/DirectByteBufferImpl$$ReadWrite.h here. It's for internal use only.
758 ## Install Python modules for aot-compile.
759 $(mkinstalldirs) $(DESTDIR)$(python_mod_dir); \
760 $(INSTALL_DATA) $(srcdir)/contrib/classfile.py \
761 $(DESTDIR)$(python_mod_dir)/classfile.py; \
762 $(INSTALL_DATA) contrib/aotcompile.py \
763 $(DESTDIR)$(python_mod_dir)/aotcompile.py;
765 ## Create sdk style directories
766 $(mkinstalldirs) $(DESTDIR)$(JRE_BIN_DIR)
767 $(mkinstalldirs) $(DESTDIR)$(SDK_BIN_DIR)
768 $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)
769 $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)
770 $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)
771 $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/$(OS)
773 $(PERL) -e 'use File::Spec; \
774 print File::Spec->abs2rel($$ARGV[0], $$ARGV[1])' $$1 $$2; \
776 RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(SDK_BIN_DIR)); \
777 ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
778 $(DESTDIR)$(SDK_BIN_DIR)/java; \
779 ln -sf $$RELATIVE/`echo gjar | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
780 $(DESTDIR)$(SDK_BIN_DIR)/jar; \
781 ln -sf $$RELATIVE/`echo gjdoc | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
782 $(DESTDIR)$(SDK_BIN_DIR)/javadoc; \
783 ln -sf $$RELATIVE/`echo grmic | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
784 $(DESTDIR)$(SDK_BIN_DIR)/rmic; \
785 ln -sf $$RELATIVE/`echo gjavah | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
786 $(DESTDIR)$(SDK_BIN_DIR)/javah; \
787 ln -sf $$RELATIVE/`echo gappletviewer | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
788 $(DESTDIR)$(SDK_BIN_DIR)/appletviewer; \
789 ln -sf $$RELATIVE/`echo gjarsigner | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
790 $(DESTDIR)$(SDK_BIN_DIR)/jarsigner; \
791 ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
792 $(DESTDIR)$(SDK_BIN_DIR)/rmiregistry; \
793 ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
794 $(DESTDIR)$(SDK_BIN_DIR)/keytool; \
795 ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
796 $(DESTDIR)$(SDK_BIN_DIR)/orbd; \
797 ln -sf $$RELATIVE/`echo gnative2ascii | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
798 $(DESTDIR)$(SDK_BIN_DIR)/native2ascii; \
799 ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
800 $(DESTDIR)$(SDK_BIN_DIR)/rmid; \
801 ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
802 $(DESTDIR)$(SDK_BIN_DIR)/tnameserv; \
803 ln -sf $$RELATIVE/`echo gserialver | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
804 $(DESTDIR)$(SDK_BIN_DIR)/serialver; \
805 RELATIVE=$$(relative $(DESTDIR)$(bindir) $(DESTDIR)$(JRE_BIN_DIR)); \
806 ln -sf $$RELATIVE/`echo grmiregistry | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
807 $(DESTDIR)$(JRE_BIN_DIR)/rmiregistry; \
808 ln -sf $$RELATIVE/`echo gkeytool | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
809 $(DESTDIR)$(JRE_BIN_DIR)/keytool; \
810 ln -sf $$RELATIVE/`echo gij | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
811 $(DESTDIR)$(JRE_BIN_DIR)/java; \
812 ln -sf $$RELATIVE/`echo gorbd | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
813 $(DESTDIR)$(JRE_BIN_DIR)/orbd; \
814 ln -sf $$RELATIVE/`echo grmid | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
815 $(DESTDIR)$(JRE_BIN_DIR)/rmid; \
816 ln -sf $$RELATIVE/`echo gtnameserv | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
817 $(DESTDIR)$(JRE_BIN_DIR)/tnameserv; \
818 $(mkinstalldirs) $(DESTDIR)$(JVM_JAR_DIR); \
819 version=$(JAVA_VERSION).$(BUILD_VERSION); \
821 cd $(DESTDIR)$(JVM_JAR_DIR); \
822 RELATIVE=$$(relative $(DESTDIR)$(JRE_LIB_DIR) \
823 $(DESTDIR)$(JVM_JAR_DIR)); \
824 for jarname in jaas jce jdbc-stdext jndi jndi-cos jndi-dns \
825 jndi-ldap jndi-rmi jsse sasl; \
827 ln -sf $$RELATIVE/rt.jar $$jarname-$$version.jar; \
829 RELATIVE=$$(relative $(DESTDIR)$(jardir) \
830 $(DESTDIR)$(JVM_JAR_DIR)); \
831 for jar in *-$$version.jar; \
833 ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|-$(JAVA_VERSION).jar|g"); \
834 ln -sf $$jar $$(echo $$jar | sed "s|-$$version.jar|.jar|g"); \
837 $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/security; \
838 RELATIVE=$$(relative $(DESTDIR)$(toolexeclibdir)/security \
839 $(DESTDIR)$(JRE_LIB_DIR)/security); \
840 cd $(DESTDIR)$(JRE_LIB_DIR)/security; \
841 ln -sf $$RELATIVE/classpath.security java.security; \
843 $(mkinstalldirs) $(DESTDIR)$(SDK_INCLUDE_DIR)/linux; \
844 $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client; \
845 $(mkinstalldirs) $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server; \
846 $(mkinstalldirs) $(DESTDIR)$(SDK_LIB_DIR); \
847 RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
848 $(DESTDIR)$(JRE_LIB_DIR)); \
849 ln -sf $$RELATIVE/libgcj-$(gcc_version).jar \
850 $(DESTDIR)$(JRE_LIB_DIR)/rt.jar; \
851 RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
852 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)); \
853 ln -sf $$RELATIVE/libjawt.so \
854 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/libjawt.so; \
855 RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
856 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client); \
857 ln -sf $$RELATIVE/libjvm.so \
858 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/client/libjvm.so; \
859 RELATIVE=$$(relative $(DESTDIR)$(dbexecdir) \
860 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server); \
861 ln -sf $$RELATIVE/libjvm.so \
862 $(DESTDIR)$(JRE_LIB_DIR)/$(CPU)/server/libjvm.so; \
863 RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
864 $(DESTDIR)$(SDK_LIB_DIR)); \
865 ln -sf $$RELATIVE/libgcj-tools-$(gcc_version).jar \
866 $(DESTDIR)$(SDK_LIB_DIR)/tools.jar; \
867 for headername in jawt jni; do \
868 DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/`echo gcj | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
869 -print-file-name=include/$$headername.h)); \
870 RELATIVE=$$(relative $$DIRECTORY \
871 $(DESTDIR)$(SDK_INCLUDE_DIR)); \
872 ln -sf $$RELATIVE/$$headername.h \
873 $(DESTDIR)$(SDK_INCLUDE_DIR)/$$headername.h; \
875 for headername in jawt_md jni_md; do \
876 DIRECTORY=$$(dirname $$($(DESTDIR)$(bindir)/`echo gcj | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'` \
877 -print-file-name=include/$$headername.h)); \
878 RELATIVE=$$(relative $$DIRECTORY \
879 $(DESTDIR)$(SDK_INCLUDE_DIR)/linux); \
880 ln -sf $$RELATIVE/$$headername.h \
881 $(DESTDIR)$(SDK_INCLUDE_DIR)/linux/$$headername.h; \
883 RELATIVE=$$(relative $(DESTDIR)$(datadir)/java \
884 $(DESTDIR)$(JVM_ROOT_DIR)/$(SDK_DIR));
887 ## ################################################################
890 ## Additional `check' targets for maintainer convenience.
893 ## This is used for maintainer-check. FIXME: should set from
894 ## configure using AC_CHECK_TOOL.
897 ## Try to make sure our library doesn't stomp the namespace.
898 maintainer-check: libgcj.la
899 $(NM) .libs/libgcj.a | grep ' T ' \
900 ## Anything with `4java' is assumed to be from .java source.
902 ## Anything with Jv is ok.
904 ## `terminate' and `unexpected' are part of the runtime.
905 | grep -v 'terminate__Fv' | grep -v 'unexpected__Fv'
907 ## This rule can be used to see if the headers are more or less
909 header-check: libgcj-$(gcc_version).jar $(nat_headers)
911 for h in $(nat_headers); do \
912 echo "#include \"$$h\"" >> htest.cc; \
914 $(CXXCOMPILE) -fsyntax-only htest.cc
916 ## This rule can be used to see if all the .class files verify
918 class-check: libgcj-$(gcc_version).jar
919 @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
921 echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
922 if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
926 ## This rule checks whether write_entries_to_file works properly.
927 write-entries-to-file-check:
928 @echo Creating list of files to link...
929 @: $(call write_entries_to_file,$(libgcj_la_OBJECTS) $(libgcj_la_LIBADD),libgcj.objectlist)
931 ## ################################################################
934 ## The `jv-convert' program and code to rebuild the converter header
938 ## it only makes sense to try to rebuild the JIS .h files on native
942 noinst_PROGRAMS += gen-from-JIS
944 gen_from_JIS_SOURCES = \
945 gnu/gcj/convert/gen-from-JIS.c \
946 gnu/gcj/convert/make-trie.c \
947 gnu/gcj/convert/make-trie.h
949 gen_from_JIS_DEPENDENCIES = \
950 gnu/gcj/convert/JIS0201.h \
951 gnu/gcj/convert/JIS0208.h \
952 gnu/gcj/convert/JIS0212.h
954 $(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
955 ./gen-from-JIS JIS0208 >$(srcdir)/gnu/gcj/convert/JIS0208_to_Unicode.cc
957 $(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc: ./gen-from-JIS$(EXEEXT)
958 ./gen-from-JIS JIS0212 >$(srcdir)/gnu/gcj/convert/JIS0212_to_Unicode.cc
960 $(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc: ./gen-from-JIS$(EXEEXT)
961 ./gen-from-JIS toJIS >$(srcdir)/gnu/gcj/convert/Unicode_to_JIS.cc
963 # The Unicode consortium does not permit re-distributing the file JIS0201.TXT.
964 # You can get it from
965 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
967 $(srcdir)/gnu/gcj/convert/JIS0201.h: # gnu/gcj/convert/JIS0201.TXT
968 echo '/* This file is automatically generated from Unicode tables */' > tmp-0201; \
969 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0201.TXT \
970 | sed -n -e 's|\(0x..\).*\(0x....\).*#\(.*\)$$|MAP(0x00, \1, \2) /*\3 */|p' \
972 mv tmp-0201 $(srcdir)/gnu/gcj/convert/JIS0201.h
974 # The Unicode consortium does not permit re-distributing the file JIS0208.TXT.
975 # You can get it from
976 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
978 $(srcdir)/gnu/gcj/convert/JIS0208.h: # gnu/gcj/convert/JIS0208.TXT
979 echo '/* This file is automatically generated from Unicode tables */' > tmp-0208; \
980 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0208.TXT \
981 | sed -n -e 's|\(0x....\).*0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\2, 0x\3, \4) /*\5 */|p' \
983 mv tmp-0208 $(srcdir)/gnu/gcj/convert/JIS0208.h
985 # The Unicode consortium does not permit re-distributing the file JIS0212.TXT.
986 # You can get it from
987 # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/
989 $(srcdir)/gnu/gcj/convert/JIS0212.h: # gnu/gcj/convert/JIS0212.TXT
990 echo '/* This file is automatically generated from Unicode tables */' > tmp-0212; \
991 tr -d '\r' <$(srcdir)/gnu/gcj/convert/JIS0212.TXT \
992 | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
994 mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
1000 jv_convert_SOURCES =
1001 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
1002 ## need this because we are explicitly using libtool to link using the
1004 jv_convert_LDFLAGS = --main=gnu.gcj.convert.Convert \
1005 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1006 jv_convert_LINK = $(GCJLINK) $(jv_convert_LDFLAGS)
1007 ## We don't explicitly link in the libraries we need; libgcj.la brings
1008 ## in all dependencies. We need the -L so that gcj can find libgcj
1009 ## with `-lgcj', but it must come first, otherwise the -L flags
1010 ## brought in from libgcj.la would cause the install directories to be
1011 ## searched before the build-tree ones, and we'd get errors because of
1012 ## different libraries with the same SONAME from picky linkers such as
1013 ## Solaris'. FIXME: should be _libs on some systems.
1014 jv_convert_LDADD = -L$(here)/.libs libgcj.la
1015 ## Depend on the spec file to make sure it is up to date before
1016 ## linking this program.
1017 jv_convert_DEPENDENCIES = libgcj.la libgcj.spec
1019 jv_convert_DEPENDENCIES += libgcj-noncore.la
1022 gcj_dbtool_SOURCES = \
1023 gnu/gcj/tools/gcj_dbtool/natMain.cc
1025 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
1026 ## need this because we are explicitly using libtool to link using the
1028 gcj_dbtool_LDFLAGS = --main=gnu.gcj.tools.gcj_dbtool.Main \
1029 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1030 gcj_dbtool_LINK = $(GCJLINK) $(gcj_dbtool_LDFLAGS)
1031 ## We don't explicitly link in the libraries we need; libgcj.la brings
1032 ## in all dependencies. We need the -L so that gcj can find libgcj
1033 ## with `-lgcj', but it must come first, otherwise the -L flags
1034 ## brought in from libgcj.la would cause the install directories to be
1035 ## searched before the build-tree ones, and we'd get errors because of
1036 ## different libraries with the same SONAME from picky linkers such as
1037 ## Solaris'. FIXME: should be _libs on some systems.
1038 gcj_dbtool_LDADD = gnu/gcj/tools/gcj_dbtool.lo -L$(here)/.libs libgcj.la
1039 ## Depend on the spec file to make sure it is up to date before
1040 ## linking this program.
1041 gcj_dbtool_DEPENDENCIES = gnu/gcj/tools/gcj_dbtool.lo libgcj.la libgcj.spec
1043 gcj_dbtool_DEPENDENCIES += libgcj-noncore.la
1046 gc_analyze_SOURCES =
1048 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
1049 ## need this because we are explicitly using libtool to link using the
1051 gc_analyze_LDFLAGS = --main=gnu.gcj.tools.gc_analyze.MemoryAnalyze \
1052 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1053 gc_analyze_LINK = $(GCJLINK) $(gc_analyze_LDFLAGS)
1054 ## See jv_convert_LDADD.
1055 gc_analyze_LDADD = -L$(here)/.libs libgcj-tools.la libgcj.la
1056 ## Depend on the spec file to make sure it is up to date before
1057 ## linking this program.
1058 gc_analyze_DEPENDENCIES = libgcj-tools.la libgcj.la libgcj.spec
1060 gc_analyze_DEPENDENCIES += libgcj-noncore.la
1064 ## We need -nodefaultlibs because we want to avoid gcj's `-lgcj'. We
1065 ## need this because we are explicitly using libtool to link using the
1067 gij_LDFLAGS = -rpath $(dbexecdir) -rpath $(toolexeclibdir) \
1068 -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags) \
1069 $(extra_gij_ldflags)
1070 gij_LINK = $(GCJLINK) $(gij_LDFLAGS)
1071 ## See jv_convert_LDADD.
1072 gij_LDADD = -L$(here)/.libs libgij.la
1073 ## Depend on the spec file to make sure it is up to date before
1074 ## linking this program.
1075 gij_DEPENDENCIES = libgij.la
1077 ## Build an ecjx from a .jar.
1078 ecjx_SOURCES = ecjx.cc
1079 ## We use the BC ABI here so that we don't need to compile ecj.jar.
1080 ## Hopefully the user has compiled it into his system .db.
1081 ## However, even if not it will run reasonably quickly.
1083 ECJX_BASE_FLAGS = -findirect-dispatch \
1084 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
1088 ecjx_LINK = $(GCJLINK) $(ecjx_LDFLAGS)
1091 ## Use ecj.jar at runtime.
1092 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) -Djava.class.path=$(ECJ_JAR)
1094 ## Use ecj.jar at compile time.
1095 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
1096 endif !ENABLE_SHARED
1098 ecjx_LDADD = -L$(here)/.libs $(extra_ldflags)
1099 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
1101 ecjx_DEPENDENCIES += libgcj-noncore.la
1104 ecjx_DEPENDENCIES += libgcj_bc.la
1106 ecjx_LDADD += libgcj.la
1111 ecjx_LINK = $(GCJ_FOR_ECJX_LINK) $(ecjx_LDFLAGS)
1112 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
1118 ## This is a dummy definition.
1119 gappletviewer_SOURCES =
1120 gappletviewer_LDFLAGS = --main=gnu.classpath.tools.appletviewer.Main \
1121 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1122 gappletviewer_LINK = $(GCJLINK) $(gappletviewer_LDFLAGS)
1123 ## See jv_convert_LDADD.
1124 gappletviewer_LDADD = -L$(here)/.libs libgcj-tools.la
1125 gappletviewer_DEPENDENCIES = libgcj-tools.la
1127 ## This is a dummy definition.
1128 gjarsigner_SOURCES =
1129 gjarsigner_LDFLAGS = --main=gnu.classpath.tools.jarsigner.Main \
1130 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1131 gjarsigner_LINK = $(GCJLINK) $(gjarsigner_LDFLAGS)
1132 ## See jv_convert_LDADD.
1133 gjarsigner_LDADD = -L$(here)/.libs libgcj-tools.la
1134 gjarsigner_DEPENDENCIES = libgcj-tools.la
1136 ## This is a dummy definition.
1138 gkeytool_LDFLAGS = --main=gnu.classpath.tools.keytool.Main \
1139 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1140 gkeytool_LINK = $(GCJLINK) $(gkeytool_LDFLAGS)
1141 ## See jv_convert_LDADD.
1142 gkeytool_LDADD = -L$(here)/.libs libgcj-tools.la
1143 gkeytool_DEPENDENCIES = libgcj-tools.la
1145 ## This is a dummy definition.
1147 gjar_LDFLAGS = --main=gnu.classpath.tools.jar.Main \
1148 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1149 gjar_LINK = $(GCJLINK) $(gjar_LDFLAGS)
1150 ## See jv_convert_LDADD.
1151 gjar_LDADD = -L$(here)/.libs libgcj-tools.la
1152 gjar_DEPENDENCIES = libgcj-tools.la
1154 ## This is a dummy definition.
1156 gjavah_LDFLAGS = --main=gnu.classpath.tools.javah.Main \
1157 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1158 gjavah_LINK = $(GCJLINK) $(gjavah_LDFLAGS)
1159 ## See jv_convert_LDADD.
1160 gjavah_LDADD = -L$(here)/.libs libgcj-tools.la
1161 gjavah_DEPENDENCIES = libgcj-tools.la
1163 ## This is a dummy definition.
1165 gcjh_LDFLAGS = --main=gnu.classpath.tools.javah.GcjhMain \
1166 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1167 gcjh_LINK = $(GCJLINK) $(gcjh_LDFLAGS)
1168 ## See jv_convert_LDADD.
1169 gcjh_LDADD = -L$(here)/.libs libgcj-tools.la
1170 gcjh_DEPENDENCIES = libgcj-tools.la
1172 ## This is a dummy definition.
1173 gnative2ascii_SOURCES =
1174 gnative2ascii_LDFLAGS = --main=gnu.classpath.tools.native2ascii.Native2ASCII \
1175 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1176 gnative2ascii_LINK = $(GCJLINK) $(gnative2ascii_LDFLAGS)
1177 ## See jv_convert_LDADD.
1178 gnative2ascii_LDADD = -L$(here)/.libs libgcj-tools.la
1179 gnative2ascii_DEPENDENCIES = libgcj-tools.la
1181 ## This is a dummy definition.
1183 gorbd_LDFLAGS = --main=gnu.classpath.tools.orbd.Main \
1184 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1185 gorbd_LINK = $(GCJLINK) $(gorbd_LDFLAGS)
1186 ## See jv_convert_LDADD.
1187 gorbd_LDADD = -L$(here)/.libs libgcj-tools.la
1188 gorbd_DEPENDENCIES = libgcj-tools.la
1190 ## This is a dummy definition.
1192 grmid_LDFLAGS = --main=gnu.classpath.tools.rmid.Main \
1193 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1194 grmid_LINK = $(GCJLINK) $(grmid_LDFLAGS)
1195 ## See jv_convert_LDADD.
1196 grmid_LDADD = -L$(here)/.libs libgcj-tools.la
1197 grmid_DEPENDENCIES = libgcj-tools.la
1199 ## This is a dummy definition.
1200 gserialver_SOURCES =
1201 gserialver_LDFLAGS = --main=gnu.classpath.tools.serialver.SerialVer \
1202 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1203 gserialver_LINK = $(GCJLINK) $(gserialver_LDFLAGS)
1204 ## See jv_convert_LDADD.
1205 gserialver_LDADD = -L$(here)/.libs libgcj-tools.la
1206 gserialver_DEPENDENCIES = libgcj-tools.la
1208 ## This is a dummy definition.
1209 gtnameserv_SOURCES =
1210 gtnameserv_LDFLAGS = --main=gnu.classpath.tools.tnameserv.Main \
1211 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1212 gtnameserv_LINK = $(GCJLINK) $(gtnameserv_LDFLAGS)
1213 ## See jv_convert_LDADD.
1214 gtnameserv_LDADD = -L$(here)/.libs libgcj-tools.la
1215 gtnameserv_DEPENDENCIES = libgcj-tools.la
1217 ## This is a dummy definition.
1219 grmic_LDFLAGS = --main=gnu.classpath.tools.rmic.Main \
1220 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1221 grmic_LINK = $(GCJLINK) $(grmic_LDFLAGS)
1222 ## See jv_convert_LDADD.
1223 grmic_LDADD = -L$(here)/.libs libgcj-tools.la
1224 grmic_DEPENDENCIES = libgcj-tools.la
1226 ## This is a dummy definition.
1227 grmiregistry_SOURCES =
1228 grmiregistry_LDFLAGS = --main=gnu.classpath.tools.rmiregistry.Main \
1229 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1230 grmiregistry_LINK = $(GCJLINK) $(grmiregistry_LDFLAGS)
1231 ## See jv_convert_LDADD.
1232 grmiregistry_LDADD = -L$(here)/.libs libgcj-tools.la
1233 grmiregistry_DEPENDENCIES = libgcj-tools.la
1235 ## This is a dummy definition.
1237 gjdoc_LDFLAGS = --main=gnu.classpath.tools.gjdoc.Main \
1238 -Djava.class.path=$(ANTLR_JAR) \
1239 -rpath $(toolexeclibdir) -shared-libgcc $(THREADLDFLAGS) $(extra_ldflags)
1240 gjdoc_LINK = $(GCJLINK) $(gjdoc_LDFLAGS)
1241 ## See jv_convert_LDADD.
1242 gjdoc_LDADD = -L$(here)/.libs libgcj-tools.la
1243 gjdoc_DEPENDENCIES = libgcj-tools.la
1245 ## ################################################################
1247 nat_jdwp_source_files = \
1248 gnu/classpath/jdwp/natVMFrame.cc \
1249 gnu/classpath/jdwp/natVMMethod.cc \
1250 gnu/classpath/jdwp/natVMVirtualMachine.cc
1252 nat_jvmti_source_files = \
1253 gnu/gcj/jvmti/natBreakpoint.cc \
1254 gnu/gcj/jvmti/natNormalBreakpoint.cc
1256 nat_jdwp_source_files =
1257 nat_jvmti_source_files =
1259 ## This lists all the C++ source files in subdirectories.
1260 nat_source_files = \
1261 $(nat_jdwp_source_files) \
1262 gnu/classpath/natConfiguration.cc \
1263 gnu/classpath/natSystemProperties.cc \
1264 gnu/classpath/natVMStackWalker.cc \
1265 gnu/gcj/natCore.cc \
1266 gnu/gcj/convert/JIS0208_to_Unicode.cc \
1267 gnu/gcj/convert/JIS0212_to_Unicode.cc \
1268 gnu/gcj/convert/Unicode_to_JIS.cc \
1269 gnu/gcj/convert/natIconv.cc \
1270 gnu/gcj/convert/natInput_EUCJIS.cc \
1271 gnu/gcj/convert/natInput_SJIS.cc \
1272 gnu/gcj/convert/natOutput_EUCJIS.cc \
1273 gnu/gcj/convert/natOutput_SJIS.cc \
1274 gnu/gcj/io/natSimpleSHSStream.cc \
1276 $(nat_jvmti_source_files) \
1277 gnu/gcj/runtime/natFinalizerThread.cc \
1278 gnu/gcj/runtime/natSharedLibLoader.cc \
1279 gnu/gcj/runtime/natSystemClassLoader.cc \
1280 gnu/gcj/runtime/natStringBuffer.cc \
1281 gnu/gcj/util/natDebug.cc \
1282 gnu/gcj/util/natGCInfo.cc \
1283 gnu/java/lang/natMainThread.cc \
1284 gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc \
1285 gnu/java/lang/management/natVMCompilationMXBeanImpl.cc \
1286 gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc \
1287 gnu/java/lang/management/natVMMemoryMXBeanImpl.cc \
1288 gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc \
1289 gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc \
1290 gnu/java/lang/management/natVMOperatingSystemMXBeanImpl.cc \
1291 gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc \
1292 gnu/java/lang/management/natVMThreadMXBeanImpl.cc \
1293 gnu/java/net/natPlainDatagramSocketImpl.cc \
1294 gnu/java/net/natPlainSocketImpl.cc \
1295 gnu/java/net/protocol/core/natCoreInputStream.cc \
1296 gnu/java/nio/natVMPipe.cc \
1297 gnu/java/nio/natVMSelector.cc \
1298 gnu/java/nio/natNIOServerSocket.cc \
1299 gnu/java/nio/natVMChannel.cc \
1300 gnu/java/nio/channels/natFileChannelImpl.cc \
1301 gnu/java/security/jce/prng/natVMSecureRandom.cc \
1302 java/io/natFile.cc \
1303 java/io/natVMObjectInputStream.cc \
1304 java/io/natVMObjectStreamClass.cc \
1305 java/lang/natCharacter.cc \
1306 java/lang/natClass.cc \
1307 java/lang/natClassLoader.cc \
1308 java/lang/natConcreteProcess.cc \
1309 java/lang/natVMDouble.cc \
1310 java/lang/natVMFloat.cc \
1311 java/lang/natMath.cc \
1312 java/lang/natObject.cc \
1313 java/lang/natRuntime.cc \
1314 java/lang/natString.cc \
1315 java/lang/natAbstractStringBuffer.cc \
1316 java/lang/natSystem.cc \
1317 java/lang/natThread.cc \
1318 java/lang/natThreadLocal.cc \
1319 java/lang/natVMClassLoader.cc \
1320 java/lang/natVMProcess.cc \
1321 java/lang/natVMThrowable.cc \
1322 java/lang/ref/natReference.cc \
1323 java/lang/reflect/natArray.cc \
1324 java/lang/reflect/natConstructor.cc \
1325 java/lang/reflect/natField.cc \
1326 java/lang/reflect/natMethod.cc \
1327 java/lang/reflect/natVMProxy.cc \
1328 java/net/natVMInetAddress.cc \
1329 java/net/natVMNetworkInterface.cc \
1330 java/net/natVMURLConnection.cc \
1331 java/nio/channels/natVMChannels.cc \
1332 java/nio/natVMDirectByteBufferImpl.cc \
1333 java/security/natVMAccessController.cc \
1334 java/security/natVMAccessControlState.cc \
1335 java/text/natCollator.cc \
1336 java/util/natVMTimeZone.cc \
1337 java/util/concurrent/atomic/natAtomicLong.cc \
1338 java/util/logging/natLogger.cc \
1339 java/util/zip/natDeflater.cc \
1340 java/util/zip/natInflater.cc \
1341 sun/misc/natUnsafe.cc
1343 xlib_nat_source_files = \
1344 gnu/gcj/xlib/natClip.cc \
1345 gnu/gcj/xlib/natColormap.cc \
1346 gnu/gcj/xlib/natDisplay.cc \
1347 gnu/gcj/xlib/natDrawable.cc \
1348 gnu/gcj/xlib/natFont.cc \
1349 gnu/gcj/xlib/natGC.cc \
1350 gnu/gcj/xlib/natPixmap.cc \
1351 gnu/gcj/xlib/natScreen.cc \
1352 gnu/gcj/xlib/natVisual.cc \
1353 gnu/gcj/xlib/natWMSizeHints.cc \
1354 gnu/gcj/xlib/natWindow.cc \
1355 gnu/gcj/xlib/natWindowAttributes.cc \
1356 gnu/gcj/xlib/natXAnyEvent.cc \
1357 gnu/gcj/xlib/natXButtonEvent.cc \
1358 gnu/gcj/xlib/natXColor.cc \
1359 gnu/gcj/xlib/natXConfigureEvent.cc \
1360 gnu/gcj/xlib/natXException.cc \
1361 gnu/gcj/xlib/natXExposeEvent.cc \
1362 gnu/gcj/xlib/natXImage.cc \
1363 gnu/gcj/xlib/natXUnmapEvent.cc
1365 ## ################################################################
1368 ## Creating and installing sources.zip
1371 ## Create a zip holding all the sources. This can be meaningfully
1377 ( cd $(srcdir)/classpath; \
1378 find java gnu javax org sun -name '*.java' -print | \
1379 while read file; do \
1380 ## Ugly code to avoid "echo -C". Must separate each entry by a newline
1382 echo "x-C" | sed -e 's/^.//'; \
1383 echo $(srcdir)/classpath; \
1386 ( cd $(srcdir)/classpath/external/sax; \
1387 find org -name '*.java' -print | \
1388 while read file; do \
1389 echo "x-C" | sed -e 's/^.//'; \
1390 echo $(srcdir)/classpath/external/sax; \
1393 ( cd $(srcdir)/classpath/external/relaxngDatatype; \
1394 find org -name '*.java' -print | \
1395 while read file; do \
1396 echo "x-C" | sed -e 's/^.//'; \
1397 echo $(srcdir)/classpath/external/relaxngDatatype; \
1400 ( cd $(srcdir)/classpath/external/w3c_dom; \
1401 find org -name '*.java' -print | \
1402 while read file; do \
1403 echo "x-C" | sed -e 's/^.//'; \
1404 echo $(srcdir)/classpath/external/w3c_dom; \
1407 ## Now the build tree.
1409 find gnu java -name '*.java' -print | \
1410 while read file; do \
1411 echo "x-C" | sed -e 's/^.//'; \
1416 ## Many of the above circumlocutions were because ZIP used to be a
1417 ## relative path to fastjar. It didn't seem worthwhile to change the
1418 ## code when we moved to an external jar.
1419 $(JAR) -cfM@ $$here/src.zip
1420 ## Override GNU Classpath sources with libgcj replacements.
1424 find gnu java -name '*.java' -print | \
1425 while read file; do \
1426 echo "x-C" | sed -e 's/^.//'; \
1431 $(JAR) -ufM@ $$here/src.zip
1433 ## We use a variable for this in case the user wants to override it.
1434 sourcesdir = $(jardir)
1436 install-src.zip: src.zip
1437 $(INSTALL_DATA) src.zip $(DESTDIR)$(sourcesdir)/src-$(gcc_version).zip
1440 ## ################################################################
1443 ## Dependency tracking madness.
1446 ## This is an evil hack to work around an automake limitation. We
1447 ## need to ensure that all CNI headers are built, not just the ones
1448 ## used internally by libgcj. We can't make the .o files depend on
1449 ## nat_headers, because in that case we'll force a complete rebuild of
1450 ## the C++ code whenever any .java file is touched. So instead we
1451 ## have a dummy rule which is only used once, namely the first time a
1452 ## build is done. On subsequent builds, the dependency tracking for
1453 ## the .cc compilations will have picked up the .h files, and these
1454 ## will be built directly as needed.
1457 ## Note that we don't use a real dependency here, since we don't want
1458 ## to rebuild all the headers here when the header list changes. If
1459 ## we did rebuild here, then any addition of a .java file would cause
1460 ## a large number of recompilations.
1461 $(MAKE) create-headers
1462 @echo > headers.stamp
1464 headers_to_make = $(nat_headers)
1466 headers_to_make += $(xlib_nat_headers)
1469 create-headers: $(headers_to_make)
1471 .PHONY: create-headers
1473 $(libgcj_la_OBJECTS) $(gcj_dbtool_OBJECTS) $(xlib_nat_files): headers.stamp
1474 $(libgij_la_OBJECTS): headers.stamp
1475 $(libjvm_la_OBJECTS): headers.stamp
1477 ## ################################################################
1480 ## This section is for make and multilib madness.
1483 # Work around what appears to be a GNU make bug handling MAKEFLAGS
1484 # values defined in terms of make variables, as is the case for CC and
1485 # friends when we are called from the top level Makefile.
1487 "AR_FLAGS=$(AR_FLAGS)" \
1488 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
1489 "CFLAGS=$(CFLAGS)" \
1490 "CXXFLAGS=$(CXXFLAGS)" \
1491 "CPPFLAGS=$(CPPFLAGS)" \
1492 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
1493 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
1494 "INSTALL=$(INSTALL)" \
1495 "INSTALL_DATA=$(INSTALL_DATA)" \
1496 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
1497 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
1498 "GCJFLAGS=$(GCJFLAGS)" \
1499 "LDFLAGS=$(LDFLAGS)" \
1500 "LIBCFLAGS=$(LIBCFLAGS)" \
1501 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
1503 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
1504 "PICFLAG=$(PICFLAG)" \
1505 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
1507 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
1508 "exec_prefix=$(exec_prefix)" \
1509 "datadir=$(datadir)" \
1510 "infodir=$(infodir)" \
1511 "libdir=$(libdir)" \
1512 "mandir=$(mandir)" \
1513 "prefix=$(prefix)" \
1514 "gxx_include_dir=$(gxx_include_dir)" \
1518 "LIBCFLAGS=$(LIBCFLAGS)" \
1520 "PICFLAG=$(PICFLAG)" \
1521 "RANLIB=$(RANLIB)" \
1522 "DESTDIR=$(DESTDIR)" \
1525 # Subdir rules rely on $(FLAGS_TO_PASS)
1526 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
1528 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
1532 # Multilib support variables.
1541 .PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
1542 maintainer-clean-multi
1544 all-recursive: all-multi
1545 install-recursive: install-multi
1546 mostlyclean-recursive: mostlyclean-multi
1547 clean-recursive: clean-multi
1548 distclean-recursive: distclean-multi
1549 maintainer-clean-recursive: maintainer-clean-multi
1552 : $(MAKE) ; exec $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
1554 $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
1556 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
1558 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
1560 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
1561 maintainer-clean-multi:
1562 $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean