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