OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [Makefile.am] - Blame information for rev 14

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.