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