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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [Makefile.am] - Blame information for rev 263

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 khays
# Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = foreign
4
 
5
SUBDIRS = po testsuite
6
 
7
tooldir = $(exec_prefix)/$(target_alias)
8
 
9
ACLOCAL_AMFLAGS = -I ../bfd -I ../config
10
 
11
AM_CFLAGS = $(WARN_CFLAGS) $(LFS_CFLAGS) $(RANDOM_SEED_CFLAGS)
12
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CFLAGS) $(RANDOM_SEED_CFLAGS)
13
 
14
AM_CPPFLAGS = \
15
        -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
16
        -DLOCALEDIR="\"$(datadir)/locale\"" \
17
        -DBINDIR="\"$(bindir)\"" -DTOOLBINDIR="\"$(tooldir)/bin\"" \
18 163 khays
        -DTOOLLIBDIR="\"$(tooldir)/lib\"" @INCINTL@
19 27 khays
 
20
LIBIBERTY = ../libiberty/libiberty.a
21
 
22
if PLUGINS
23
LIBDL = -ldl
24
endif
25
 
26
if THREADS
27
THREADSLIB = -lpthread
28
endif
29
 
30
AM_YFLAGS = -d
31
 
32
# Automake 1.10+ disables lex and yacc output file regeneration if
33
# maintainer mode is disabled.  Avoid this.
34
am__skiplex =
35
am__skipyacc =
36
 
37
noinst_PROGRAMS = ld-new incremental-dump
38
noinst_LIBRARIES = libgold.a
39
 
40
CCFILES = \
41
        archive.cc \
42
        attributes.cc \
43
        binary.cc \
44
        common.cc \
45
        compressed_output.cc \
46
        copy-relocs.cc \
47
        cref.cc \
48
        defstd.cc \
49
        descriptors.cc \
50
        dirsearch.cc \
51
        dynobj.cc \
52
        dwarf_reader.cc \
53
        ehframe.cc \
54
        errors.cc \
55
        expression.cc \
56
        fileread.cc \
57
        gc.cc \
58
        gold.cc \
59
        gold-threads.cc \
60
        icf.cc \
61
        incremental.cc \
62
        int_encoding.cc \
63
        layout.cc \
64
        mapfile.cc \
65
        merge.cc \
66
        object.cc \
67
        options.cc \
68
        output.cc \
69
        parameters.cc \
70
        plugin.cc \
71
        readsyms.cc \
72
        reduced_debug_output.cc \
73
        reloc.cc \
74
        resolve.cc \
75
        script-sections.cc \
76
        script.cc \
77
        stringpool.cc \
78
        symtab.cc \
79
        target.cc \
80
        target-select.cc \
81
        timer.cc \
82
        version.cc \
83
        workqueue.cc \
84
        workqueue-threads.cc
85
 
86
HFILES = \
87
        arm-reloc-property.h \
88
        archive.h \
89
        attributes.h \
90
        binary.h \
91
        common.h \
92
        compressed_output.h \
93
        copy-relocs.h \
94
        cref.h \
95
        defstd.h \
96
        dirsearch.h \
97
        descriptors.h \
98
        dynobj.h \
99
        dwarf_reader.h \
100
        ehframe.h \
101
        errors.h \
102
        fileread.h \
103
        freebsd.h \
104
        gc.h \
105
        gold.h \
106
        gold-threads.h \
107
        icf.h \
108
        int_encoding.h \
109
        layout.h \
110
        mapfile.h \
111
        merge.h \
112
        object.h \
113
        options.h \
114
        output.h \
115
        parameters.h \
116
        plugin.h \
117
        readsyms.h \
118
        reduced_debug_output.h \
119
        reloc.h \
120
        reloc-types.h \
121
        script-c.h \
122
        script-sections.h \
123
        script.h \
124
        stringpool.h \
125
        symtab.h \
126
        target.h \
127
        target-reloc.h \
128
        target-select.h \
129
        timer.h \
130
        tls.h \
131
        token.h \
132
        workqueue.h \
133
        workqueue-internal.h
134
 
135
YFILES = \
136
        yyscript.y
137
 
138
DEFFILES = arm-reloc.def
139
 
140
EXTRA_DIST = yyscript.c yyscript.h
141
 
142
TARGETSOURCES = \
143
        i386.cc x86_64.cc sparc.cc powerpc.cc arm.cc arm-reloc-property.cc
144
 
145
ALL_TARGETOBJS = \
146
        i386.$(OBJEXT) x86_64.$(OBJEXT) sparc.$(OBJEXT) powerpc.$(OBJEXT) \
147
        arm.$(OBJEXT) arm-reloc-property.$(OBJEXT)
148
 
149
libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES) $(DEFFILES)
150
libgold_a_LIBADD = $(LIBOBJS)
151
 
152
sources_var = main.cc
153
deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP)
154 163 khays
ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) \
155 27 khays
         $(THREADSLIB) $(LIBDL)
156 163 khays
ldflags_var = $(GOLD_LDFLAGS)
157 27 khays
 
158
ld_new_SOURCES = $(sources_var)
159
ld_new_DEPENDENCIES = $(deps_var)
160
ld_new_LDADD = $(ldadd_var)
161 163 khays
ld_new_LDFLAGS = $(ldflags_var)
162 27 khays
 
