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