]>
Commit | Line | Data |
---|---|---|
37cc8ec1 | 1 | # Makefile.in generated automatically by automake 1.4 from Makefile.am |
252b5132 | 2 | |
37cc8ec1 | 3 | # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
252b5132 RH |
4 | # This Makefile.in is free software; the Free Software Foundation |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
37cc8ec1 | 13 | |
252b5132 RH |
14 | SHELL = @SHELL@ |
15 | ||
16 | srcdir = @srcdir@ | |
17 | top_srcdir = @top_srcdir@ | |
18 | VPATH = @srcdir@ | |
19 | prefix = @prefix@ | |
20 | exec_prefix = @exec_prefix@ | |
21 | ||
22 | bindir = @bindir@ | |
23 | sbindir = @sbindir@ | |
24 | libexecdir = @libexecdir@ | |
25 | datadir = @datadir@ | |
26 | sysconfdir = @sysconfdir@ | |
27 | sharedstatedir = @sharedstatedir@ | |
28 | localstatedir = @localstatedir@ | |
29 | libdir = @libdir@ | |
30 | infodir = @infodir@ | |
31 | mandir = @mandir@ | |
32 | includedir = @includedir@ | |
33 | oldincludedir = /usr/include | |
34 | ||
35 | DESTDIR = | |
36 | ||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | |
38 | pkglibdir = $(libdir)/@PACKAGE@ | |
39 | pkgincludedir = $(includedir)/@PACKAGE@ | |
40 | ||
41 | top_builddir = . | |
42 | ||
43 | ACLOCAL = @ACLOCAL@ | |
44 | AUTOCONF = @AUTOCONF@ | |
45 | AUTOMAKE = @AUTOMAKE@ | |
46 | AUTOHEADER = @AUTOHEADER@ | |
47 | ||
48 | INSTALL = @INSTALL@ | |
37cc8ec1 | 49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) |
252b5132 RH |
50 | INSTALL_DATA = @INSTALL_DATA@ |
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
52 | transform = @program_transform_name@ | |
53 | ||
54 | NORMAL_INSTALL = : | |
55 | PRE_INSTALL = : | |
56 | POST_INSTALL = : | |
57 | NORMAL_UNINSTALL = : | |
58 | PRE_UNINSTALL = : | |
59 | POST_UNINSTALL = : | |
60 | build_alias = @build_alias@ | |
61 | build_triplet = @build@ | |
62 | host_alias = @host_alias@ | |
63 | host_triplet = @host@ | |
64 | target_alias = @target_alias@ | |
65 | target_triplet = @target@ | |
66 | AR = @AR@ | |
67 | AS = @AS@ | |
68 | BUILD_DLLTOOL = @BUILD_DLLTOOL@ | |
69 | BUILD_DLLWRAP = @BUILD_DLLWRAP@ | |
70 | BUILD_MISC = @BUILD_MISC@ | |
71 | BUILD_NLMCONV = @BUILD_NLMCONV@ | |
72 | BUILD_SRCONV = @BUILD_SRCONV@ | |
73 | BUILD_WINDRES = @BUILD_WINDRES@ | |
74 | CATALOGS = @CATALOGS@ | |
75 | CATOBJEXT = @CATOBJEXT@ | |
76 | CC = @CC@ | |
77 | DATADIRNAME = @DATADIRNAME@ | |
8a965946 | 78 | DEMANGLER_NAME = @DEMANGLER_NAME@ |
252b5132 RH |
79 | DLLTOOL = @DLLTOOL@ |
80 | DLLTOOL_DEFS = @DLLTOOL_DEFS@ | |
81 | EXEEXT = @EXEEXT@ | |
82 | GMOFILES = @GMOFILES@ | |
83 | GMSGFMT = @GMSGFMT@ | |
84 | GT_NO = @GT_NO@ | |
85 | GT_YES = @GT_YES@ | |
86 | HDEFINES = @HDEFINES@ | |
87 | INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@ | |
88 | INSTOBJEXT = @INSTOBJEXT@ | |
89 | INTLDEPS = @INTLDEPS@ | |
90 | INTLOBJS = @INTLOBJS@ | |
252b5132 RH |
91 | LIBTOOL = @LIBTOOL@ |
92 | LN_S = @LN_S@ | |
93 | MAINT = @MAINT@ | |
94 | MAKEINFO = @MAKEINFO@ | |
95 | MKINSTALLDIRS = @MKINSTALLDIRS@ | |
96 | MSGFMT = @MSGFMT@ | |
97 | NLMCONV_DEFS = @NLMCONV_DEFS@ | |
a74801ba | 98 | OBJDUMP = @OBJDUMP@ |
252b5132 RH |
99 | PACKAGE = @PACKAGE@ |
100 | POFILES = @POFILES@ | |
101 | POSUB = @POSUB@ | |
102 | RANLIB = @RANLIB@ | |
103 | UNDERSCORE = @UNDERSCORE@ | |
104 | USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ | |
105 | USE_NLS = @USE_NLS@ | |
252b5132 RH |
106 | VERSION = @VERSION@ |
107 | l = @l@ | |
108 | ||
109 | INTLLIBS = @INTLLIBS@ | |
110 | ||
111 | AUTOMAKE_OPTIONS = cygnus dejagnu | |
112 | ||
113 | SUBDIRS = po | |
114 | ||
115 | tooldir = $(exec_prefix)/$(target_alias) | |
116 | ||
117 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
118 | EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ | |
119 | ||
7a7b06ef | 120 | YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi` |
252b5132 | 121 | YFLAGS = -d |
7a7b06ef | 122 | LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` |
252b5132 | 123 | |
a2d91340 AC |
124 | WARN_CFLAGS = @WARN_CFLAGS@ |
125 | AM_CFLAGS = $(WARN_CFLAGS) | |
126 | ||
252b5132 RH |
127 | # these two are almost the same program |
128 | AR_PROG = ar | |
129 | RANLIB_PROG = ranlib | |
130 | ||
131 | # objcopy and strip should be the same program | |
132 | OBJCOPY_PROG = objcopy | |
133 | STRIP_PROG = strip-new | |
134 | ||
135 | STRINGS_PROG = strings | |
136 | ||
137 | READELF_PROG = readelf | |
138 | ||
139 | # These should all be the same program too. | |
140 | SIZE_PROG = size | |
141 | NM_PROG = nm-new | |
142 | OBJDUMP_PROG = objdump | |
143 | ||
144 | # This is the demangler, as a standalone program. | |
145 | # Note: This one is used as the installed name too, unlike the above. | |
8a965946 | 146 | DEMANGLER_PROG = cxxfilt |
252b5132 RH |
147 | |
148 | ADDR2LINE_PROG = addr2line | |
149 | ||
150 | NLMCONV_PROG = nlmconv | |
151 | DLLTOOL_PROG = dlltool | |
152 | WINDRES_PROG = windres | |
153 | DLLWRAP_PROG = dllwrap | |
154 | ||
155 | SRCONV_PROG = srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) | |
156 | ||
157 | man_MANS = ar.1 nm.1 objdump.1 ranlib.1 size.1 strings.1 strip.1 objcopy.1 \ | |
8a965946 | 158 | addr2line.1 nlmconv.1 $(DEMANGLER_NAME).1 |
252b5132 RH |
159 | |
160 | ||
161 | PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_MISC@ | |
162 | ||
8a965946 | 163 | bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@ @BUILD_MISC@ |
252b5132 | 164 | |
8a965946 | 165 | noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG) |
252b5132 RH |
166 | |
167 | EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(DLLWRAP_PROG) | |
168 | ||
169 | # Stuff that goes in tooldir/ if appropriate | |
170 | TOOL_PROGS = nm-new strip-new ar ranlib dlltool | |
171 | ||
172 | BASEDIR = $(srcdir)/.. | |
173 | BFDDIR = $(BASEDIR)/bfd | |
174 | INCDIR = $(BASEDIR)/include | |
175 | ||
41b49281 | 176 | MKDEP = gcc -MM |
252b5132 RH |
177 | |
178 | INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\"" | |
179 | ||
180 | HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \ | |
181 | windres.h winduni.h dyn-string.h | |
182 | ||
183 | ||
41b49281 | 184 | GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h |
252b5132 RH |
185 | |
186 | CFILES = addr2line.c ar.c arsup.c bucomm.c coffdump.c coffgrok.c debug.c \ | |
187 | dlltool.c filemode.c ieee.c is-ranlib.c is-strip.c maybe-ranlib.c \ | |
188 | maybe-strip.c nlmconv.c nm.c not-ranlib.c not-strip.c \ | |
189 | objcopy.c objdump.c prdbg.c rdcoff.c rddbg.c size.c srconv.c \ | |
190 | stabs.c strings.c sysdump.c version.c wrstabs.c \ | |
191 | windres.c resrc.c rescoff.c resbin.c winduni.c readelf.c \ | |
192 | resres.c dyn-string.c dllwrap.c rename.c | |
193 | ||
194 | ||
195 | GENERATED_CFILES = \ | |
196 | underscore.c arparse.c arlex.c sysroff.c sysinfo.c syslex.c \ | |
197 | defparse.c deflex.c nlmheader.c rcparse.c rclex.c | |
198 | ||
199 | ||
200 | DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c | |
201 | WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c | |
202 | ||
203 | # Code shared by all the binutils. | |
204 | BULIBS = bucomm.c version.c filemode.c | |
205 | ||
206 | BFDLIB = ../bfd/libbfd.la | |
207 | ||
208 | OPCODES = ../opcodes/libopcodes.la | |
209 | ||
210 | LIBIBERTY = ../libiberty/libiberty.a | |
211 | ||
212 | POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES) | |
213 | ||
214 | EXPECT = `if [ -f $$r/../expect/expect ] ; then \ | |
215 | echo $$r/../expect/expect ; \ | |
216 | else echo expect ; fi` | |
217 | ||
218 | RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \ | |
219 | echo ${srcdir}/../dejagnu/runtest ; \ | |
220 | else echo runtest ; fi` | |
221 | ||
222 | ||
223 | CC_FOR_TARGET = ` \ | |
224 | if [ -f $$r/../gcc/xgcc ] ; then \ | |
225 | if [ -f $$r/../newlib/Makefile ] ; then \ | |
226 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ | |
227 | else \ | |
228 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ | |
229 | fi; \ | |
230 | else \ | |
231 | if [ "@host@" = "@target@" ] ; then \ | |
232 | echo $(CC); \ | |
233 | else \ | |
234 | echo gcc | sed '$(transform)'; \ | |
235 | fi; \ | |
236 | fi` | |
237 | ||
238 | ||
239 | info_TEXINFOS = binutils.texi | |
240 | ||
241 | LDADD = $(BFDLIB) $(LIBIBERTY) $(INTLLIBS) | |
242 | ||
243 | size_SOURCES = size.c $(BULIBS) | |
244 | ||
245 | objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) | |
246 | ||
247 | strings_SOURCES = strings.c $(BULIBS) | |
248 | ||
249 | readelf_SOURCES = readelf.c version.c | |
250 | readelf_LDADD = $(INTLLIBS) $(LIBIBERTY) | |
251 | ||
252 | strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) | |
253 | ||
254 | nm_new_SOURCES = nm.c $(BULIBS) | |
255 | ||
256 | objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS) | |
257 | objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS) | |
258 | ||
8a965946 ILT |
259 | cxxfilt_SOURCES = |
260 | cxxfilt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY) $(INTLLIBS) | |
252b5132 RH |
261 | |
262 | ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c $(BULIBS) | |
263 | ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) | |
264 | ||
265 | ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c $(BULIBS) | |
266 | ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) | |
267 | ||
268 | addr2line_SOURCES = addr2line.c $(BULIBS) | |
269 | ||
270 | srconv_SOURCES = srconv.c coffgrok.c $(BULIBS) | |
271 | ||
83d765b3 | 272 | dlltool_SOURCES = dlltool.c defparse.y deflex.l dyn-string.c $(BULIBS) |
252b5132 RH |
273 | dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) |
274 | ||
275 | coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS) | |
276 | ||
277 | sysdump_SOURCES = sysdump.c $(BULIBS) | |
278 | ||
279 | nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS) | |
280 | ||
281 | windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \ | |
282 | winduni.c resres.c $(BULIBS) | |
283 | ||
284 | windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS) | |
285 | ||
37cc8ec1 | 286 | dllwrap_SOURCES = dllwrap.c dyn-string.c version.c |
bb0cb4db | 287 | dllwrap_LDADD = $(LIBIBERTY) $(INTLLIBS) |
252b5132 RH |
288 | |
289 | DISTSTUFF = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \ | |
290 | syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c | |
291 | ||
292 | ||
293 | DISTCLEANFILES = stamp-under sysinfo underscore.c sysroff.c sysroff.h \ | |
294 | site.exp site.bak | |
295 | ||
296 | ||
297 | MAINTAINERCLEANFILES = config.texi | |
298 | ||
8a965946 | 299 | MOSTLYCLEANFILES = sysinfo $(DEMANGLER_NAME).1 binutils.log binutils.sum \ |
252b5132 RH |
300 | abcdefgh* |
301 | ||
302 | ||
41b49281 | 303 | CLEANFILES = dep.sed DEP DEP1 DEP2 |
252b5132 RH |
304 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
305 | mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs | |
306 | CONFIG_HEADER = config.h | |
307 | CONFIG_CLEAN_FILES = | |
308 | bin_PROGRAMS = size$(EXEEXT) objdump$(EXEEXT) ar$(EXEEXT) \ | |
8a965946 ILT |
309 | strings$(EXEEXT) ranlib$(EXEEXT) objcopy$(EXEEXT) @BUILD_NLMCONV@ \ |
310 | @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ addr2line$(EXEEXT) \ | |
311 | readelf$(EXEEXT) @BUILD_DLLWRAP@ @BUILD_MISC@ | |
312 | noinst_PROGRAMS = nm-new$(EXEEXT) strip-new$(EXEEXT) cxxfilt$(EXEEXT) | |
252b5132 RH |
313 | PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) |
314 | ||
315 | ||
316 | DEFS = @DEFS@ -I. -I$(srcdir) -I. | |
317 | CPPFLAGS = @CPPFLAGS@ | |
318 | LDFLAGS = @LDFLAGS@ | |
319 | LIBS = @LIBS@ | |
37cc8ec1 AM |
320 | nlmconv_OBJECTS = nlmconv.o nlmheader.o bucomm.o version.o filemode.o |
321 | nlmconv_LDADD = $(LDADD) | |
322 | nlmconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
323 | nlmconv_LDFLAGS = | |
324 | srconv_OBJECTS = srconv.o coffgrok.o bucomm.o version.o filemode.o | |
325 | srconv_LDADD = $(LDADD) | |
326 | srconv_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
327 | srconv_LDFLAGS = | |
328 | sysdump_OBJECTS = sysdump.o bucomm.o version.o filemode.o | |
329 | sysdump_LDADD = $(LDADD) | |
330 | sysdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
331 | sysdump_LDFLAGS = | |
332 | coffdump_OBJECTS = coffdump.o coffgrok.o bucomm.o version.o filemode.o | |
252b5132 RH |
333 | coffdump_LDADD = $(LDADD) |
334 | coffdump_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
335 | coffdump_LDFLAGS = | |
37cc8ec1 AM |
336 | dlltool_OBJECTS = dlltool.o defparse.o deflex.o dyn-string.o bucomm.o \ |
337 | version.o filemode.o | |
252b5132 RH |
338 | dlltool_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a |
339 | dlltool_LDFLAGS = | |
37cc8ec1 AM |
340 | windres_OBJECTS = windres.o resrc.o rescoff.o resbin.o rcparse.o \ |
341 | rclex.o winduni.o resres.o bucomm.o version.o filemode.o | |
342 | windres_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
343 | windres_LDFLAGS = | |
344 | dllwrap_OBJECTS = dllwrap.o dyn-string.o version.o | |
252b5132 RH |
345 | dllwrap_DEPENDENCIES = ../libiberty/libiberty.a |
346 | dllwrap_LDFLAGS = | |
37cc8ec1 AM |
347 | size_OBJECTS = size.o bucomm.o version.o filemode.o |
348 | size_LDADD = $(LDADD) | |
349 | size_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
350 | size_LDFLAGS = | |
351 | objdump_OBJECTS = objdump.o prdbg.o rddbg.o debug.o stabs.o ieee.o \ | |
252b5132 RH |
352 | rdcoff.o bucomm.o version.o filemode.o |
353 | objdump_DEPENDENCIES = ../opcodes/libopcodes.la ../bfd/libbfd.la \ | |
354 | ../libiberty/libiberty.a | |
355 | objdump_LDFLAGS = | |
37cc8ec1 AM |
356 | ar_OBJECTS = arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o \ |
357 | bucomm.o version.o filemode.o | |
358 | ar_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
359 | ar_LDFLAGS = | |
360 | strings_OBJECTS = strings.o bucomm.o version.o filemode.o | |
361 | strings_LDADD = $(LDADD) | |
362 | strings_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
363 | strings_LDFLAGS = | |
364 | ranlib_OBJECTS = ar.o is-ranlib.o arparse.o arlex.o arsup.o rename.o \ | |
252b5132 RH |
365 | bucomm.o version.o filemode.o |
366 | ranlib_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
367 | ranlib_LDFLAGS = | |
37cc8ec1 AM |
368 | objcopy_OBJECTS = objcopy.o not-strip.o rename.o rddbg.o debug.o \ |
369 | stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o | |
370 | objcopy_LDADD = $(LDADD) | |
371 | objcopy_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
372 | objcopy_LDFLAGS = | |
373 | addr2line_OBJECTS = addr2line.o bucomm.o version.o filemode.o | |
374 | addr2line_LDADD = $(LDADD) | |
375 | addr2line_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
376 | addr2line_LDFLAGS = | |
377 | readelf_OBJECTS = readelf.o version.o | |
252b5132 RH |
378 | readelf_DEPENDENCIES = ../libiberty/libiberty.a |
379 | readelf_LDFLAGS = | |
37cc8ec1 AM |
380 | nm_new_OBJECTS = nm.o bucomm.o version.o filemode.o |
381 | nm_new_LDADD = $(LDADD) | |
382 | nm_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
383 | nm_new_LDFLAGS = | |
384 | strip_new_OBJECTS = objcopy.o is-strip.o rename.o rddbg.o debug.o \ | |
252b5132 RH |
385 | stabs.o ieee.o rdcoff.o wrstabs.o bucomm.o version.o filemode.o |
386 | strip_new_LDADD = $(LDADD) | |
387 | strip_new_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a | |
388 | strip_new_LDFLAGS = | |
37cc8ec1 AM |
389 | cxxfilt_OBJECTS = |
390 | cxxfilt_DEPENDENCIES = cplus-dem.o underscore.o \ | |
391 | ../libiberty/libiberty.a | |
392 | cxxfilt_LDFLAGS = | |
252b5132 RH |
393 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ |
394 | LEXLIB = @LEXLIB@ | |
395 | YLWRAP = $(top_srcdir)/../ylwrap | |
37cc8ec1 AM |
396 | CFLAGS = @CFLAGS@ |
397 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
398 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
252b5132 | 399 | CCLD = $(CC) |
37cc8ec1 | 400 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ |
252b5132 RH |
401 | TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi` |
402 | TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex | |
403 | INFO_DEPS = binutils.info | |
404 | DVIS = binutils.dvi | |
405 | TEXINFOS = binutils.texi | |
406 | man1dir = $(mandir)/man1 | |
407 | MANS = $(man_MANS) | |
408 | ||
409 | NROFF = nroff | |
37cc8ec1 AM |
410 | DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \ |
411 | NEWS acinclude.m4 aclocal.m4 arlex.c arparse.c config.in configure \ | |
412 | configure.in deflex.c defparse.c nlmheader.c rclex.c rcparse.c | |
252b5132 RH |
413 | |
414 | ||
37cc8ec1 | 415 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
252b5132 | 416 | |
37cc8ec1 | 417 | TAR = tar |
252b5132 | 418 | GZIP_ENV = --best |
37cc8ec1 AM |
419 | SOURCES = $(nlmconv_SOURCES) $(srconv_SOURCES) $(sysdump_SOURCES) $(coffdump_SOURCES) $(dlltool_SOURCES) $(windres_SOURCES) $(dllwrap_SOURCES) $(size_SOURCES) $(objdump_SOURCES) $(ar_SOURCES) $(strings_SOURCES) $(ranlib_SOURCES) $(objcopy_SOURCES) $(addr2line_SOURCES) $(readelf_SOURCES) $(nm_new_SOURCES) $(strip_new_SOURCES) $(cxxfilt_SOURCES) |
420 | OBJECTS = $(nlmconv_OBJECTS) $(srconv_OBJECTS) $(sysdump_OBJECTS) $(coffdump_OBJECTS) $(dlltool_OBJECTS) $(windres_OBJECTS) $(dllwrap_OBJECTS) $(size_OBJECTS) $(objdump_OBJECTS) $(ar_OBJECTS) $(strings_OBJECTS) $(ranlib_OBJECTS) $(objcopy_OBJECTS) $(addr2line_OBJECTS) $(readelf_OBJECTS) $(nm_new_OBJECTS) $(strip_new_OBJECTS) $(cxxfilt_OBJECTS) | |
252b5132 RH |
421 | |
422 | all: all-redirect | |
423 | .SUFFIXES: | |
37cc8ec1 | 424 | .SUFFIXES: .S .c .dvi .info .l .lo .o .ps .s .texi .texinfo .txi .y |
252b5132 RH |
425 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
426 | cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile | |
427 | ||
428 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
429 | cd $(top_builddir) \ | |
430 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
431 | ||
432 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4 | |
433 | cd $(srcdir) && $(ACLOCAL) | |
434 | ||
435 | config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
436 | $(SHELL) ./config.status --recheck | |
437 | $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) | |
438 | cd $(srcdir) && $(AUTOCONF) | |
439 | ||
440 | config.h: stamp-h | |
441 | @if test ! -f $@; then \ | |
442 | rm -f stamp-h; \ | |
443 | $(MAKE) stamp-h; \ | |
444 | else :; fi | |
445 | stamp-h: $(srcdir)/config.in $(top_builddir)/config.status | |
446 | cd $(top_builddir) \ | |
447 | && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \ | |
448 | $(SHELL) ./config.status | |
37cc8ec1 AM |
449 | @echo timestamp > stamp-h 2> /dev/null |
450 | $(srcdir)/config.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in | |
252b5132 | 451 | @if test ! -f $@; then \ |
37cc8ec1 AM |
452 | rm -f $(srcdir)/stamp-h.in; \ |
453 | $(MAKE) $(srcdir)/stamp-h.in; \ | |
252b5132 | 454 | else :; fi |
37cc8ec1 | 455 | $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) |
252b5132 | 456 | cd $(top_srcdir) && $(AUTOHEADER) |
37cc8ec1 | 457 | @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null |
252b5132 RH |
458 | |
459 | mostlyclean-hdr: | |
460 | ||
461 | clean-hdr: | |
462 | ||
463 | distclean-hdr: | |
464 | -rm -f config.h | |
465 | ||
466 | maintainer-clean-hdr: | |
467 | ||
468 | mostlyclean-binPROGRAMS: | |
469 | ||
470 | clean-binPROGRAMS: | |
471 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
472 | ||
473 | distclean-binPROGRAMS: | |
474 | ||
475 | maintainer-clean-binPROGRAMS: | |
476 | ||
477 | install-binPROGRAMS: $(bin_PROGRAMS) | |
478 | @$(NORMAL_INSTALL) | |
479 | $(mkinstalldirs) $(DESTDIR)$(bindir) | |
480 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | |
481 | if test -f $$p; then \ | |
37cc8ec1 AM |
482 | echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ |
483 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ | |
252b5132 RH |
484 | else :; fi; \ |
485 | done | |
486 | ||
487 | uninstall-binPROGRAMS: | |
488 | @$(NORMAL_UNINSTALL) | |
37cc8ec1 AM |
489 | list='$(bin_PROGRAMS)'; for p in $$list; do \ |
490 | rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ | |
252b5132 RH |
491 | done |
492 | ||
493 | mostlyclean-noinstPROGRAMS: | |
494 | ||
495 | clean-noinstPROGRAMS: | |
496 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | |
497 | ||
498 | distclean-noinstPROGRAMS: | |
499 | ||
500 | maintainer-clean-noinstPROGRAMS: | |
501 | ||
37cc8ec1 AM |
502 | .c.o: |
503 | $(COMPILE) -c $< | |
504 | ||
505 | .s.o: | |
506 | $(COMPILE) -c $< | |
507 | ||
508 | .S.o: | |
509 | $(COMPILE) -c $< | |
510 | ||
252b5132 RH |
511 | mostlyclean-compile: |
512 | -rm -f *.o core *.core | |
513 | ||
514 | clean-compile: | |
515 | ||
516 | distclean-compile: | |
517 | -rm -f *.tab.c | |
518 | ||
519 | maintainer-clean-compile: | |
520 | ||
37cc8ec1 AM |
521 | .c.lo: |
522 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
523 | ||
524 | .s.lo: | |
525 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
526 | ||
527 | .S.lo: | |
528 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
529 | ||
252b5132 RH |
530 | mostlyclean-libtool: |
531 | -rm -f *.lo | |
532 | ||
533 | clean-libtool: | |
534 | -rm -rf .libs _libs | |
535 | ||
536 | distclean-libtool: | |
537 | ||
538 | maintainer-clean-libtool: | |
539 | ||
37cc8ec1 AM |
540 | nlmconv$(EXEEXT): $(nlmconv_OBJECTS) $(nlmconv_DEPENDENCIES) |
541 | @rm -f nlmconv$(EXEEXT) | |
542 | $(LINK) $(nlmconv_LDFLAGS) $(nlmconv_OBJECTS) $(nlmconv_LDADD) $(LIBS) | |
252b5132 | 543 | |
37cc8ec1 AM |
544 | srconv$(EXEEXT): $(srconv_OBJECTS) $(srconv_DEPENDENCIES) |
545 | @rm -f srconv$(EXEEXT) | |
546 | $(LINK) $(srconv_LDFLAGS) $(srconv_OBJECTS) $(srconv_LDADD) $(LIBS) | |
547 | ||
548 | sysdump$(EXEEXT): $(sysdump_OBJECTS) $(sysdump_DEPENDENCIES) | |
549 | @rm -f sysdump$(EXEEXT) | |
550 | $(LINK) $(sysdump_LDFLAGS) $(sysdump_OBJECTS) $(sysdump_LDADD) $(LIBS) | |
252b5132 RH |
551 | |
552 | coffdump$(EXEEXT): $(coffdump_OBJECTS) $(coffdump_DEPENDENCIES) | |
553 | @rm -f coffdump$(EXEEXT) | |
554 | $(LINK) $(coffdump_LDFLAGS) $(coffdump_OBJECTS) $(coffdump_LDADD) $(LIBS) | |
555 | ||
556 | dlltool$(EXEEXT): $(dlltool_OBJECTS) $(dlltool_DEPENDENCIES) | |
557 | @rm -f dlltool$(EXEEXT) | |
558 | $(LINK) $(dlltool_LDFLAGS) $(dlltool_OBJECTS) $(dlltool_LDADD) $(LIBS) | |
559 | ||
37cc8ec1 AM |
560 | windres$(EXEEXT): $(windres_OBJECTS) $(windres_DEPENDENCIES) |
561 | @rm -f windres$(EXEEXT) | |
562 | $(LINK) $(windres_LDFLAGS) $(windres_OBJECTS) $(windres_LDADD) $(LIBS) | |
563 | ||
252b5132 RH |
564 | dllwrap$(EXEEXT): $(dllwrap_OBJECTS) $(dllwrap_DEPENDENCIES) |
565 | @rm -f dllwrap$(EXEEXT) | |
566 | $(LINK) $(dllwrap_LDFLAGS) $(dllwrap_OBJECTS) $(dllwrap_LDADD) $(LIBS) | |
567 | ||
37cc8ec1 AM |
568 | size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES) |
569 | @rm -f size$(EXEEXT) | |
570 | $(LINK) $(size_LDFLAGS) $(size_OBJECTS) $(size_LDADD) $(LIBS) | |
252b5132 RH |
571 | |
572 | objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES) | |
573 | @rm -f objdump$(EXEEXT) | |
574 | $(LINK) $(objdump_LDFLAGS) $(objdump_OBJECTS) $(objdump_LDADD) $(LIBS) | |
575 | ||
37cc8ec1 AM |
576 | ar$(EXEEXT): $(ar_OBJECTS) $(ar_DEPENDENCIES) |
577 | @rm -f ar$(EXEEXT) | |
578 | $(LINK) $(ar_LDFLAGS) $(ar_OBJECTS) $(ar_LDADD) $(LIBS) | |
579 | ||
580 | strings$(EXEEXT): $(strings_OBJECTS) $(strings_DEPENDENCIES) | |
581 | @rm -f strings$(EXEEXT) | |
582 | $(LINK) $(strings_LDFLAGS) $(strings_OBJECTS) $(strings_LDADD) $(LIBS) | |
583 | ||
252b5132 RH |
584 | ranlib$(EXEEXT): $(ranlib_OBJECTS) $(ranlib_DEPENDENCIES) |
585 | @rm -f ranlib$(EXEEXT) | |
586 | $(LINK) $(ranlib_LDFLAGS) $(ranlib_OBJECTS) $(ranlib_LDADD) $(LIBS) | |
587 | ||
37cc8ec1 AM |
588 | objcopy$(EXEEXT): $(objcopy_OBJECTS) $(objcopy_DEPENDENCIES) |
589 | @rm -f objcopy$(EXEEXT) | |
590 | $(LINK) $(objcopy_LDFLAGS) $(objcopy_OBJECTS) $(objcopy_LDADD) $(LIBS) | |
591 | ||
592 | addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES) | |
593 | @rm -f addr2line$(EXEEXT) | |
594 | $(LINK) $(addr2line_LDFLAGS) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS) | |
595 | ||
252b5132 RH |
596 | readelf$(EXEEXT): $(readelf_OBJECTS) $(readelf_DEPENDENCIES) |
597 | @rm -f readelf$(EXEEXT) | |
598 | $(LINK) $(readelf_LDFLAGS) $(readelf_OBJECTS) $(readelf_LDADD) $(LIBS) | |
599 | ||
37cc8ec1 AM |
600 | nm-new$(EXEEXT): $(nm_new_OBJECTS) $(nm_new_DEPENDENCIES) |
601 | @rm -f nm-new$(EXEEXT) | |
602 | $(LINK) $(nm_new_LDFLAGS) $(nm_new_OBJECTS) $(nm_new_LDADD) $(LIBS) | |
252b5132 RH |
603 | |
604 | strip-new$(EXEEXT): $(strip_new_OBJECTS) $(strip_new_DEPENDENCIES) | |
605 | @rm -f strip-new$(EXEEXT) | |
606 | $(LINK) $(strip_new_LDFLAGS) $(strip_new_OBJECTS) $(strip_new_LDADD) $(LIBS) | |
8a965946 | 607 | |
37cc8ec1 AM |
608 | cxxfilt$(EXEEXT): $(cxxfilt_OBJECTS) $(cxxfilt_DEPENDENCIES) |
609 | @rm -f cxxfilt$(EXEEXT) | |
610 | $(LINK) $(cxxfilt_LDFLAGS) $(cxxfilt_OBJECTS) $(cxxfilt_LDADD) $(LIBS) | |
252b5132 RH |
611 | .l.c: |
612 | $(SHELL) $(YLWRAP) "$(LEX)" $< $(LEX_OUTPUT_ROOT).c $@ -- $(AM_LFLAGS) $(LFLAGS) | |
613 | .y.c: | |
614 | $(SHELL) $(YLWRAP) "$(YACC)" $< y.tab.c $*.c y.tab.h $*.h -- $(AM_YFLAGS) $(YFLAGS) | |
615 | arparse.h: arparse.c | |
616 | defparse.h: defparse.c | |
617 | nlmheader.h: nlmheader.c | |
618 | rcparse.h: rcparse.c | |
619 | ||
620 | ||
621 | binutils.info: binutils.texi | |
622 | binutils.dvi: binutils.texi | |
623 | ||
624 | ||
625 | DVIPS = dvips | |
626 | ||
627 | .texi.info: | |
628 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
629 | $(MAKEINFO) -I $(srcdir) $< | |
630 | ||
631 | .texi.dvi: | |
37cc8ec1 | 632 | TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \ |
252b5132 RH |
633 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< |
634 | ||
635 | .texi: | |
636 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
637 | $(MAKEINFO) -I $(srcdir) $< | |
638 | ||
639 | .texinfo.info: | |
640 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
641 | $(MAKEINFO) -I $(srcdir) $< | |
642 | ||
643 | .texinfo: | |
644 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
645 | $(MAKEINFO) -I $(srcdir) $< | |
646 | ||
647 | .texinfo.dvi: | |
37cc8ec1 | 648 | TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \ |
252b5132 RH |
649 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< |
650 | ||
651 | .txi.info: | |
652 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
653 | $(MAKEINFO) -I $(srcdir) $< | |
654 | ||
655 | .txi.dvi: | |
37cc8ec1 | 656 | TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \ |
252b5132 RH |
657 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< |
658 | ||
659 | .txi: | |
660 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
661 | $(MAKEINFO) -I $(srcdir) $< | |
662 | .dvi.ps: | |
663 | $(DVIPS) $< -o $@ | |
664 | ||
665 | install-info-am: $(INFO_DEPS) | |
666 | @$(NORMAL_INSTALL) | |
667 | $(mkinstalldirs) $(DESTDIR)$(infodir) | |
668 | @list='$(INFO_DEPS)'; \ | |
669 | for file in $$list; do \ | |
670 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | |
37cc8ec1 | 671 | for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ |
252b5132 RH |
672 | if test -f $$d/$$ifile; then \ |
673 | echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ | |
674 | $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ | |
675 | else : ; fi; \ | |
676 | done; \ | |
677 | done | |
678 | @$(POST_INSTALL) | |
679 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ | |
680 | list='$(INFO_DEPS)'; \ | |
681 | for file in $$list; do \ | |
682 | echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ | |
683 | install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\ | |
684 | done; \ | |
685 | else : ; fi | |
686 | ||
687 | uninstall-info: | |
688 | $(PRE_UNINSTALL) | |
689 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ | |
37cc8ec1 AM |
690 | ii=yes; \ |
691 | else ii=; fi; \ | |
692 | list='$(INFO_DEPS)'; \ | |
693 | for file in $$list; do \ | |
694 | test -z "$ii" \ | |
695 | || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \ | |
696 | done | |
252b5132 | 697 | @$(NORMAL_UNINSTALL) |
37cc8ec1 | 698 | list='$(INFO_DEPS)'; \ |
252b5132 | 699 | for file in $$list; do \ |
37cc8ec1 | 700 | (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ |
252b5132 RH |
701 | done |
702 | ||
703 | dist-info: $(INFO_DEPS) | |
704 | list='$(INFO_DEPS)'; \ | |
705 | for base in $$list; do \ | |
706 | if test -f $$base; then d=.; else d=$(srcdir); fi; \ | |
37cc8ec1 | 707 | for file in `cd $$d && eval echo $$base*`; do \ |
252b5132 | 708 | test -f $(distdir)/$$file \ |
37cc8ec1 | 709 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
252b5132 RH |
710 | || cp -p $$d/$$file $(distdir)/$$file; \ |
711 | done; \ | |
712 | done | |
713 | ||
714 | mostlyclean-aminfo: | |
715 | -rm -f binutils.aux binutils.cp binutils.cps binutils.dvi binutils.fn \ | |
37cc8ec1 AM |
716 | binutils.fns binutils.ky binutils.kys binutils.ps \ |
717 | binutils.log binutils.pg binutils.toc binutils.tp \ | |
252b5132 | 718 | binutils.tps binutils.vr binutils.vrs binutils.op binutils.tr \ |
37cc8ec1 | 719 | binutils.cv binutils.cn |
252b5132 RH |
720 | |
721 | clean-aminfo: | |
722 | ||
723 | distclean-aminfo: | |
724 | ||
725 | maintainer-clean-aminfo: | |
726 | for i in $(INFO_DEPS); do \ | |
727 | rm -f $$i; \ | |
728 | if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \ | |
729 | rm -f $$i-[0-9]*; \ | |
730 | fi; \ | |
731 | done | |
732 | clean-info: mostlyclean-aminfo | |
733 | ||
734 | install-man1: | |
735 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | |
736 | @list='$(man1_MANS)'; \ | |
737 | l2='$(man_MANS)'; for i in $$l2; do \ | |
738 | case "$$i" in \ | |
739 | *.1*) list="$$list $$i" ;; \ | |
740 | esac; \ | |
741 | done; \ | |
742 | for i in $$list; do \ | |
743 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | |
744 | else file=$$i; fi; \ | |
745 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
746 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
747 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
748 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ | |
749 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ | |
750 | done | |
751 | ||
752 | uninstall-man1: | |
753 | @list='$(man1_MANS)'; \ | |
754 | l2='$(man_MANS)'; for i in $$l2; do \ | |
755 | case "$$i" in \ | |
756 | *.1*) list="$$list $$i" ;; \ | |
757 | esac; \ | |
758 | done; \ | |
759 | for i in $$list; do \ | |
760 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
761 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
762 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
763 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ | |
764 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ | |
765 | done | |
766 | install-man: $(MANS) | |
767 | @$(NORMAL_INSTALL) | |
768 | $(MAKE) $(AM_MAKEFLAGS) install-man1 | |
769 | uninstall-man: | |
770 | @$(NORMAL_UNINSTALL) | |
771 | $(MAKE) $(AM_MAKEFLAGS) uninstall-man1 | |
772 | ||
773 | # This directory's subdirectories are mostly independent; you can cd | |
774 | # into them and run `make' without going through this Makefile. | |
775 | # To change the values of `make' variables: instead of editing Makefiles, | |
776 | # (1) if the variable is set in `config.status', edit `config.status' | |
777 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
778 | # (2) otherwise, pass the desired values on the `make' command line. | |
779 | ||
37cc8ec1 AM |
780 | @SET_MAKE@ |
781 | ||
252b5132 RH |
782 | all-recursive install-data-recursive install-exec-recursive \ |
783 | installdirs-recursive install-recursive uninstall-recursive install-info-recursive \ | |
784 | check-recursive installcheck-recursive info-recursive dvi-recursive: | |
785 | @set fnord $(MAKEFLAGS); amf=$$2; \ | |
786 | dot_seen=no; \ | |
787 | target=`echo $@ | sed s/-recursive//`; \ | |
788 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
789 | echo "Making $$target in $$subdir"; \ | |
790 | if test "$$subdir" = "."; then \ | |
791 | dot_seen=yes; \ | |
792 | local_target="$$target-am"; \ | |
793 | else \ | |
794 | local_target="$$target"; \ | |
795 | fi; \ | |
796 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
797 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | |
798 | done; \ | |
799 | if test "$$dot_seen" = "no"; then \ | |
800 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
801 | fi; test -z "$$fail" | |
802 | ||
803 | mostlyclean-recursive clean-recursive distclean-recursive \ | |
804 | maintainer-clean-recursive: | |
805 | @set fnord $(MAKEFLAGS); amf=$$2; \ | |
806 | dot_seen=no; \ | |
807 | rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ | |
808 | rev="$$subdir $$rev"; \ | |
37cc8ec1 | 809 | test "$$subdir" = "." && dot_seen=yes; \ |
252b5132 RH |
810 | done; \ |
811 | test "$$dot_seen" = "no" && rev=". $$rev"; \ | |
812 | target=`echo $@ | sed s/-recursive//`; \ | |
813 | for subdir in $$rev; do \ | |
814 | echo "Making $$target in $$subdir"; \ | |
815 | if test "$$subdir" = "."; then \ | |
816 | local_target="$$target-am"; \ | |
817 | else \ | |
818 | local_target="$$target"; \ | |
819 | fi; \ | |
820 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
821 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | |
822 | done && test -z "$$fail" | |
823 | tags-recursive: | |
824 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
825 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
826 | done | |
827 | ||
828 | tags: TAGS | |
829 | ||
37cc8ec1 AM |
830 | ID: $(HEADERS) $(SOURCES) $(LISP) |
831 | list='$(SOURCES) $(HEADERS)'; \ | |
832 | unique=`for i in $$list; do echo $$i; done | \ | |
833 | awk ' { files[$$0] = 1; } \ | |
252b5132 | 834 | END { for (i in files) print i; }'`; \ |
37cc8ec1 AM |
835 | here=`pwd` && cd $(srcdir) \ |
836 | && mkid -f$$here/ID $$unique $(LISP) | |
252b5132 | 837 | |
37cc8ec1 | 838 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP) |
252b5132 RH |
839 | tags=; \ |
840 | here=`pwd`; \ | |
841 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
842 | if test "$$subdir" = .; then :; else \ | |
843 | test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ | |
844 | fi; \ | |
845 | done; \ | |
37cc8ec1 AM |
846 | list='$(SOURCES) $(HEADERS)'; \ |
847 | unique=`for i in $$list; do echo $$i; done | \ | |
848 | awk ' { files[$$0] = 1; } \ | |
252b5132 RH |
849 | END { for (i in files) print i; }'`; \ |
850 | test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \ | |
37cc8ec1 | 851 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS) |
252b5132 RH |
852 | |
853 | mostlyclean-tags: | |
854 | ||
855 | clean-tags: | |
856 | ||
857 | distclean-tags: | |
858 | -rm -f TAGS ID | |
859 | ||
860 | maintainer-clean-tags: | |
861 | ||
862 | distdir = $(PACKAGE)-$(VERSION) | |
863 | top_distdir = $(distdir) | |
864 | ||
865 | # This target untars the dist file and tries a VPATH configuration. Then | |
866 | # it guarantees that the distribution is self-contained by making another | |
867 | # tarfile. | |
868 | distcheck: dist | |
37cc8ec1 AM |
869 | -rm -rf $(distdir) |
870 | GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz | |
252b5132 RH |
871 | mkdir $(distdir)/=build |
872 | mkdir $(distdir)/=inst | |
37cc8ec1 AM |
873 | dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
874 | cd $(distdir)/=build \ | |
252b5132 RH |
875 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ |
876 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
877 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
878 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
879 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
880 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
37cc8ec1 AM |
881 | && $(MAKE) $(AM_MAKEFLAGS) dist |
882 | -rm -rf $(distdir) | |
252b5132 RH |
883 | @banner="$(distdir).tar.gz is ready for distribution"; \ |
884 | dashes=`echo "$$banner" | sed s/./=/g`; \ | |
885 | echo "$$dashes"; \ | |
886 | echo "$$banner"; \ | |
887 | echo "$$dashes" | |
888 | dist: distdir | |
37cc8ec1 AM |
889 | -chmod -R a+r $(distdir) |
890 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
891 | -rm -rf $(distdir) | |
252b5132 | 892 | dist-all: distdir |
37cc8ec1 AM |
893 | -chmod -R a+r $(distdir) |
894 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
895 | -rm -rf $(distdir) | |
252b5132 | 896 | distdir: $(DISTFILES) |
37cc8ec1 | 897 | -rm -rf $(distdir) |
252b5132 | 898 | mkdir $(distdir) |
37cc8ec1 | 899 | -chmod 777 $(distdir) |
252b5132 RH |
900 | @for file in $(DISTFILES); do \ |
901 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | |
902 | if test -d $$d/$$file; then \ | |
37cc8ec1 | 903 | cp -pr $$d/$$file $(distdir)/$$file; \ |
252b5132 RH |
904 | else \ |
905 | test -f $(distdir)/$$file \ | |
37cc8ec1 AM |
906 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
907 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | |
252b5132 RH |
908 | fi; \ |
909 | done | |
910 | for subdir in $(SUBDIRS); do \ | |
911 | if test "$$subdir" = .; then :; else \ | |
912 | test -d $(distdir)/$$subdir \ | |
913 | || mkdir $(distdir)/$$subdir \ | |
914 | || exit 1; \ | |
37cc8ec1 | 915 | chmod 777 $(distdir)/$$subdir; \ |
252b5132 RH |
916 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ |
917 | || exit 1; \ | |
918 | fi; \ | |
919 | done | |
920 | $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info | |
37cc8ec1 AM |
921 | |
922 | RUNTESTFLAGS = | |
923 | ||
924 | DEJATOOL = $(PACKAGE) | |
925 | ||
926 | RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir | |
927 | site.exp: Makefile | |
928 | @echo 'Making a new site.exp file...' | |
929 | @test ! -f site.bak || rm -f site.bak | |
930 | @echo '## these variables are automatically generated by make ##' > $@-t | |
931 | @echo '# Do not edit here. If you wish to override these values' >> $@-t | |
932 | @echo '# edit the last section' >> $@-t | |
933 | @echo 'set tool $(DEJATOOL)' >> $@-t | |
934 | @echo 'set srcdir $(srcdir)' >> $@-t | |
935 | @echo 'set objdir' `pwd` >> $@-t | |
936 | @echo 'set host_alias $(host_alias)' >> $@-t | |
937 | @echo 'set host_triplet $(host_triplet)' >> $@-t | |
938 | @echo 'set target_alias $(target_alias)' >> $@-t | |
939 | @echo 'set target_triplet $(target_triplet)' >> $@-t | |
940 | @echo 'set build_alias $(build_alias)' >> $@-t | |
941 | @echo 'set build_triplet $(build_triplet)' >> $@-t | |
942 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t | |
943 | @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t | |
944 | @test ! -f site.exp || mv site.exp site.bak | |
945 | @mv $@-t site.exp | |
252b5132 RH |
946 | info-am: $(INFO_DEPS) |
947 | info: info-recursive | |
948 | dvi-am: $(DVIS) | |
949 | dvi: dvi-recursive | |
950 | check-am: | |
951 | $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU | |
952 | check: check-recursive | |
953 | installcheck-am: | |
954 | installcheck: installcheck-recursive | |
955 | install-info-am: | |
956 | install-info: install-info-recursive | |
957 | all-recursive-am: config.h | |
958 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
959 | ||
960 | install-exec-am: install-binPROGRAMS install-exec-local | |
961 | install-exec: install-exec-recursive | |
962 | ||
963 | install-data-am: install-man | |
964 | install-data: install-data-recursive | |
965 | ||
966 | install-am: all-am | |
967 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
968 | install: install-recursive | |
969 | uninstall-am: uninstall-binPROGRAMS uninstall-man | |
970 | uninstall: uninstall-recursive | |
971 | all-am: Makefile $(PROGRAMS) $(MANS) config.h | |
972 | all-redirect: all-recursive-am | |
973 | install-strip: | |
37cc8ec1 | 974 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install |
252b5132 RH |
975 | installdirs: installdirs-recursive |
976 | installdirs-am: | |
977 | $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 | |
978 | ||
979 | ||
980 | mostlyclean-generic: | |
981 | -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) | |
982 | ||
983 | clean-generic: | |
984 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
985 | ||
986 | distclean-generic: | |
987 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | |
988 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | |
989 | -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) | |
990 | ||
991 | maintainer-clean-generic: | |
37cc8ec1 | 992 | -test -z "arlexldeflexlrclexlarparseharparsecdefparsehdefparsecnlmheaderhnlmheadercrcparsehrcparsec$(MAINTAINERCLEANFILES)" || rm -f arlexl deflexl rclexl arparseh arparsec defparseh defparsec nlmheaderh nlmheaderc rcparseh rcparsec $(MAINTAINERCLEANFILES) |
252b5132 RH |
993 | mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ |
994 | mostlyclean-noinstPROGRAMS mostlyclean-compile \ | |
995 | mostlyclean-libtool mostlyclean-aminfo mostlyclean-tags \ | |
996 | mostlyclean-generic mostlyclean-local | |
997 | ||
998 | mostlyclean: mostlyclean-recursive | |
999 | ||
1000 | clean-am: clean-hdr clean-binPROGRAMS clean-noinstPROGRAMS \ | |
1001 | clean-compile clean-libtool clean-aminfo clean-tags \ | |
1002 | clean-generic mostlyclean-am | |
1003 | ||
1004 | clean: clean-recursive | |
1005 | ||
1006 | distclean-am: distclean-hdr distclean-binPROGRAMS \ | |
1007 | distclean-noinstPROGRAMS distclean-compile \ | |
1008 | distclean-libtool distclean-aminfo distclean-tags \ | |
1009 | distclean-generic clean-am | |
1010 | -rm -f libtool | |
1011 | ||
1012 | distclean: distclean-recursive | |
1013 | -rm -f config.status | |
1014 | ||
1015 | maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ | |
1016 | maintainer-clean-noinstPROGRAMS \ | |
1017 | maintainer-clean-compile maintainer-clean-libtool \ | |
1018 | maintainer-clean-aminfo maintainer-clean-tags \ | |
1019 | maintainer-clean-generic distclean-am | |
1020 | @echo "This command is intended for maintainers to use;" | |
1021 | @echo "it deletes files that may require special tools to rebuild." | |
1022 | ||
1023 | maintainer-clean: maintainer-clean-recursive | |
1024 | -rm -f config.status | |
1025 | ||
1026 | .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ | |
1027 | mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ | |
1028 | maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ | |
1029 | mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \ | |
1030 | clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \ | |
1031 | mostlyclean-compile distclean-compile clean-compile \ | |
1032 | maintainer-clean-compile mostlyclean-libtool distclean-libtool \ | |
1033 | clean-libtool maintainer-clean-libtool install-info-am uninstall-info \ | |
1034 | mostlyclean-aminfo distclean-aminfo clean-aminfo \ | |
1035 | maintainer-clean-aminfo install-man1 uninstall-man1 install-man \ | |
37cc8ec1 AM |
1036 | uninstall-man install-data-recursive uninstall-data-recursive \ |
1037 | install-exec-recursive uninstall-exec-recursive installdirs-recursive \ | |
1038 | uninstalldirs-recursive all-recursive check-recursive \ | |
1039 | installcheck-recursive info-recursive dvi-recursive \ | |
1040 | mostlyclean-recursive distclean-recursive clean-recursive \ | |
252b5132 | 1041 | maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ |
37cc8ec1 | 1042 | distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \ |
252b5132 RH |
1043 | info-am info dvi-am dvi check check-am installcheck-am installcheck \ |
1044 | install-info-am install-info all-recursive-am install-exec-local \ | |
1045 | install-exec-am install-exec install-data-am install-data install-am \ | |
37cc8ec1 AM |
1046 | install uninstall-am uninstall all-redirect all-am all installdirs-am \ |
1047 | installdirs mostlyclean-generic distclean-generic clean-generic \ | |
1048 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean | |
252b5132 RH |
1049 | |
1050 | po/POTFILES.in: @MAINT@ Makefile | |
1051 | for file in $(POTFILES); do echo $$file; done | sort > tmp \ | |
1052 | && mv tmp $(srcdir)/po/POTFILES.in | |
1053 | ||
1054 | check-DEJAGNU: site.exp | |
1055 | srcdir=`cd $(srcdir) && pwd`; export srcdir; \ | |
1056 | r=`pwd`; export r; \ | |
1057 | EXPECT=$(EXPECT); export EXPECT; \ | |
1058 | if [ -f $(top_builddir)/../expect/expect ]; then \ | |
1059 | TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \ | |
1060 | export TCL_LIBRARY; \ | |
1061 | fi; \ | |
1062 | runtest=$(RUNTEST); \ | |
1063 | if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ | |
1064 | $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \ | |
1065 | CC_FOR_TARGET="$(CC_FOR_TARGET)" \ | |
1066 | CFLAGS_FOR_TARGET="$(CFLAGS)" $(RUNTESTFLAGS); \ | |
1067 | else echo "WARNING: could not find \`runtest'" 1>&2; :;\ | |
1068 | fi | |
1069 | ||
1070 | installcheck: | |
1071 | /bin/sh $(srcdir)/sanity.sh $(bindir) | |
1072 | ||
1073 | underscore.c: stamp-under ; @true | |
1074 | ||
1075 | stamp-under: Makefile | |
1076 | echo '/*WARNING: This file is automatically generated!*/' >underscore.t | |
1077 | echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t | |
1078 | $(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c | |
1079 | touch stamp-under | |
1080 | ||
1081 | cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h | |
1082 | $(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c | |
1083 | ||
41b49281 | 1084 | # The following is commented out for the conversion to automake. |
252b5132 RH |
1085 | # This rule creates a single binary that switches between ar and ranlib |
1086 | # by looking at argv[0]. Use this kludge to save some disk space. | |
1087 | # However, you have to install things by hand. | |
1088 | # (That is after 'make install', replace the installed ranlib by a link to ar.) | |
1089 | # Alternatively, you can install ranlib.sh as ranlib. | |
1090 | # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o | |
1091 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS) | |
1092 | # -rm -f $(RANLIB_PROG) | |
1093 | # -ln $(AR_PROG) $(RANLIB_PROG) | |
1094 | # | |
1095 | # objcopy and strip in one binary that uses argv[0] to decide its action. | |
1096 | # | |
1097 | #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o | |
1098 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS) | |
1099 | # -rm -f $(STRIP_PROG) | |
1100 | # -ln $(OBJCOPY_PROG) $(STRIP_PROG) | |
1101 | ||
1102 | sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info | |
1103 | ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c | |
1104 | ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c | |
1105 | ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c | |
1106 | ||
1107 | sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info | |
1108 | ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h | |
1109 | ||
1110 | sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o | |
1111 | $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o | |
1112 | ||
1113 | syslex.o: syslex.c sysinfo.h | |
1114 | if [ -r syslex.c ]; then \ | |
1115 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \ | |
1116 | else \ | |
1117 | $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\ | |
1118 | fi | |
1119 | ||
1120 | sysinfo.o: sysinfo.c | |
1121 | if [ -r sysinfo.c ]; then \ | |
1122 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \ | |
1123 | else \ | |
1124 | $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \ | |
1125 | fi | |
1126 | ||
41b49281 AM |
1127 | # We need these for parallel make. |
1128 | arparse.h: arparse.c | |
1129 | defparse.h: defparse.c | |
1130 | nlmheader.h: nlmheader.c | |
1131 | rcparse.h: rcparse.c | |
1132 | sysinfo.h: sysinfo.c | |
1133 | ||
252b5132 RH |
1134 | dlltool.o:dlltool.c |
1135 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c | |
1136 | ||
09cda596 DD |
1137 | rescoff.o:rescoff.c |
1138 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c | |
1139 | ||
252b5132 RH |
1140 | # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency |
1141 | # scripts, since they are only included conditionally. | |
1142 | nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h | |
1143 | ldname=`echo ld | sed '$(transform)'`; \ | |
1144 | $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c | |
1145 | ||
252b5132 RH |
1146 | diststuff: $(DISTSTUFF) info |
1147 | ||
1148 | # Targets to rebuild dependencies in this Makefile. | |
c278c150 ILT |
1149 | # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES). |
1150 | DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h | |
1151 | rm -f DEP1 | |
41b49281 AM |
1152 | $(MAKE) MKDEP="$(MKDEP)" DEP1 |
1153 | sed -f dep.sed < DEP1 > $@ | |
1154 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@ | |
252b5132 | 1155 | |
c278c150 | 1156 | DEP1: $(CFILES) $(GENERATED_CFILES) |
c278c150 | 1157 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 |
41b49281 AM |
1158 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 |
1159 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
1160 | mv -f DEP2 $@ | |
252b5132 RH |
1161 | |
1162 | dep.sed: dep-in.sed config.status | |
1163 | objdir=`pwd`; \ | |
1164 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
1165 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
1166 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
1167 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
1168 | -e "s!@OBJDIR@!$${objdir}!" | |
1169 | ||
c278c150 | 1170 | dep: DEP |
252b5132 | 1171 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile |
c278c150 | 1172 | cat DEP >> tmp-Makefile |
252b5132 RH |
1173 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile |
1174 | ||
c278c150 | 1175 | dep-in: DEP |
252b5132 | 1176 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in |
c278c150 | 1177 | cat DEP >> tmp-Makefile.in |
252b5132 RH |
1178 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in |
1179 | ||
c278c150 | 1180 | dep-am: DEP |
252b5132 | 1181 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am |
c278c150 | 1182 | cat DEP >> tmp-Makefile.am |
252b5132 RH |
1183 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am |
1184 | ||
1185 | .PHONY: dep dep-in dep-am | |
1186 | ||
1187 | ### | |
1188 | # DOCUMENTATION TARGETS | |
1189 | config.texi: Makefile | |
1190 | rm -f config.texi | |
1191 | echo '@set VERSION $(VERSION)' > config.texi | |
1192 | ||
1193 | binutils.dvi: $(srcdir)/binutils.texi config.texi | |
1194 | ||
1195 | binutils.info: $(srcdir)/binutils.texi config.texi | |
1196 | ||
8a965946 ILT |
1197 | $(DEMANGLER_NAME).1: cxxfilt.man Makefile |
1198 | sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' < $(srcdir)/cxxfilt.man \ | |
1199 | > $(DEMANGLER_NAME).1 | |
252b5132 RH |
1200 | mostlyclean-local: |
1201 | -rm -rf tmpdir | |
1202 | ||
1203 | .PHONY: install-exec-local | |
1204 | ||
9c28aef3 | 1205 | install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS) |
252b5132 RH |
1206 | @list='$(noinst_PROGRAMS)'; for p in $$list; do \ |
1207 | if test -f $$p; then \ | |
8a965946 ILT |
1208 | echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ |
1209 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ | |
252b5132 RH |
1210 | else :; fi; \ |
1211 | done | |
1212 | $(mkinstalldirs) $(tooldir)/bin | |
1213 | for i in $(TOOL_PROGS); do \ | |
1214 | if [ -f $$i$(EXEEXT) ]; then \ | |
1215 | j=`echo $$i | sed -e 's/-new//'`; \ | |
1216 | k=`echo $$j | sed '$(transform)'`; \ | |
1217 | if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \ | |
1218 | rm -f $(tooldir)/bin/$$j$(EXEEXT); \ | |
1219 | ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ | |
1220 | || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \ | |
1221 | fi; \ | |
1222 | else true; \ | |
1223 | fi; \ | |
1224 | done | |
1225 | ||
1226 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
1227 | ||
1228 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
1229 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
252b5132 RH |
1230 | addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
1231 | $(INCDIR)/getopt.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \ | |
41b49281 | 1232 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h |
252b5132 | 1233 | ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ |
41b49281 AM |
1234 | $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1235 | $(INCDIR)/fopen-same.h $(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h \ | |
1236 | arsup.h | |
252b5132 | 1237 | arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1238 | arsup.h $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1239 | $(INCDIR)/fopen-same.h | |
252b5132 | 1240 | bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 | 1241 | $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
252b5132 | 1242 | $(INCDIR)/fopen-same.h |
41b49281 AM |
1243 | coffdump.o: coffdump.c coffgrok.h bucomm.h config.h \ |
1244 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h | |
1245 | coffgrok.o: coffgrok.c bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
1246 | $(INCDIR)/fopen-same.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \ | |
1247 | $(INCDIR)/bfdlink.h coffgrok.h | |
252b5132 | 1248 | debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1249 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1250 | $(INCDIR)/libiberty.h debug.h | |
252b5132 | 1251 | dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1252 | $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1253 | $(INCDIR)/fopen-same.h $(INCDIR)/demangle.h dyn-string.h \ | |
bb0cb4db | 1254 | dlltool.h |
252b5132 | 1255 | filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 | 1256 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h |
252b5132 | 1257 | ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/ieee.h \ |
41b49281 AM |
1258 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1259 | $(INCDIR)/libiberty.h debug.h budbg.h | |
252b5132 RH |
1260 | is-ranlib.o: is-ranlib.c |
1261 | is-strip.o: is-strip.c | |
1262 | maybe-ranlib.o: maybe-ranlib.c | |
1263 | maybe-strip.o: maybe-strip.c | |
1264 | nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
41b49281 AM |
1265 | $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1266 | $(INCDIR)/fopen-same.h $(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h \ | |
1267 | $(INCDIR)/nlm/internal.h $(INCDIR)/nlm/external.h nlmconv.h | |
252b5132 | 1268 | nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/progress.h \ |
41b49281 | 1269 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
252b5132 RH |
1270 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ranlib.h \ |
1271 | $(INCDIR)/demangle.h $(INCDIR)/libiberty.h | |
1272 | not-ranlib.o: not-ranlib.c | |
1273 | not-strip.o: not-strip.c | |
1274 | objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
41b49281 AM |
1275 | $(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1276 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h budbg.h | |
252b5132 RH |
1277 | objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
1278 | $(INCDIR)/getopt.h $(INCDIR)/progress.h bucomm.h config.h \ | |
41b49281 AM |
1279 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/dis-asm.h \ |
1280 | $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \ | |
1281 | budbg.h $(INCDIR)/aout/aout64.h | |
252b5132 | 1282 | prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1283 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1284 | $(INCDIR)/libiberty.h debug.h budbg.h | |
252b5132 | 1285 | rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1286 | $(INCDIR)/coff/internal.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1287 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \ | |
1288 | debug.h budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h | |
252b5132 | 1289 | rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1290 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1291 | $(INCDIR)/libiberty.h debug.h budbg.h | |
252b5132 | 1292 | size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \ |
41b49281 AM |
1293 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1294 | $(INCDIR)/libiberty.h | |
1295 | srconv.o: srconv.c bucomm.h config.h $(INCDIR)/bin-bugs.h \ | |
1296 | $(INCDIR)/fopen-same.h sysroff.h coffgrok.h $(INCDIR)/coff/internal.h \ | |
1297 | $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h sysroff.c | |
252b5132 | 1298 | stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1299 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1300 | $(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \ | |
1301 | budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \ | |
1302 | $(INCDIR)/aout/stab.def | |
252b5132 | 1303 | strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1304 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1305 | $(INCDIR)/libiberty.h | |
252b5132 | 1306 | sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1307 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1308 | sysroff.h sysroff.c | |
252b5132 | 1309 | version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 | 1310 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h |
252b5132 | 1311 | wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1312 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1313 | $(INCDIR)/libiberty.h debug.h budbg.h $(INCDIR)/aout/aout64.h \ | |
1314 | $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def | |
252b5132 | 1315 | windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1316 | $(INCDIR)/getopt.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1317 | $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/obstack.h \ | |
252b5132 | 1318 | windres.h winduni.h |
41b49281 AM |
1319 | resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
1320 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ | |
1321 | $(INCDIR)/libiberty.h windres.h winduni.h | |
252b5132 | 1322 | rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1323 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1324 | $(INCDIR)/libiberty.h windres.h winduni.h $(INCDIR)/coff/internal.h \ | |
1325 | $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h | |
252b5132 | 1326 | resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1327 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1328 | $(INCDIR)/libiberty.h windres.h winduni.h | |
252b5132 | 1329 | winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1330 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1331 | winduni.h | |
252b5132 RH |
1332 | readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
1333 | $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \ | |
1334 | $(INCDIR)/elf/dwarf2.h $(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h \ | |
1335 | $(INCDIR)/elf/v850.h $(INCDIR)/elf/ppc.h $(INCDIR)/elf/mips.h \ | |
1336 | $(INCDIR)/elf/alpha.h $(INCDIR)/elf/arm.h $(INCDIR)/elf/m68k.h \ | |
1337 | $(INCDIR)/elf/sparc.h $(INCDIR)/elf/m32r.h $(INCDIR)/elf/d10v.h \ | |
1338 | $(INCDIR)/elf/d30v.h $(INCDIR)/elf/sh.h $(INCDIR)/elf/mn10200.h \ | |
1339 | $(INCDIR)/elf/mn10300.h $(INCDIR)/elf/hppa.h $(INCDIR)/elf/arc.h \ | |
800eeca4 | 1340 | $(INCDIR)/elf/ia64.h \ |
bb0cb4db | 1341 | $(INCDIR)/elf/fr30.h $(INCDIR)/elf/mcore.h $(INCDIR)/elf/i960.h \ |
41b49281 AM |
1342 | $(INCDIR)/elf/pj.h $(INCDIR)/elf/avr.h bucomm.h config.h \ |
1343 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h | |
252b5132 | 1344 | resres.o: resres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1345 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1346 | $(INCDIR)/libiberty.h windres.h winduni.h | |
252b5132 RH |
1347 | dyn-string.o: dyn-string.c config.h $(INCDIR)/ansidecl.h \ |
1348 | dyn-string.h | |
1349 | dllwrap.o: dllwrap.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
41b49281 AM |
1350 | $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/bin-bugs.h \ |
1351 | $(INCDIR)/fopen-same.h dyn-string.h | |
252b5132 | 1352 | rename.o: rename.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 | 1353 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h |
252b5132 RH |
1354 | underscore.o: underscore.c |
1355 | arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
41b49281 AM |
1356 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1357 | arsup.h | |
252b5132 RH |
1358 | arlex.o: arlex.c $(INCDIR)/libiberty.h arparse.h |
1359 | sysroff.o: sysroff.c | |
1360 | sysinfo.o: sysinfo.c | |
1361 | syslex.o: syslex.c sysinfo.h | |
1362 | defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ | |
41b49281 AM |
1363 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1364 | dlltool.h | |
252b5132 RH |
1365 | deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
1366 | defparse.h dlltool.h | |
1367 | nlmheader.o: nlmheader.c ../bfd/bfd.h bucomm.h config.h \ | |
41b49281 AM |
1368 | $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h \ |
1369 | $(INCDIR)/nlm/internal.h nlmconv.h | |
252b5132 | 1370 | rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1371 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1372 | $(INCDIR)/libiberty.h windres.h winduni.h | |
252b5132 | 1373 | rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
41b49281 AM |
1374 | bucomm.h config.h $(INCDIR)/bin-bugs.h $(INCDIR)/fopen-same.h \ |
1375 | $(INCDIR)/libiberty.h windres.h winduni.h rcparse.h | |
252b5132 RH |
1376 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
1377 | ||
1378 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
1379 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
1380 | .NOEXPORT: |