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