* arm-dis.c (print_insn): Fixed search for next
[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
42# These should all be the same program too.
43SIZE_PROG=size
44NM_PROG=nm-new
45OBJDUMP_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 49DEMANGLER_PROG=cxxfilt
252b5132
RH
50
51ADDR2LINE_PROG=addr2line
52
53NLMCONV_PROG=nlmconv
54DLLTOOL_PROG=dlltool
55WINDRES_PROG=windres
692ed3e7 56WINDMC_PROG=windmc
252b5132
RH
57DLLWRAP_PROG=dllwrap
58
8b42747f 59SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
252b5132 60
692ed3e7 61bin_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
65RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
66noinst_PROGRAMS = $(RENAMED_PROGS) @BUILD_MISC@
252b5132 67
692ed3e7 68EXTRA_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 71TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
252b5132
RH
72
73BASEDIR = $(srcdir)/..
74BFDDIR = $(BASEDIR)/bfd
75INCDIR = $(BASEDIR)/include
76
14ec8efd 77AM_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 83HFILES = \
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 89GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
556274f9 90BUILT_SOURCES = $(GENERATED_HFILES)
252b5132 91
a6637ec0 92CFILES = \
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
107GENERATED_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
111DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
112WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
113
114# Code shared by all the binutils.
115BULIBS = bucomm.c version.c filemode.c
116
117BFDLIB = ../bfd/libbfd.la
118
119OPCODES = ../opcodes/libopcodes.la
120
121LIBIBERTY = ../libiberty/libiberty.a
122
123POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
124po/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
128EXPECT = expect
129RUNTEST = runtest
252b5132
RH
130
131CC_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
146check-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 158installcheck-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
164size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
165objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES)
166nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 167ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
168strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
169strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 170ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
171cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
172objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
173nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
174srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
175sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
176coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
22a84b55 177dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
cd6a2ed0
NC
178windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
179windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
8b42747f
AM
180addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
181readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
182dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
20e95c23
DJ
183
184LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
252b5132
RH
185
186size_SOURCES = size.c $(BULIBS)
187
188objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
189
190strings_SOURCES = strings.c $(BULIBS)
191
19e6b90e 192readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c
20e95c23 193readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
252b5132
RH
194
195strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
196
ed180cc5 197nm_new_SOURCES = nm.c $(BULIBS)
252b5132 198
ed180cc5 199objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
20e95c23 200objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
252b5132 201
8b1e6df3 202objdump.o:objdump.c
556274f9
RW
203if am__fastdepCC
204 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
205 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
206else
207if AMDEP
208 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
209 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
210endif
8b1e6df3 211 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
556274f9 212endif
8b1e6df3 213
bb279dc0 214cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
252b5132 215
eb1e0e80
NC
216ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
217 emul_$(EMULATION).c $(BULIBS)
556274f9 218EXTRA_ar_SOURCES = $(CFILES)
20e95c23 219ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 220
eb1e0e80
NC
221ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
222 binemul.c emul_$(EMULATION).c $(BULIBS)
20e95c23 223ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 224
ed180cc5 225addr2line_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 245sysroff.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
250sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
251 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
252
253sysinfo$(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 256syslex.o: syslex.c sysinfo.h config.h
252b5132 257 if [ -r syslex.c ]; then \
6ee4cb2d 258 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) syslex.c ; \
252b5132 259 else \
6ee4cb2d 260 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex.c ;\
252b5132
RH
261 fi
262
556274f9 263sysinfo.o: sysinfo.c
252b5132 264 if [ -r sysinfo.c ]; then \
6ee4cb2d 265 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
252b5132 266 else \
6ee4cb2d 267 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
252b5132
RH
268 fi
269
1d97d67f 270bin2c$(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
273embedspu: 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
278sysinfo.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
282arparse.o: arparse.c
283if 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
286else
287if AMDEP
288 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
289 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
290endif
7bb7d81f 291 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
556274f9
RW
292endif
293
294arlex.o: arlex.c
295if 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
298else
299if AMDEP
300 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
301 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
302endif
7bb7d81f 303 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
556274f9
RW
304endif
305
306sysroff.o: sysroff.c
307if 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
310else
311if AMDEP
312 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
313 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314endif
7bb7d81f 315 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
556274f9
RW
316endif
317
318defparse.o: defparse.c
319if 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
322else
323if AMDEP
324 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
325 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
326endif
7bb7d81f 327 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
556274f9
RW
328endif
329
330deflex.o: deflex.c
331if 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
334else
335if AMDEP
336 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
337 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338endif
7bb7d81f 339 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
556274f9
RW
340endif
341
342nlmheader.o: nlmheader.c
343if 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
346else
347if AMDEP
348 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
349 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350endif
7bb7d81f 351 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
556274f9
RW
352endif
353
354rcparse.o: rcparse.c
355if 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
358else
359if AMDEP
360 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
361 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362endif
7bb7d81f 363 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
556274f9
RW
364endif
365
366mcparse.o: mcparse.c
367if 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
370else
371if AMDEP
372 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
373 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
374endif
7bb7d81f 375 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
556274f9
RW
376endif
377
378rclex.o: rclex.c
379if am__fastdepCC
380 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
381 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382else
383if AMDEP
384 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
385 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386endif
387 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
388endif
389
390mclex.o: mclex.c
391if am__fastdepCC
392 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
393 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
394else
395if AMDEP
396 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
397 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398endif
399 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
400endif
ceae3e33 401
252b5132 402srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
556274f9 403srconv.o: sysroff.c
252b5132 404
0724d64b 405dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
20e95c23 406dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
252b5132 407
dc3c06c2 408dlltool.o:
556274f9
RW
409if am__fastdepCC
410 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
411 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
412else
413if AMDEP
414 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
415 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
416endif
252b5132 417 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
556274f9 418endif
252b5132 419
dc3c06c2 420rescoff.o:
556274f9
RW
421if am__fastdepCC
422 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
423 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
424else
425if AMDEP
426 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
427 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
428endif
09cda596 429 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
556274f9 430endif
09cda596 431
252b5132
RH
432coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
433
434sysdump_SOURCES = sysdump.c $(BULIBS)
4a29415d 435sysdump.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
439nlmconv.o: nlmconv.c
440if 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
445else
446if AMDEP
447 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
448 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
449endif
252b5132
RH
450 ldname=`echo ld | sed '$(transform)'`; \
451 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
556274f9 452endif
252b5132
RH
453
454nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
455
4a594fce 456windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
252b5132 457 winduni.c resres.c $(BULIBS)
cd6a2ed0 458windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
252b5132 459
692ed3e7
NC
460windmc_SOURCES = windmc.c mcparse.y mclex.c \
461 winduni.c $(BULIBS)
cd6a2ed0 462windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
692ed3e7 463
0724d64b 464dllwrap_SOURCES = dllwrap.c version.c
20e95c23 465dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
252b5132
RH
466
467
c45021f2 468EXTRA_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 472diststuff: $(EXTRA_DIST) info
e3e71e27 473all: info
252b5132 474
1d97d67f 475DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak
252b5132 476
1d97d67f
AM
477MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
478 binutils.log binutils.sum abcdefgh*
252b5132
RH
479mostlyclean-local:
480 -rm -rf tmpdir
481
252b5132
RH
482.PHONY: install-exec-local
483
a7186e88 484install-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
This page took 0.521437 seconds and 4 git commands to generate.