Fix extraneous complaints about missing expected TLS relocation (i386).
[deliverable/binutils-gdb.git] / binutils / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2 #
3 # Copyright (C) 2012-2016 Free Software Foundation, Inc.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
18 #
19
20 AUTOMAKE_OPTIONS = dejagnu no-dist foreign
21 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
22
23 SUBDIRS = doc po
24
25 tooldir = $(exec_prefix)/$(target_alias)
26
27 ## These aren't set by automake, because they appear in
28 ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
29 ## thus is not seen by automake.
30 CC_FOR_BUILD = @CC_FOR_BUILD@
31 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
32
33 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
34 YFLAGS = -d
35 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
36 LEXLIB = @LEXLIB@
37
38 # Automake 1.10+ disables lex and yacc output file regeneration if
39 # maintainer mode is disabled. Avoid this.
40 am__skiplex =
41 am__skipyacc =
42
43 # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
44 # -I../zlib, unless we were configured with --with-system-zlib, in which
45 # case both are empty.
46 ZLIB = @zlibdir@ -lz
47 ZLIBINC = @zlibinc@
48
49 WARN_CFLAGS = @WARN_CFLAGS@
50 NO_WERROR = @NO_WERROR@
51 AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
52 LIBICONV = @LIBICONV@
53
54 # these two are almost the same program
55 AR_PROG=ar
56 RANLIB_PROG=ranlib
57
58 # objcopy and strip should be the same program
59 OBJCOPY_PROG=objcopy
60 STRIP_PROG=strip-new
61
62 STRINGS_PROG=strings
63
64 READELF_PROG=readelf
65
66 ELFEDIT_PROG=elfedit
67
68 # These should all be the same program too.
69 SIZE_PROG=size
70 NM_PROG=nm-new
71 OBJDUMP_PROG=objdump
72
73 # This is the demangler, as a standalone program.
74 # Note: This one is used as the installed name too, unlike the above.
75 DEMANGLER_PROG=cxxfilt
76
77 ADDR2LINE_PROG=addr2line
78
79 NLMCONV_PROG=nlmconv
80 DLLTOOL_PROG=dlltool
81 WINDRES_PROG=windres
82 WINDMC_PROG=windmc
83 DLLWRAP_PROG=dllwrap
84
85 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
86
87 bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ @BUILD_WINDMC@ $(ADDR2LINE_PROG) $(READELF_PROG) $(ELFEDIT_PROG) @BUILD_DLLWRAP@
88
89 bin_SCRIPTS = @BUILD_INSTALL_MISC@
90 EXTRA_SCRIPTS = embedspu
91
92 ## Test programs.
93 BFDTEST1_PROG = bfdtest1
94 BFDTEST2_PROG = bfdtest2
95
96 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG)
97
98 ## We need a special rule to install the programs which are built with
99 ## -new, and to rename cxxfilt to c++filt.
100 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
101 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
102
103 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
104
105 # Stuff that goes in tooldir/ if appropriate.
106 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
107
108 BASEDIR = $(srcdir)/..
109 BFDDIR = $(BASEDIR)/bfd
110 INCDIR = $(BASEDIR)/include
111
112 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
113 @HDEFINES@ \
114 @INCINTL@ \
115 -DLOCALEDIR="\"$(datadir)/locale\"" \
116 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
117
118 HFILES = \
119 arsup.h binemul.h bucomm.h budbg.h \
120 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
121 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
122 windmc.h
123
124 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
125 BUILT_SOURCES = $(GENERATED_HFILES)
126
127 CFILES = \
128 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
129 coffdump.c coffgrok.c cxxfilt.c \
130 dwarf.c debug.c dlltool.c dllwrap.c \
131 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
132 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
133 nlmconv.c nm.c not-ranlib.c not-strip.c \
134 objcopy.c objdump.c prdbg.c \
135 od-xcoff.c od-macho.c \
136 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
137 resbin.c rescoff.c resrc.c resres.c \
138 size.c srconv.c stabs.c strings.c sysdump.c \
139 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
140 windres.c winduni.c wrstabs.c \
141 windmc.c mclex.c
142
143 GENERATED_CFILES = \
144 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
145 defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
146
147 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
148 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
149
150 # Extra object files for objdump
151 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
152
153 # Code shared by all the binutils.
154 BULIBS = bucomm.c version.c filemode.c
155
156 # Code shared by the ELF related programs.
157 ELFLIBS = elfcomm.c
158
159 BFDLIB = ../bfd/libbfd.la
160
161 OPCODES = ../opcodes/libopcodes.la
162
163 LIBIBERTY = ../libiberty/libiberty.a
164
165 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
166 po/POTFILES.in: @MAINT@ Makefile
167 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
168 && mv tmp $(srcdir)/po/POTFILES.in
169
170 EXPECT = expect
171 RUNTEST = runtest
172
173 CC_FOR_TARGET = ` \
174 if [ -f $$r/../gcc/xgcc ] ; then \
175 if [ -f $$r/../newlib/Makefile ] ; then \
176 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
177 else \
178 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
179 fi; \
180 else \
181 if [ "@host@" = "@target@" ] ; then \
182 echo $(CC); \
183 else \
184 echo gcc | sed '$(transform)'; \
185 fi; \
186 fi`
187
188 check-DEJAGNU: site.exp
189 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
190 r=`pwd`; export r; \
191 LC_ALL=C; export LC_ALL; \
192 EXPECT=$(EXPECT); export EXPECT; \
193 runtest=$(RUNTEST); \
194 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
195 CC="$(CC)" CC_FOR_BUILD="$(CC_FOR_BUILD)" \
196 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
197 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
198 $(RUNTESTFLAGS); \
199 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
200 fi
201
202 installcheck-local:
203 /bin/sh $(srcdir)/sanity.sh $(bindir)
204
205 # There's no global DEPENDENCIES. So, we must explicitly list everything
206 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
207 # non-empty until configure time. Ugh!
208 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
209 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
210 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
211 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
212 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
213 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
214 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
215 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
216 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
217 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
218 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
219 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
220 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
221 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
222 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
223 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
224 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
225 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
226 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
227 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
228 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
229 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
230
231 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
232
233 size_SOURCES = size.c $(BULIBS)
234
235 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
236
237 strings_SOURCES = strings.c $(BULIBS)
238
239 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
240 readelf_LDADD = $(LIBINTL) $(LIBIBERTY) $(ZLIB)
241
242 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
243 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
244
245 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
246
247 nm_new_SOURCES = nm.c $(BULIBS)
248
249 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
250 EXTRA_objdump_SOURCES = od-xcoff.c
251 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
252
253 objdump.@OBJEXT@:objdump.c
254 if am__fastdepCC
255 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
256 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
257 else
258 if AMDEP
259 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
260 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
261 endif
262 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
263 endif
264
265 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
266
267 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
268 emul_$(EMULATION).c $(BULIBS)
269 EXTRA_ar_SOURCES = $(CFILES)
270 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
271
272 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
273 binemul.c emul_$(EMULATION).c $(BULIBS)
274 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
275
276 addr2line_SOURCES = addr2line.c $(BULIBS)
277
278 # The following is commented out for the conversion to automake.
279 # This rule creates a single binary that switches between ar and ranlib
280 # by looking at argv[0]. Use this kludge to save some disk space.
281 # However, you have to install things by hand.
282 # (That is after 'make install', replace the installed ranlib by a link to ar.)
283 # Alternatively, you can install ranlib.sh as ranlib.
284 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
285 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
286 # -rm -f $(RANLIB_PROG)
287 # -ln $(AR_PROG) $(RANLIB_PROG)
288 #
289 # objcopy and strip in one binary that uses argv[0] to decide its action.
290 #
291 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
292 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
293 # -rm -f $(STRIP_PROG)
294 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
295
296 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
297 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
298 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
299 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
300
301 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
302 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
303
304 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
305 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
306
307 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
308 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
309
310 sysinfo.@OBJEXT@: sysinfo.c
311 if [ -r sysinfo.c ]; then \
312 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
313 else \
314 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
315 fi
316
317 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
318 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
319
320 embedspu: embedspu.sh Makefile
321 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
322 chmod a+x $@
323
324 # We need these for parallel make.
325 sysinfo.h: sysinfo.c
326
327 # Disable -Werror, if it has been enabled, since old versions of bison/
328 # yacc will produce working code which contain compile time warnings.
329 arparse.@OBJEXT@: arparse.c
330 if am__fastdepCC
331 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
332 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
333 else
334 if AMDEP
335 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
336 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 endif
338 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
339 endif
340
341 arlex.@OBJEXT@: arlex.c
342 if am__fastdepCC
343 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
344 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
345 else
346 if AMDEP
347 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
348 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
349 endif
350 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
351 endif
352
353 sysroff.@OBJEXT@: sysroff.c
354 if am__fastdepCC
355 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
356 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
357 else
358 if AMDEP
359 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
360 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
361 endif
362 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
363 endif
364
365 defparse.@OBJEXT@: defparse.c
366 if am__fastdepCC
367 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
368 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
369 else
370 if AMDEP
371 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
372 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 endif
374 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
375 endif
376
377 deflex.@OBJEXT@: deflex.c
378 if am__fastdepCC
379 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
380 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
381 else
382 if AMDEP
383 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
384 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
385 endif
386 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
387 endif
388
389 nlmheader.@OBJEXT@: nlmheader.c
390 if am__fastdepCC
391 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
392 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
393 else
394 if AMDEP
395 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
396 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397 endif
398 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
399 endif
400
401 rcparse.@OBJEXT@: rcparse.c
402 if am__fastdepCC
403 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
404 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
405 else
406 if AMDEP
407 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
408 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
409 endif
410 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
411 endif
412
413 mcparse.@OBJEXT@: mcparse.c
414 if am__fastdepCC
415 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
416 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
417 else
418 if AMDEP
419 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
420 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421 endif
422 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
423 endif
424
425 rclex.@OBJEXT@: rclex.c
426 if am__fastdepCC
427 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
428 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
429 else
430 if AMDEP
431 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
432 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
433 endif
434 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
435 endif
436
437 mclex.@OBJEXT@: mclex.c
438 if am__fastdepCC
439 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
440 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
441 else
442 if AMDEP
443 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
444 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
445 endif
446 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
447 endif
448
449 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
450 srconv.@OBJEXT@: sysroff.c
451
452 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
453 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
454
455 dlltool.@OBJEXT@:
456 if am__fastdepCC
457 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
458 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
459 else
460 if AMDEP
461 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
462 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
463 endif
464 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
465 endif
466
467 rescoff.@OBJEXT@:
468 if am__fastdepCC
469 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
470 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
471 else
472 if AMDEP
473 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
474 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
475 endif
476 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
477 endif
478
479 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
480
481 sysdump_SOURCES = sysdump.c $(BULIBS)
482 sysdump.@OBJEXT@: sysroff.c
483
484 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
485 # scripts, since they are only included conditionally.
486 nlmconv.@OBJEXT@: nlmconv.c
487 if am__fastdepCC
488 ldname=`echo ld | sed '$(transform)'`; \
489 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
490 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
491 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
492 else
493 if AMDEP
494 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
495 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
496 endif
497 ldname=`echo ld | sed '$(transform)'`; \
498 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
499 endif
500
501 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
502
503 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
504 winduni.c resres.c $(BULIBS)
505 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
506
507 windmc_SOURCES = windmc.c mcparse.y mclex.c \
508 winduni.c $(BULIBS)
509 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
510
511 dllwrap_SOURCES = dllwrap.c version.c
512 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
513
514
515 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
516 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
517 mcparse.h mcparse.c embedspu.sh
518
519 diststuff: $(EXTRA_DIST) info
520 all: info
521
522 # development.sh is used to determine -Werror default.
523 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
524
525 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
526
527 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
528 binutils.log binutils.sum abcdefgh*
529 mostlyclean-local:
530 -rm -rf tmpdir
531
532 .PHONY: install-exec-local
533
534 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
535 @list='$(RENAMED_PROGS)'; for p in $$list; do \
536 if test -f $$p$(EXEEXT); then \
537 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
538 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
539 else :; fi; \
540 done
541 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
542 for i in $(TOOL_PROGS); do \
543 if [ -f $$i$(EXEEXT) ]; then \
544 j=`echo $$i | sed -e 's/-new//'`; \
545 k=`echo $$j | sed '$(transform)'`; \
546 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
547 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
548 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
549 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
550 fi; \
551 else true; \
552 fi; \
553 done
This page took 0.042001 seconds and 4 git commands to generate.