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