Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
[external/binutils.git] / gprof / Makefile.in
1 # Makefile.in generated automatically by automake 1.2 from Makefile.am
2
3 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy, distribute and modify it.
6
7
8 SHELL = @SHELL@
9
10 srcdir = @srcdir@
11 top_srcdir = @top_srcdir@
12 VPATH = @srcdir@
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15
16 bindir = @bindir@
17 sbindir = @sbindir@
18 libexecdir = @libexecdir@
19 datadir = @datadir@
20 sysconfdir = @sysconfdir@
21 sharedstatedir = @sharedstatedir@
22 localstatedir = @localstatedir@
23 libdir = @libdir@
24 infodir = @infodir@
25 mandir = @mandir@
26 includedir = @includedir@
27 oldincludedir = /usr/include
28
29 pkgdatadir = $(datadir)/@PACKAGE@
30 pkglibdir = $(libdir)/@PACKAGE@
31 pkgincludedir = $(includedir)/@PACKAGE@
32
33 top_builddir = .
34
35 ACLOCAL = @ACLOCAL@
36 AUTOCONF = @AUTOCONF@
37 AUTOMAKE = @AUTOMAKE@
38 AUTOHEADER = @AUTOHEADER@
39
40 INSTALL = @INSTALL@
41 INSTALL_PROGRAM = @INSTALL_PROGRAM@
42 INSTALL_DATA = @INSTALL_DATA@
43 INSTALL_SCRIPT = @INSTALL_SCRIPT@
44 transform = @program_transform_name@
45
46 NORMAL_INSTALL = true
47 PRE_INSTALL = true
48 POST_INSTALL = true
49 NORMAL_UNINSTALL = true
50 PRE_UNINSTALL = true
51 POST_UNINSTALL = true
52 build_alias = @build_alias@
53 build_triplet = @build@
54 host_alias = @host_alias@
55 host_triplet = @host@
56 target_alias = @target_alias@
57 target_triplet = @target@
58 CC = @CC@
59 EXEEXT = @EXEEXT@
60 LD = @LD@
61 LIBTOOL = @LIBTOOL@
62 LN_S = @LN_S@
63 MAINT = @MAINT@
64 MAKEINFO = @MAKEINFO@
65 PACKAGE = @PACKAGE@
66 RANLIB = @RANLIB@
67 VERSION = @VERSION@
68
69 AUTOMAKE_OPTIONS = cygnus
70
71 SUFFIXES = .m
72
73 INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd
74
75 bin_PROGRAMS = gprof
76
77 gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
78         cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
79         search_list.c symtab.c sym_ids.c utils.c \
80         flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
81         i386.c alpha.c vax.c tahoe.c sparc.c
82 gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
83 gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a
84
85 noinst_HEADERS = \
86         basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
87         core.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
88         search_list.h source.h sym_ids.h symtab.h utils.h
89
90 EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl
91
92 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
93
94 info_TEXINFOS = gprof.texi
95 man_MANS = gprof.1
96 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
97 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
98 CONFIG_HEADER = gconfig.h
99 CONFIG_CLEAN_FILES = 
100 bin_PROGRAMS =  gprof$(EXEEXT)
101 PROGRAMS =  $(bin_PROGRAMS)
102
103
104 DEFS = @DEFS@ -I. -I$(srcdir) -I.
105 CPPFLAGS = @CPPFLAGS@
106 LDFLAGS = @LDFLAGS@
107 LIBS = @LIBS@
108 gprof_OBJECTS =  basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o \
109 cg_print.o core.o gmon_io.o gprof.o hertz.o hist.o source.o \
110 search_list.o symtab.o sym_ids.o utils.o flat_bl.o bsd_callg_bl.o \
111 fsf_callg_bl.o i386.o alpha.o vax.o tahoe.o sparc.o
112 gprof_LDFLAGS = 
113 CFLAGS = @CFLAGS@
114 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
115 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
116 LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
117 TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
118 TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
119 INFO_DEPS = gprof.info
120 DVIS = gprof.dvi
121 TEXINFOS = gprof.texi
122 MANS = gprof.1
123
124 NROFF = nroff
125 HEADERS =  $(noinst_HEADERS)
126
127 DIST_COMMON =  ChangeLog Makefile.am Makefile.in TODO acconfig.h \
128 aclocal.m4 configure configure.in gconfig.in stamp-h.in
129
130
131 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
132
133 TAR = tar
134 GZIP = --best
135 SOURCES = $(gprof_SOURCES)
136 OBJECTS = $(gprof_OBJECTS)
137
138 default: all
139
140 .SUFFIXES:
141 .SUFFIXES: .S .c .dvi .info .lo .m .o .ps .s .texi .texinfo
142 $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
143         cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
144
145 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
146         cd $(top_builddir) \
147           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
148
149 $(ACLOCAL_M4): @MAINT@ configure.in 
150         cd $(srcdir) && $(ACLOCAL)
151
152 config.status: $(srcdir)/configure
153         $(SHELL) ./config.status --recheck
154 $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
155         cd $(srcdir) && $(AUTOCONF)
156
157 gconfig.h: stamp-h ; @:
158 stamp-h: $(srcdir)/gconfig.in $(top_builddir)/config.status
159         cd $(top_builddir) \
160           && CONFIG_FILES= CONFIG_HEADERS=gconfig.h:gconfig.in \
161              $(SHELL) ./config.status
162         @echo timestamp > stamp-h
163 $(srcdir)/gconfig.in: @MAINT@$(srcdir)/stamp-h.in
164 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
165         cd $(top_srcdir) && $(AUTOHEADER)
166         @echo timestamp > $(srcdir)/stamp-h.in
167
168 mostlyclean-hdr:
169
170 clean-hdr:
171
172 distclean-hdr:
173         rm -f gconfig.h
174
175 maintainer-clean-hdr:
176
177 mostlyclean-binPROGRAMS:
178
179 clean-binPROGRAMS:
180         test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
181
182 distclean-binPROGRAMS:
183
184 maintainer-clean-binPROGRAMS:
185
186 install-binPROGRAMS: $(bin_PROGRAMS)
187         @$(NORMAL_INSTALL)
188         $(mkinstalldirs) $(bindir)
189         @list='$(bin_PROGRAMS)'; for p in $$list; do \
190           if test -f $$p; then \
191             echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
192             $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
193           else :; fi; \
194         done
195
196 uninstall-binPROGRAMS:
197         $(NORMAL_UNINSTALL)
198         list='$(bin_PROGRAMS)'; for p in $$list; do \
199           rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
200         done
201
202 .s.o:
203         $(COMPILE) -c $<
204
205 .S.o:
206         $(COMPILE) -c $<
207
208 .c.o:
209         $(COMPILE) -c $<
210
211 mostlyclean-compile:
212         rm -f *.o core
213
214 clean-compile:
215
216 distclean-compile:
217         rm -f *.tab.c
218
219 maintainer-clean-compile:
220
221 .c.lo:
222         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
223
224 # These are just copies of the above rule.
225 .s.lo:
226         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
227
228 .S.lo:
229         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
230
231 mostlyclean-libtool:
232         rm -f *.lo
233
234 clean-libtool:
235         rm -rf .libs
236
237 distclean-libtool:
238
239 maintainer-clean-libtool:
240
241 gprof$(EXEEXT): $(gprof_OBJECTS) $(gprof_DEPENDENCIES)
242         @rm -f gprof$(EXEEXT)
243         $(LINK) $(gprof_LDFLAGS) $(gprof_OBJECTS) $(gprof_LDADD) $(LIBS)
244
245 gprof.info: gprof.texi
246 gprof.dvi: gprof.texi
247
248
249 DVIPS = dvips
250
251 .texi.info:
252         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
253         $(MAKEINFO) -I $(srcdir) $<
254
255 .texi.dvi:
256         TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
257           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
258
259 .texi:
260         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
261         $(MAKEINFO) -I $(srcdir) $<
262
263 .texinfo.info:
264         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
265         $(MAKEINFO) -I $(srcdir) $<
266
267 .texinfo:
268         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
269         $(MAKEINFO) -I $(srcdir) $<
270
271 .texinfo.dvi:
272         TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
273           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
274 .dvi.ps:
275         $(DVIPS) $< -o $@
276
277 install-info-am: $(INFO_DEPS)
278         @$(NORMAL_INSTALL)
279         $(mkinstalldirs) $(infodir)
280         @for file in $(INFO_DEPS); do \
281           if test -f $$file; then d=.; else d=$(srcdir); fi; \
282           for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
283             if test -f $$d/$$ifile; then \
284               echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
285               $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
286             else : ; fi; \
287           done; \
288         done
289         @$(POST_INSTALL)
290         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
291           for file in $(INFO_DEPS); do \
292             echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
293             install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
294           done; \
295         else : ; fi
296
297 uninstall-info:
298         $(PRE_UNINSTALL)
299         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
300           ii=yes; \
301         else ii=; fi; \
302         for file in $(INFO_DEPS); do \
303           test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \
304         done
305         $(NORMAL_UNINSTALL)
306         for file in $(INFO_DEPS); do \
307           (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
308         done
309
310 dist-info: $(INFO_DEPS)
311         for base in $(INFO_DEPS); do \
312           if test -f $$base; then d=.; else d=$(srcdir); fi; \
313           for file in `cd $$d && eval echo $$base*`; do \
314             test -f $(distdir)/$$file \
315             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
316             || cp -p $$d/$$file $(distdir)/$$file; \
317           done; \
318         done
319
320 mostlyclean-aminfo:
321         rm -f gprof.aux gprof.cp gprof.cps gprof.dvi gprof.fn gprof.fns \
322           gprof.ky gprof.log gprof.pg gprof.toc gprof.tp gprof.tps \
323           gprof.vr gprof.vrs gprof.op gprof.tr gprof.cv
324
325 clean-aminfo:
326
327 distclean-aminfo:
328
329 maintainer-clean-aminfo:
330         for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done
331 clean-info: mostlyclean-aminfo
332 install-man: $(MANS)
333         $(NORMAL_INSTALL)
334         $(mkinstalldirs) $(mandir)/man1
335         @sect=1;                                \
336         inst=`echo "gprof" | sed '$(transform)'`.1; \
337         if test -f $(srcdir)/gprof.1; then file=$(srcdir)/gprof.1; \
338         else file=gprof.1; fi; \
339         echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \
340         $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst
341
342 uninstall-man:
343         $(NORMAL_UNINSTALL)
344         inst=`echo "gprof" | sed '$(transform)'`.1; \
345         rm -f $(mandir)/man1/$$inst
346
347
348 tags: TAGS
349
350 ID: $(HEADERS) $(SOURCES)
351         here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
352
353 TAGS:  $(HEADERS) $(SOURCES) gconfig.in $(TAGS_DEPENDENCIES)
354         tags=; \
355         here=`pwd`; \
356         test -z "$(ETAGS_ARGS)gconfig.in$(SOURCES)$(HEADERS)$$tags" \
357           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags gconfig.in $(SOURCES) $(HEADERS) -o $$here/TAGS)
358
359 mostlyclean-tags:
360
361 clean-tags:
362
363 distclean-tags:
364         rm -f TAGS ID
365
366 maintainer-clean-tags:
367
368 distdir = $(PACKAGE)-$(VERSION)
369 top_distdir = $(distdir)
370
371 # This target untars the dist file and tries a VPATH configuration.  Then
372 # it guarantees that the distribution is self-contained by making another
373 # tarfile.
374 distcheck: dist
375         rm -rf $(distdir)
376         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
377         mkdir $(distdir)/=build
378         mkdir $(distdir)/=inst
379         dc_install_base=`cd $(distdir)/=inst && pwd`; \
380         cd $(distdir)/=build \
381           && ../configure --srcdir=.. --prefix=$$dc_install_base \
382           && $(MAKE) \
383           && $(MAKE) dvi \
384           && $(MAKE) check \
385           && $(MAKE) install \
386           && $(MAKE) installcheck \
387           && $(MAKE) dist
388         rm -rf $(distdir)
389         @echo "========================"; \
390         echo "$(distdir).tar.gz is ready for distribution"; \
391         echo "========================"
392 dist: distdir
393         -chmod -R a+r $(distdir)
394         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
395         rm -rf $(distdir)
396 dist-all: distdir
397         -chmod -R a+r $(distdir)
398         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
399         rm -rf $(distdir)
400 distdir: $(DISTFILES)
401         rm -rf $(distdir)
402         mkdir $(distdir)
403         -chmod 777 $(distdir)
404         @for file in $(DISTFILES); do \
405           if test -f $$file; then d=.; else d=$(srcdir); fi; \
406           test -f $(distdir)/$$file \
407           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
408           || cp -p $$d/$$file $(distdir)/$$file; \
409         done
410         $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
411 info: $(INFO_DEPS)
412 dvi: $(DVIS)
413 check: all
414         $(MAKE)
415 installcheck:
416 install-info: install-info-am
417 install-exec: install-binPROGRAMS
418         @$(NORMAL_INSTALL)
419
420 install-data: install-man
421         @$(NORMAL_INSTALL)
422
423 install: install-exec install-data all
424         @:
425
426 uninstall: uninstall-binPROGRAMS uninstall-man
427
428 all: Makefile $(PROGRAMS) $(MANS) $(HEADERS) gconfig.h
429
430 install-strip:
431         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
432 installdirs:
433         $(mkinstalldirs)  $(bindir) $(mandir)/man1
434
435
436 mostlyclean-generic:
437         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
438
439 clean-generic:
440         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
441
442 distclean-generic:
443         rm -f Makefile $(DISTCLEANFILES)
444         rm -f config.cache config.log stamp-h stamp-h[0-9]*
445         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
446
447 maintainer-clean-generic:
448         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
449         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
450 mostlyclean:  mostlyclean-hdr mostlyclean-binPROGRAMS \
451                 mostlyclean-compile mostlyclean-libtool \
452                 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
453
454 clean:  clean-hdr clean-binPROGRAMS clean-compile clean-libtool \
455                 clean-aminfo clean-tags clean-generic mostlyclean
456
457 distclean:  distclean-hdr distclean-binPROGRAMS distclean-compile \
458                 distclean-libtool distclean-aminfo distclean-tags \
459                 distclean-generic clean
460         rm -f config.status
461         rm -f libtool
462
463 maintainer-clean:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
464                 maintainer-clean-compile maintainer-clean-libtool \
465                 maintainer-clean-aminfo maintainer-clean-tags \
466                 maintainer-clean-generic distclean
467         @echo "This command is intended for maintainers to use;"
468         @echo "it deletes files that may require special tools to rebuild."
469         rm -f config.status
470
471 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
472 maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \
473 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
474 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
475 maintainer-clean-compile mostlyclean-libtool distclean-libtool \
476 clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
477 mostlyclean-aminfo distclean-aminfo clean-aminfo \
478 maintainer-clean-aminfo install-man uninstall-man tags mostlyclean-tags \
479 distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
480 installcheck install-info install-exec install-data install uninstall \
481 all installdirs mostlyclean-generic distclean-generic clean-generic \
482 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
483
484
485 .m.c:
486         awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
487             FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
488             FILE=$*.m $(srcdir)/$*.m
489
490 # Dependencies.
491 $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \
492         core.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
493         search_list.h source.h sym_ids.h symtab.h utils.h \
494         $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \
495         gconfig.h ../bfd/config.h
496 basic_blocks.o: basic_blocks.c
497 bsd_call_bl.o: bsd_call_bl.c
498 call_graph.o: call_graph.c
499 cg_arcs.o: cg_arcs.c
500 cg_dfn.o: cg_dfn.c
501 cg_print.o: cg_print.c
502 core.o: core.c
503 flat_bl.o: flat_bl.c
504 fsf_callg_bl.o: fsf_callg_bl.c
505 gmon_io.o: gmon_io.c
506 gprof.o: gprof.c
507 hertz.o: hertz.c
508 hist.o: hist.c
509 search_list.o: search_list.c
510 source.o: source.c
511 symtab.o: symtab.c
512 sym_ids.o: sym_ids.c
513 utils.o: utils.c
514 i386.o: i386.c
515 alpha.o: alpha.c
516 vax.o: vax.c
517 tahoe.o: tahoe.c
518 sparc.o: sparc.c
519
520 # Tell versions [3.59,3.63) of GNU make to not export all variables.
521 # Otherwise a system limit (for SysV at least) may be exceeded.
522 .NOEXPORT: