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