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