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