daily update
[deliverable/binutils-gdb.git] / binutils / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
556274f9 3AUTOMAKE_OPTIONS = dejagnu no-dist foreign
79887925 4ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
252b5132 5
c45021f2 6SUBDIRS = doc po
252b5132
RH
7
8tooldir = $(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.
13CC_FOR_BUILD = @CC_FOR_BUILD@
14EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
15
7a7b06ef 16YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
252b5132 17YFLAGS = -d
7a7b06ef 18LEX = `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.
22am__skiplex =
23am__skipyacc =
24
a2d91340 25WARN_CFLAGS = @WARN_CFLAGS@
9e9b66a9 26NO_WERROR = @NO_WERROR@
a2d91340 27AM_CFLAGS = $(WARN_CFLAGS)
5ba684e2 28LIBICONV = @LIBICONV@
a2d91340 29
252b5132
RH
30# these two are almost the same program
31AR_PROG=ar
32RANLIB_PROG=ranlib
33
34# objcopy and strip should be the same program
35OBJCOPY_PROG=objcopy
36STRIP_PROG=strip-new
37
38STRINGS_PROG=strings
39
40READELF_PROG=readelf
41
30fd33bb
L
42ELFEDIT_PROG=elfedit
43
252b5132
RH
44# These should all be the same program too.
45SIZE_PROG=size
46NM_PROG=nm-new
47OBJDUMP_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 51DEMANGLER_PROG=cxxfilt
252b5132
RH
52
53ADDR2LINE_PROG=addr2line
54
55NLMCONV_PROG=nlmconv
56DLLTOOL_PROG=dlltool
57WINDRES_PROG=windres
692ed3e7 58WINDMC_PROG=windmc
252b5132
RH
59DLLWRAP_PROG=dllwrap
60
8b42747f 61SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
252b5132 62
1c10be1e
AM
63bin_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
65bin_SCRIPTS = @BUILD_INSTALL_MISC@
66EXTRA_SCRIPTS = embedspu
252b5132 67
58f594cd
L
68## Test programs.
69BFDTEST1_PROG = bfdtest1
70
71TEST_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 75RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
58f594cd 76noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
252b5132 77
692ed3e7 78EXTRA_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 81TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
252b5132
RH
82
83BASEDIR = $(srcdir)/..
84BFDDIR = $(BASEDIR)/bfd
85INCDIR = $(BASEDIR)/include
86
14ec8efd 87AM_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 93HFILES = \
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 99GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
556274f9 100BUILT_SOURCES = $(GENERATED_HFILES)
252b5132 101
a6637ec0 102CFILES = \
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
118GENERATED_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
122DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
123WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
124
6abcee90
TG
125# Extra object files for objdump
126OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
127
252b5132
RH
128# Code shared by all the binutils.
129BULIBS = bucomm.c version.c filemode.c
130
3284fe0c
L
131# Code shared by the ELF related programs.
132ELFLIBS = elfcomm.c
133
252b5132
RH
134BFDLIB = ../bfd/libbfd.la
135
136OPCODES = ../opcodes/libopcodes.la
137
138LIBIBERTY = ../libiberty/libiberty.a
139
140POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
141po/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
145EXPECT = expect
146RUNTEST = runtest
252b5132
RH
147
148CC_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
163check-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 176installcheck-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 182size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
6abcee90 183objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
8b42747f 184nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 185ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
186strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
187strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 188ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
189cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
190objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
191nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
192srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
193sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
194coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 195dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
cd6a2ed0
NC
196windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
197windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
198addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
199readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
30fd33bb 200elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
8b42747f 201dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
58f594cd 202bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
20e95c23
DJ
203
204LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
252b5132
RH
205
206size_SOURCES = size.c $(BULIBS)
207
208objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
209
210strings_SOURCES = strings.c $(BULIBS)
211
3284fe0c 212readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
20e95c23 213readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
252b5132 214
3284fe0c 215elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
30fd33bb
L
216elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
217
252b5132
RH
218strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
219
ed180cc5 220nm_new_SOURCES = nm.c $(BULIBS)
252b5132 221
3284fe0c 222objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
6abcee90
TG
223EXTRA_objdump_SOURCES = od-xcoff.c
224objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
252b5132 225
52a6ecd2 226objdump.@OBJEXT@:objdump.c
556274f9
RW
227if am__fastdepCC
228 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
229 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
230else
231if AMDEP
232 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
233 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
234endif
8b1e6df3 235 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
556274f9 236endif
8b1e6df3 237
bb279dc0 238cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
252b5132 239
eb1e0e80
NC
240ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
241 emul_$(EMULATION).c $(BULIBS)
556274f9 242EXTRA_ar_SOURCES = $(CFILES)
20e95c23 243ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 244
eb1e0e80
NC
245ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
246 binemul.c emul_$(EMULATION).c $(BULIBS)
20e95c23 247ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 248
ed180cc5 249addr2line_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 269sysroff.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
274sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
275 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
276
691bf19c
NC
277sysinfo$(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
280syslex_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 283sysinfo.@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
290bin2c$(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 293embedspu: 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
298sysinfo.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 302arparse.@OBJEXT@: arparse.c
556274f9 303if 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
306else
307if AMDEP
308 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
309 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310endif
7bb7d81f 311 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
556274f9
RW
312endif
313
52a6ecd2 314arlex.@OBJEXT@: arlex.c
556274f9 315if 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
318else
319if AMDEP
320 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
321 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322endif
7bb7d81f 323 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
556274f9
RW
324endif
325
52a6ecd2 326sysroff.@OBJEXT@: sysroff.c
556274f9 327if 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
330else
331if AMDEP
332 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
333 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334endif
7bb7d81f 335 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
556274f9
RW
336endif
337
52a6ecd2 338defparse.@OBJEXT@: defparse.c
556274f9 339if 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
342else
343if AMDEP
344 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
345 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346endif
7bb7d81f 347 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
556274f9
RW
348endif
349
52a6ecd2 350deflex.@OBJEXT@: deflex.c
556274f9 351if 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
354else
355if AMDEP
356 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
357 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358endif
7bb7d81f 359 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
556274f9
RW
360endif
361
52a6ecd2 362nlmheader.@OBJEXT@: nlmheader.c
556274f9 363if 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
366else
367if AMDEP
368 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
369 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
370endif
7bb7d81f 371 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
556274f9
RW
372endif
373
52a6ecd2 374rcparse.@OBJEXT@: rcparse.c
556274f9 375if 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
378else
379if AMDEP
380 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
381 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
382endif
7bb7d81f 383 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
556274f9
RW
384endif
385
52a6ecd2 386mcparse.@OBJEXT@: mcparse.c
556274f9 387if 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
390else
391if AMDEP
392 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
393 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394endif
7bb7d81f 395 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
556274f9
RW
396endif
397
52a6ecd2 398rclex.@OBJEXT@: rclex.c
556274f9
RW
399if am__fastdepCC
400 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
401 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
402else
403if AMDEP
404 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
405 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406endif
407 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
408endif
409
52a6ecd2 410mclex.@OBJEXT@: mclex.c
556274f9
RW
411if am__fastdepCC
412 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
413 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
414else
415if AMDEP
416 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
417 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
418endif
419 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
420endif
ceae3e33 421
252b5132 422srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
52a6ecd2 423srconv.@OBJEXT@: sysroff.c
252b5132 424
0724d64b 425dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
20e95c23 426dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 427
52a6ecd2 428dlltool.@OBJEXT@:
556274f9
RW
429if am__fastdepCC
430 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
431 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
432else
433if AMDEP
434 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
435 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436endif
252b5132 437 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
556274f9 438endif
252b5132 439
52a6ecd2 440rescoff.@OBJEXT@:
556274f9
RW
441if am__fastdepCC
442 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
443 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
444else
445if AMDEP
446 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
447 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
448endif
09cda596 449 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
556274f9 450endif
09cda596 451
252b5132
RH
452coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
453
454sysdump_SOURCES = sysdump.c $(BULIBS)
52a6ecd2 455sysdump.@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 459nlmconv.@OBJEXT@: nlmconv.c
556274f9
RW
460if 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
465else
466if AMDEP
467 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
468 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
469endif
252b5132
RH
470 ldname=`echo ld | sed '$(transform)'`; \
471 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
556274f9 472endif
252b5132
RH
473
474nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
475
4a594fce 476windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
252b5132 477 winduni.c resres.c $(BULIBS)
cd6a2ed0 478windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
252b5132 479
692ed3e7
NC
480windmc_SOURCES = windmc.c mcparse.y mclex.c \
481 winduni.c $(BULIBS)
cd6a2ed0 482windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
692ed3e7 483
0724d64b 484dllwrap_SOURCES = dllwrap.c version.c
20e95c23 485dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
252b5132
RH
486
487
c45021f2 488EXTRA_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 492diststuff: $(EXTRA_DIST) info
e3e71e27 493all: info
252b5132 494
fe168a19
AS
495# We extract version from bfd/configure.in, make sure to rerun configure
496# when BFD's version changes.
497CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
498
1c10be1e 499DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
252b5132 500
1d97d67f
AM
501MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
502 binutils.log binutils.sum abcdefgh*
252b5132
RH
503mostlyclean-local:
504 -rm -rf tmpdir
505
252b5132
RH
506.PHONY: install-exec-local
507
a7186e88 508install-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
This page took 0.620122 seconds and 4 git commands to generate.