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