xref: /openbsd/gnu/usr.bin/binutils/gprof/Makefile.in (revision 133306f0)
1# Makefile.in generated automatically by automake 1.4 from Makefile.am
2
3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
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
13
14SHELL = @SHELL@
15
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
19prefix = @prefix@
20exec_prefix = @exec_prefix@
21
22bindir = @bindir@
23sbindir = @sbindir@
24libexecdir = @libexecdir@
25datadir = @datadir@
26sysconfdir = @sysconfdir@
27sharedstatedir = @sharedstatedir@
28localstatedir = @localstatedir@
29libdir = @libdir@
30infodir = @infodir@
31mandir = @mandir@
32includedir = @includedir@
33oldincludedir = /usr/include
34
35DESTDIR =
36
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
40
41top_builddir = .
42
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
47
48INSTALL = @INSTALL@
49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
50INSTALL_DATA = @INSTALL_DATA@
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
53
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
60build_alias = @build_alias@
61build_triplet = @build@
62host_alias = @host_alias@
63host_triplet = @host@
64target_alias = @target_alias@
65target_triplet = @target@
66AS = @AS@
67CATALOGS = @CATALOGS@
68CATOBJEXT = @CATOBJEXT@
69CC = @CC@
70DATADIRNAME = @DATADIRNAME@
71DLLTOOL = @DLLTOOL@
72EXEEXT = @EXEEXT@
73GMOFILES = @GMOFILES@
74GMSGFMT = @GMSGFMT@
75GT_NO = @GT_NO@
76GT_YES = @GT_YES@
77INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
78INSTOBJEXT = @INSTOBJEXT@
79INTLDEPS = @INTLDEPS@
80INTLLIBS = @INTLLIBS@
81INTLOBJS = @INTLOBJS@
82LIBTOOL = @LIBTOOL@
83LN_S = @LN_S@
84MAINT = @MAINT@
85MAKEINFO = @MAKEINFO@
86MKINSTALLDIRS = @MKINSTALLDIRS@
87MSGFMT = @MSGFMT@
88OBJDUMP = @OBJDUMP@
89PACKAGE = @PACKAGE@
90POFILES = @POFILES@
91POSUB = @POSUB@
92RANLIB = @RANLIB@
93USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
94USE_NLS = @USE_NLS@
95VERSION = @VERSION@
96l = @l@
97
98AUTOMAKE_OPTIONS = cygnus
99
100SUFFIXES = .m
101
102SUBDIRS = po
103
104BASEDIR = $(srcdir)/..
105BFDDIR = $(BASEDIR)/bfd
106INCDIR = $(BASEDIR)/include
107
108MKDEP = gcc -MM
109
110INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(prefix)/share/locale\""
111
112bin_PROGRAMS = gprof
113
114sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
115	cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
116	search_list.c symtab.c sym_ids.c utils.c \
117	i386.c alpha.c vax.c tahoe.c sparc.c
118
119gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
120gprof_DEPENDENCIES = ../bfd/libbfd.la $(INTLDEPS)
121gprof_LDADD = ../bfd/libbfd.la -liberty $(INTLLIBS)
122
123noinst_HEADERS = \
124	basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
125	corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
126	search_list.h source.h sym_ids.h symtab.h utils.h
127
128
129EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl
130
131BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
132
133POTFILES = $(sources) $(noinst_HEADERS)
134
135info_TEXINFOS = gprof.texi
136man_MANS = gprof.1
137
138CLEANFILES = dep.sed DEP DEP1 DEP2
139ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
140mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
141CONFIG_HEADER = gconfig.h
142CONFIG_CLEAN_FILES =
143bin_PROGRAMS =  gprof$(EXEEXT)
144PROGRAMS =  $(bin_PROGRAMS)
145
146
147DEFS = @DEFS@ -I. -I$(srcdir) -I.
148CPPFLAGS = @CPPFLAGS@
149LDFLAGS = @LDFLAGS@
150LIBS = @LIBS@
151gprof_OBJECTS =  basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o \
152cg_print.o corefile.o gmon_io.o gprof.o hertz.o hist.o source.o \
153search_list.o symtab.o sym_ids.o utils.o i386.o alpha.o vax.o tahoe.o \
154sparc.o flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
155gprof_LDFLAGS =
156CFLAGS = @CFLAGS@
157COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
158LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
159CCLD = $(CC)
160LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
161TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
162TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
163INFO_DEPS = gprof.info
164DVIS = gprof.dvi
165TEXINFOS = gprof.texi
166man1dir = $(mandir)/man1
167MANS = $(man_MANS)
168
169NROFF = nroff
170HEADERS =  $(noinst_HEADERS)
171
172DIST_COMMON =  ./stamp-h.in ChangeLog Makefile.am Makefile.in TODO \
173aclocal.m4 configure configure.in gconfig.in
174
175
176DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
177
178# Target to use for installing unformatted man-pages.  Some systems may not
179# want them installed.
180INSTALL_MAN = install-man
181
182TAR = tar
183GZIP_ENV = --best
184SOURCES = $(gprof_SOURCES)
185OBJECTS = $(gprof_OBJECTS)
186
187all: all-redirect
188.SUFFIXES:
189.SUFFIXES: .S .c .dvi .info .lo .m .o .ps .s .texi .texinfo .txi
190$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
191	cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
192
193Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
194	cd $(top_builddir) \
195	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
196
197$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
198	cd $(srcdir) && $(ACLOCAL)
199
200config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
201	$(SHELL) ./config.status --recheck
202$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
203	cd $(srcdir) && $(AUTOCONF)
204
205gconfig.h: stamp-h
206	@if test ! -f $@; then \
207		rm -f stamp-h; \
208		$(MAKE) stamp-h; \
209	else :; fi
210stamp-h: $(srcdir)/gconfig.in $(top_builddir)/config.status
211	cd $(top_builddir) \
212	  && CONFIG_FILES= CONFIG_HEADERS=gconfig.h:gconfig.in \
213	     $(SHELL) ./config.status
214	@echo timestamp > stamp-h 2> /dev/null
215$(srcdir)/gconfig.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
216	@if test ! -f $@; then \
217		rm -f $(srcdir)/stamp-h.in; \
218		$(MAKE) $(srcdir)/stamp-h.in; \
219	else :; fi
220$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
221	cd $(top_srcdir) && $(AUTOHEADER)
222	@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
223
224mostlyclean-hdr:
225
226clean-hdr:
227
228distclean-hdr:
229	-rm -f gconfig.h
230
231maintainer-clean-hdr:
232
233mostlyclean-binPROGRAMS:
234
235clean-binPROGRAMS:
236	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
237
238distclean-binPROGRAMS:
239
240maintainer-clean-binPROGRAMS:
241
242install-binPROGRAMS: $(bin_PROGRAMS)
243	@$(NORMAL_INSTALL)
244	$(mkinstalldirs) $(DESTDIR)$(bindir)
245	@list='$(bin_PROGRAMS)'; for p in $$list; do \
246	  if test -f $$p; then \
247	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
248	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
249	  else :; fi; \
250	done
251
252uninstall-binPROGRAMS:
253	@$(NORMAL_UNINSTALL)
254	list='$(bin_PROGRAMS)'; for p in $$list; do \
255	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
256	done
257
258.c.o:
259	$(COMPILE) -c $<
260
261.s.o:
262	$(COMPILE) -c $<
263
264.S.o:
265	$(COMPILE) -c $<
266
267mostlyclean-compile:
268	-rm -f *.o core *.core
269
270clean-compile:
271
272distclean-compile:
273	-rm -f *.tab.c
274
275maintainer-clean-compile:
276
277.c.lo:
278	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
279
280.s.lo:
281	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
282
283.S.lo:
284	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
285
286mostlyclean-libtool:
287	-rm -f *.lo
288
289clean-libtool:
290	-rm -rf .libs _libs
291
292distclean-libtool:
293
294maintainer-clean-libtool:
295
296gprof$(EXEEXT): $(gprof_OBJECTS) $(gprof_DEPENDENCIES)
297	@rm -f gprof$(EXEEXT)
298	$(LINK) $(gprof_LDFLAGS) $(gprof_OBJECTS) $(gprof_LDADD) $(LIBS)
299
300gprof.info: gprof.texi
301gprof.dvi: gprof.texi
302
303
304DVIPS = dvips
305
306.texi.info:
307	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
308	$(MAKEINFO) -I $(srcdir) $<
309
310.texi.dvi:
311	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
312	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
313
314.texi:
315	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
316	$(MAKEINFO) -I $(srcdir) $<
317
318.texinfo.info:
319	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
320	$(MAKEINFO) -I $(srcdir) $<
321
322.texinfo:
323	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
324	$(MAKEINFO) -I $(srcdir) $<
325
326.texinfo.dvi:
327	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
328	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
329
330.txi.info:
331	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
332	$(MAKEINFO) -I $(srcdir) $<
333
334.txi.dvi:
335	TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
336	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
337
338.txi:
339	@rm -f $@ $@-[0-9] $@-[0-9][0-9]
340	$(MAKEINFO) -I $(srcdir) $<
341.dvi.ps:
342	$(DVIPS) $< -o $@
343
344install-info-am: $(INFO_DEPS)
345	@$(NORMAL_INSTALL)
346	$(mkinstalldirs) $(DESTDIR)$(infodir)
347	@list='$(INFO_DEPS)'; \
348	for file in $$list; do \
349	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
350	  for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
351	    if test -f $$d/$$ifile; then \
352	      echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
353	      $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
354	    else : ; fi; \
355	  done; \
356	done
357	@$(POST_INSTALL)
358	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
359	  list='$(INFO_DEPS)'; \
360	  for file in $$list; do \
361	    echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
362	    install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
363	  done; \
364	else : ; fi
365
366uninstall-info:
367	$(PRE_UNINSTALL)
368	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
369	  ii=yes; \
370	else ii=; fi; \
371	list='$(INFO_DEPS)'; \
372	for file in $$list; do \
373	  test -z "$ii" \
374	    || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
375	done
376	@$(NORMAL_UNINSTALL)
377	list='$(INFO_DEPS)'; \
378	for file in $$list; do \
379	  (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
380	done
381
382dist-info: $(INFO_DEPS)
383	list='$(INFO_DEPS)'; \
384	for base in $$list; do \
385	  if test -f $$base; then d=.; else d=$(srcdir); fi; \
386	  for file in `cd $$d && eval echo $$base*`; do \
387	    test -f $(distdir)/$$file \
388	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
389	    || cp -p $$d/$$file $(distdir)/$$file; \
390	  done; \
391	done
392
393mostlyclean-aminfo:
394	-rm -f gprof.aux gprof.cp gprof.cps gprof.dvi gprof.fn gprof.fns \
395	  gprof.ky gprof.kys gprof.ps gprof.log gprof.pg gprof.toc \
396	  gprof.tp gprof.tps gprof.vr gprof.vrs gprof.op gprof.tr \
397	  gprof.cv gprof.cn
398
399clean-aminfo:
400
401distclean-aminfo:
402
403maintainer-clean-aminfo:
404	for i in $(INFO_DEPS); do \
405	  rm -f $$i; \
406	  if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
407	    rm -f $$i-[0-9]*; \
408	  fi; \
409	done
410clean-info: mostlyclean-aminfo
411
412install-man1:
413	$(mkinstalldirs) $(DESTDIR)$(man1dir)
414	@list='$(man1_MANS)'; \
415	l2='$(man_MANS)'; for i in $$l2; do \
416	  case "$$i" in \
417	    *.1*) list="$$list $$i" ;; \
418	  esac; \
419	done; \
420	for i in $$list; do \
421	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
422	  else file=$$i; fi; \
423	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
424	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
425	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
426	  echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
427	  $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
428	done
429
430uninstall-man1:
431	@list='$(man1_MANS)'; \
432	l2='$(man_MANS)'; for i in $$l2; do \
433	  case "$$i" in \
434	    *.1*) list="$$list $$i" ;; \
435	  esac; \
436	done; \
437	for i in $$list; do \
438	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
439	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
440	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
441	  echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
442	  rm -f $(DESTDIR)$(man1dir)/$$inst; \
443	done
444install-man: $(MANS)
445	@$(NORMAL_INSTALL)
446	$(MAKE) $(AM_MAKEFLAGS) install-man1
447uninstall-man:
448	@$(NORMAL_UNINSTALL)
449	$(MAKE) $(AM_MAKEFLAGS) uninstall-man1
450
451# This directory's subdirectories are mostly independent; you can cd
452# into them and run `make' without going through this Makefile.
453# To change the values of `make' variables: instead of editing Makefiles,
454# (1) if the variable is set in `config.status', edit `config.status'
455#     (which will cause the Makefiles to be regenerated when you run `make');
456# (2) otherwise, pass the desired values on the `make' command line.
457
458@SET_MAKE@
459
460all-recursive install-data-recursive install-exec-recursive \
461installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
462check-recursive installcheck-recursive info-recursive dvi-recursive:
463	@set fnord $(MAKEFLAGS); amf=$$2; \
464	dot_seen=no; \
465	target=`echo $@ | sed s/-recursive//`; \
466	list='$(SUBDIRS)'; for subdir in $$list; do \
467	  echo "Making $$target in $$subdir"; \
468	  if test "$$subdir" = "."; then \
469	    dot_seen=yes; \
470	    local_target="$$target-am"; \
471	  else \
472	    local_target="$$target"; \
473	  fi; \
474	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
475	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
476	done; \
477	if test "$$dot_seen" = "no"; then \
478	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
479	fi; test -z "$$fail"
480
481mostlyclean-recursive clean-recursive distclean-recursive \
482maintainer-clean-recursive:
483	@set fnord $(MAKEFLAGS); amf=$$2; \
484	dot_seen=no; \
485	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
486	  rev="$$subdir $$rev"; \
487	  test "$$subdir" = "." && dot_seen=yes; \
488	  true; \
489	done; \
490	test "$$dot_seen" = "no" && rev=". $$rev"; \
491	target=`echo $@ | sed s/-recursive//`; \
492	for subdir in $$rev; do \
493	  echo "Making $$target in $$subdir"; \
494	  if test "$$subdir" = "."; then \
495	    local_target="$$target-am"; \
496	  else \
497	    local_target="$$target"; \
498	  fi; \
499	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
500	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
501	done && test -z "$$fail"
502tags-recursive:
503	list='$(SUBDIRS)'; for subdir in $$list; do \
504	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
505	done
506
507tags: TAGS
508
509ID: $(HEADERS) $(SOURCES) $(LISP)
510	list='$(SOURCES) $(HEADERS)'; \
511	unique=`for i in $$list; do echo $$i; done | \
512	  awk '    { files[$$0] = 1; } \
513	       END { for (i in files) print i; }'`; \
514	here=`pwd` && cd $(srcdir) \
515	  && mkid -f$$here/ID $$unique $(LISP)
516
517TAGS: tags-recursive $(HEADERS) $(SOURCES) gconfig.in $(TAGS_DEPENDENCIES) $(LISP)
518	tags=; \
519	here=`pwd`; \
520	list='$(SUBDIRS)'; for subdir in $$list; do \
521   if test "$$subdir" = .; then :; else \
522	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
523   fi; \
524	done; \
525	list='$(SOURCES) $(HEADERS)'; \
526	unique=`for i in $$list; do echo $$i; done | \
527	  awk '    { files[$$0] = 1; } \
528	       END { for (i in files) print i; }'`; \
529	test -z "$(ETAGS_ARGS)gconfig.in$$unique$(LISP)$$tags" \
530	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags gconfig.in $$unique $(LISP) -o $$here/TAGS)
531
532mostlyclean-tags:
533
534clean-tags:
535
536distclean-tags:
537	-rm -f TAGS ID
538
539maintainer-clean-tags:
540
541distdir = $(PACKAGE)-$(VERSION)
542top_distdir = $(distdir)
543
544# This target untars the dist file and tries a VPATH configuration.  Then
545# it guarantees that the distribution is self-contained by making another
546# tarfile.
547distcheck: dist
548	-rm -rf $(distdir)
549	GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
550	mkdir $(distdir)/=build
551	mkdir $(distdir)/=inst
552	dc_install_base=`cd $(distdir)/=inst && pwd`; \
553	cd $(distdir)/=build \
554	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
555	  && $(MAKE) $(AM_MAKEFLAGS) \
556	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
557	  && $(MAKE) $(AM_MAKEFLAGS) check \
558	  && $(MAKE) $(AM_MAKEFLAGS) install \
559	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
560	  && $(MAKE) $(AM_MAKEFLAGS) dist
561	-rm -rf $(distdir)
562	@banner="$(distdir).tar.gz is ready for distribution"; \
563	dashes=`echo "$$banner" | sed s/./=/g`; \
564	echo "$$dashes"; \
565	echo "$$banner"; \
566	echo "$$dashes"
567dist: distdir
568	-chmod -R a+r $(distdir)
569	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
570	-rm -rf $(distdir)
571dist-all: distdir
572	-chmod -R a+r $(distdir)
573	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
574	-rm -rf $(distdir)
575distdir: $(DISTFILES)
576	-rm -rf $(distdir)
577	mkdir $(distdir)
578	-chmod 777 $(distdir)
579	@for file in $(DISTFILES); do \
580	  if test -f $$file; then d=.; else d=$(srcdir); fi; \
581	  if test -d $$d/$$file; then \
582	    cp -pr $$d/$$file $(distdir)/$$file; \
583	  else \
584	    test -f $(distdir)/$$file \
585	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
586	    || cp -p $$d/$$file $(distdir)/$$file || :; \
587	  fi; \
588	done
589	for subdir in $(SUBDIRS); do \
590	  if test "$$subdir" = .; then :; else \
591	    test -d $(distdir)/$$subdir \
592	    || mkdir $(distdir)/$$subdir \
593	    || exit 1; \
594	    chmod 777 $(distdir)/$$subdir; \
595	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
596	      || exit 1; \
597	  fi; \
598	done
599	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
600info-am: $(INFO_DEPS)
601info: info-recursive
602dvi-am: $(DVIS)
603dvi: dvi-recursive
604check-am:
605check: check-recursive
606installcheck-am:
607installcheck: installcheck-recursive
608install-info-am:
609install-info: install-info-recursive
610all-recursive-am: gconfig.h
611	$(MAKE) $(AM_MAKEFLAGS) all-recursive
612
613install-exec-am: install-binPROGRAMS
614install-exec: install-exec-recursive
615
616install-data-am: $(INSTALL_MAN)
617install-data: install-data-recursive
618
619install-am: all-am
620	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
621install: install-recursive
622uninstall-am: uninstall-binPROGRAMS uninstall-man
623uninstall: uninstall-recursive
624all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS) gconfig.h
625all-redirect: all-recursive-am
626install-strip:
627	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
628installdirs: installdirs-recursive
629installdirs-am:
630	$(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
631
632
633mostlyclean-generic:
634
635clean-generic:
636	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
637
638distclean-generic:
639	-rm -f Makefile $(CONFIG_CLEAN_FILES)
640	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
641
642maintainer-clean-generic:
643	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
644mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
645		mostlyclean-compile mostlyclean-libtool \
646		mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
647
648mostlyclean: mostlyclean-recursive
649
650clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-libtool \
651		clean-aminfo clean-tags clean-generic mostlyclean-am
652
653clean: clean-recursive
654
655distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
656		distclean-libtool distclean-aminfo distclean-tags \
657		distclean-generic clean-am
658	-rm -f libtool
659
660distclean: distclean-recursive
661	-rm -f config.status
662
663maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
664		maintainer-clean-compile maintainer-clean-libtool \
665		maintainer-clean-aminfo maintainer-clean-tags \
666		maintainer-clean-generic distclean-am
667	@echo "This command is intended for maintainers to use;"
668	@echo "it deletes files that may require special tools to rebuild."
669
670maintainer-clean: maintainer-clean-recursive
671	-rm -f config.status
672
673.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
674mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
675maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
676mostlyclean-compile distclean-compile clean-compile \
677maintainer-clean-compile mostlyclean-libtool distclean-libtool \
678clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
679mostlyclean-aminfo distclean-aminfo clean-aminfo \
680maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
681uninstall-man install-data-recursive uninstall-data-recursive \
682install-exec-recursive uninstall-exec-recursive installdirs-recursive \
683uninstalldirs-recursive all-recursive check-recursive \
684installcheck-recursive info-recursive dvi-recursive \
685mostlyclean-recursive distclean-recursive clean-recursive \
686maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
687distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
688dvi-am dvi check check-am installcheck-am installcheck install-info-am \
689install-info all-recursive-am install-exec-am install-exec \
690install-data-am install-data install-am install uninstall-am uninstall \
691all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
692distclean-generic clean-generic maintainer-clean-generic clean \
693mostlyclean distclean maintainer-clean
694
695
696diststuff: $(BUILT_SOURCES) info
697
698.m.c:
699	awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
700	    FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
701	    FILE=$*.m $(srcdir)/$*.m
702po/POTFILES.in: @MAINT@ Makefile
703	for file in $(POTFILES); do echo $$file; done | sort > tmp \
704	  && mv tmp $(srcdir)/po/POTFILES.in
705
706# Targets to rebuild dependencies in this Makefile.
707# Have to get rid of DEP1 here so that "$?" later includes all sources.
708DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
709	rm -f DEP1
710	$(MAKE) MKDEP="$(MKDEP)" DEP1
711	sed -f dep.sed < DEP1 > $@
712	echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
713
714DEP1: $(gprof_SOURCES)
715	echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
716	echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
717	$(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
718	mv -f DEP2 $@
719
720dep.sed: dep-in.sed config.status
721	objdir=`pwd`; \
722	sed <$(srcdir)/dep-in.sed >dep.sed	\
723		-e 's!@INCDIR@!$(INCDIR)!'	\
724		-e 's!@BFDDIR@!$(BFDDIR)!'	\
725		-e 's!@SRCDIR@!$(srcdir)!'	\
726		-e "s!@OBJDIR@!$${objdir}!"
727
728dep: DEP
729	sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
730	cat DEP >> tmp-Makefile
731	$(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
732
733dep-in: DEP
734	sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
735	cat DEP >> tmp-Makefile.in
736	$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
737
738dep-am: DEP
739	sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
740	cat DEP >> tmp-Makefile.am
741	$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
742
743.PHONY: dep dep-in dep-am
744
745# DO NOT DELETE THIS LINE -- mkdep uses it.
746# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
747basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \
748  $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
749  gconfig.h $(INCDIR)/bin-bugs.h source.h search_list.h \
750  symtab.h ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \
751  $(INCDIR)/libiberty.h sym_ids.h
752call_graph.o: call_graph.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \
753  ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
754  symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \
755  corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h
756cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
757  gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
758  gconfig.h $(INCDIR)/bin-bugs.h call_graph.h symtab.h \
759  ../bfd/bfd.h source.h search_list.h cg_arcs.h cg_dfn.h \
760  cg_print.h utils.h sym_ids.h
761cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
762  gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
763  gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
764  source.h search_list.h cg_dfn.h utils.h
765cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
766  cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
767  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
768  symtab.h ../bfd/bfd.h source.h search_list.h cg_print.h \
769  hist.h utils.h
770corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
771  gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
772  gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \
773  symtab.h source.h search_list.h
774gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \
775  ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
776  symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \
777  corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \
778  hertz.h hist.h $(INCDIR)/libiberty.h
779gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
780  $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
781  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
782  basic_blocks.h source.h search_list.h symtab.h ../bfd/bfd.h \
783  call_graph.h cg_arcs.h cg_print.h corefile.h gmon_io.h \
784  gmon.h hertz.h hist.h sym_ids.h
785hertz.o: hertz.c hertz.h gprof.h $(BFDDIR)/sysdep.h \
786  ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h
787hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
788  gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
789  gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \
790  gmon_io.h gmon.h gmon_out.h hist.h symtab.h source.h \
791  search_list.h sym_ids.h utils.h
792source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
793  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
794  $(INCDIR)/libiberty.h search_list.h source.h
795search_list.o: search_list.c $(INCDIR)/libiberty.h \
796  $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
797  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
798  search_list.h
799symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
800  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
801  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
802  corefile.h
803sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
804  cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
805  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
806  symtab.h ../bfd/bfd.h source.h search_list.h sym_ids.h
807utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
808  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
809  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h
810i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
811  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
812  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
813  corefile.h hist.h
814alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
815  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
816  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
817  corefile.h hist.h
818vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
819  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
820  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
821  corefile.h hist.h
822tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
823  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
824  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
825  corefile.h hist.h
826sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
827  $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
828  cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
829  corefile.h hist.h
830flat_bl.o: flat_bl.c
831bsd_callg_bl.o: bsd_callg_bl.c
832fsf_callg_bl.o: fsf_callg_bl.c
833# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
834
835# Tell versions [3.59,3.63) of GNU make to not export all variables.
836# Otherwise a system limit (for SysV at least) may be exceeded.
837.NOEXPORT:
838