163
EXTRA_ld_new_SOURCES = $(TARGETSOURCES)
164
 
165
incremental_dump_SOURCES = incremental-dump.cc
166
incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \
167
        $(LIBINTL_DEP)
168
incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \
169
         $(THREADSLIB) $(LIBDL)
170
 
171
# Use an explicit dependency for the bison generated header file.
172
expression.$(OBJEXT): yyscript.h
173
script-sections.$(OBJEXT): yyscript.h
174
script.$(OBJEXT): yyscript.h
175
 
176
# We have to build libgold.a before we run the tests.
177
check: libgold.a
178
 
179
.PHONY: install-exec-local
180
 
181
install-exec-local: ld-new$(EXEEXT)
182
        $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
183
        n=`echo $(installed_linker) | sed '$(transform)'`; \
184
        $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
185
        if test "$(bindir)" != "$(tooldir)/bin"; then \
186
          rm -f $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
187
          ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT) >/dev/null 2>/dev/null \
188
          || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
189
        fi; \
190
        if test "x$(install_as_default)" = "xyes"; then \
191
          ld=`echo ld | sed '$(transform)'`; \
192
          rm -f $(DESTDIR)$(bindir)/$${ld}$(EXEEXT); \
193
          ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(bindir)/$${ld}$(EXEEXT) >/dev/null 2>/dev/null \
194
          || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${ld}$(EXEEXT); \
195
          if test "$(bindir)" != "$(tooldir)/bin"; then \
196
            rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
197
            ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
198
            || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
199
          fi; \
200
        fi
201
 
202
# We want install to imply install-info as per GNU standards, despite
203
# the cygnus option.
204
install-data-local: install-info
205
 
206
POTFILES= $(CCFILES) $(HFILES) $(TARGETSOURCES)
207
 
208
po/POTFILES.in: @MAINT@ Makefile
209
        for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
210
          && mv tmp $(srcdir)/po/POTFILES.in
211
 
212
# Bootstrap test support.  We use ld-new to build ld1, then use ld1 to
213
# build ld2.  ld1 and ld2 should be identical.  ld-new need not be
214
# identical to ld1, since it was linked with the host linker.
215
 
216
if GCC
217
if NATIVE_LINKER
218
 
219
gcctestdir1/ld: ld-new
220
        test -d gcctestdir1 || mkdir -p gcctestdir1
221
        rm -f gcctestdir1/ld
222
        (cd gcctestdir1 && $(LN_S) ../ld-new ld)
223
 
224
ld1_SOURCES = $(sources_var)
225
ld1_DEPENDENCIES = $(deps_var) gcctestdir1/ld
226
ld1_LDADD = $(ldadd_var)
227
ld1_LDFLAGS = -Bgcctestdir1/
228
 
229
gcctestdir2/ld: ld1
230
        test -d gcctestdir2 || mkdir -p gcctestdir2
231
        rm -f gcctestdir2/ld
232
        (cd gcctestdir2 && $(LN_S) ../ld1 ld)
233
 
234
ld2_SOURCES = $(sources_var)
235
ld2_DEPENDENCIES = $(deps_var) gcctestdir2/ld
236
ld2_LDADD = $(ldadd_var)
237
ld2_LDFLAGS = -Bgcctestdir2/
238
 
239
bootstrap-test: ld2
240
        rm -f $@
241
        echo "#!/bin/sh" > $@
242
        echo "cmp ld1 ld2" > $@
243
        chmod +x $@
244
 
245
libgold-1-r.o: gcctestdir1/ld libgold.a
246
        gcctestdir1/ld -o $@ -r --whole-archive libgold.a
247
 
248
ld1_r_SOURCES = $(sources_var)
249
ld1_r_DEPENDENCIES = libgold-1-r.o $(deps_var) gcctestdir1/ld
250
ld1_r_LDADD = libgold-1-r.o $(ldadd_var)
251
ld1_r_LDFLAGS = -Bgcctestdir1/
252
 
253
gcctestdir2-r/ld: ld1-r
254
        test -d gcctestdir2-r || mkdir -p gcctestdir2-r
255
        rm -f gcctestdir2-r/ld
256
        (cd gcctestdir2-r && $(LN_S) ../ld1-r ld)
257
 
258
libgold-2-r.o: gcctestdir2-r/ld libgold.a
259
        gcctestdir2-r/ld -o $@ -r --whole-archive libgold.a
260
 
261
ld2_r_SOURCES = $(sources_var)
262
ld2_r_DEPENDENCIES = libgold-2-r.o $(deps_var) gcctestdir2-r/ld
263
ld2_r_LDADD = libgold-2-r.o $(ldadd_var)
264
ld2_r_LDFLAGS = -Bgcctestdir2-r/
265
 
266
bootstrap-test-r: ld2-r
267
        rm -f $@
268
        echo "#!/bin/sh" > $@
269
        echo "cmp ld1-r ld2-r" > $@
270
        chmod +x $@
271
 
272
check_PROGRAMS = ld1 ld2 ld1-r ld2-r
273
TESTS = bootstrap-test bootstrap-test-r
274
 
275
endif
276
endif

powered by: WebSVN 2.1.0

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