]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/Makefile.in
* Makefile.am (INCLUDES): Add -DDEBUG.
[thirdparty/binutils-gdb.git] / gprof / Makefile.in
1 # Makefile.in generated automatically by automake 1.1p from Makefile.am
2
3 # Copyright (C) 1994, 1995, 1996 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 = /bin/sh
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 ACLOCAL = @ACLOCAL@
59 AUTOCONF = @AUTOCONF@
60 AUTOHEADER = @AUTOHEADER@
61 AUTOMAKE = @AUTOMAKE@
62 BFDLIB = @BFDLIB@
63 CC = @CC@
64 EXEEXT = @EXEEXT@
65 HLDENV = @HLDENV@
66 HLDFLAGS = @HLDFLAGS@
67 MAINT = @MAINT@
68 MAKEINFO = @MAKEINFO@
69 PACKAGE = @PACKAGE@
70 VERSION = @VERSION@
71
72 AUTOMAKE_OPTIONS = foreign
73
74 SUFFIXES = .m
75
76 INCLUDES = -D_GNU_SOURCE -DDEBUG -DTARGET_$(MY_TARGET) -DMACHINE_H=\"$(MY_TARGET).h\" -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd
77
78 LINK = $(HLDENV) $(CC) $(LDFLAGS) -o $@
79
80 MY_TARGET = @MY_TARGET@
81
82 bin_PROGRAMS = gprof
83
84 gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
85 cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
86 search_list.c symtab.c sym_ids.c utils.c \
87 flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
88 gprof_LDFLAGS = $(HLDFLAGS)
89 gprof_DEPENDENCIES = $(MY_TARGET).o ../bfd/libbfd.a ../libiberty/libiberty.a
90 gprof_LDADD = $(MY_TARGET).o @BFDLIB@ ../libiberty/libiberty.a
91
92 noinst_HEADERS = \
93 alpha.h i386.h ns532.h sparc.h tahoe.h vax.h dummy.h \
94 basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
95 core.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
96 search_list.h source.h sparc.h sym_ids.h symtab.h utils.h
97
98 EXTRA_DIST = \
99 alpha.c i386.c ns532.c sparc.c tahoe.c vax.c dummy.c \
100 flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
101 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
102
103 info_TEXINFOS = gprof.texi
104 man_MANS = gprof.1
105 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
106 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
107 CONFIG_CLEAN_FILES =
108 PROGRAMS = $(bin_PROGRAMS)
109
110
111 DEFS = @DEFS@ -I. -I$(srcdir)
112 CPPFLAGS = @CPPFLAGS@
113 LDFLAGS = @LDFLAGS@
114 LIBS = @LIBS@
115 gprof_OBJECTS = basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o \
116 cg_print.o core.o gmon_io.o gprof.o hertz.o hist.o source.o \
117 search_list.o symtab.o sym_ids.o utils.o flat_bl.o bsd_callg_bl.o \
118 fsf_callg_bl.o
119 CFLAGS = @CFLAGS@
120 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
121 TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
122 TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
123 INFO_DEPS = gprof.info
124 DVIS = gprof.dvi
125 TEXINFOS = gprof.texi
126 MANS = gprof.1
127
128 NROFF = nroff
129 HEADERS = $(noinst_HEADERS)
130
131 DIST_COMMON = ChangeLog Makefile.am Makefile.in TODO aclocal.m4 \
132 configure configure.in
133
134
135 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
136
137 TAR = tar
138 GZIP = --best
139 SOURCES = $(gprof_SOURCES)
140 OBJECTS = $(gprof_OBJECTS)
141
142 default: all
143
144 .SUFFIXES:
145 .SUFFIXES: .c .dvi .info .m .o .ps .texi .texinfo
146 $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
147 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
148
149 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
150 cd $(top_builddir) \
151 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
152
153 $(ACLOCAL_M4): @MAINT@ configure.in
154 cd $(srcdir) && $(ACLOCAL)
155
156 config.status: $(srcdir)/configure
157 $(SHELL) ./config.status --recheck
158 $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
159 cd $(srcdir) && $(AUTOCONF)
160
161 mostlyclean-binPROGRAMS:
162
163 clean-binPROGRAMS:
164 @list='$(bin_PROGRAMS)'; for p in $$list; do \
165 rm -f $$p $$p$(EXEEXT); \
166 done
167
168 distclean-binPROGRAMS:
169
170 maintainer-clean-binPROGRAMS:
171
172 install-binPROGRAMS: $(bin_PROGRAMS)
173 @$(NORMAL_INSTALL)
174 $(mkinstalldirs) $(bindir)
175 @list='$(bin_PROGRAMS)'; for p in $$list; do \
176 if test -f $$p; then \
177 echo " $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed '$(transform)'`$(EXEEXT)"; \
178 $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed '$(transform)'`$(EXEEXT); \
179 else :; fi; \
180 done
181
182 uninstall-binPROGRAMS:
183 $(NORMAL_UNINSTALL)
184 list='$(bin_PROGRAMS)'; for p in $$list; do \
185 rm -f $(bindir)/`echo $$p|sed '$(transform)'`$(EXEEXT); \
186 done
187
188 .c.o:
189 $(COMPILE) -c $<
190
191 mostlyclean-compile:
192 rm -f *.o core
193
194 clean-compile:
195
196 distclean-compile:
197 rm -f *.tab.c
198
199 maintainer-clean-compile:
200
201 gprof: $(gprof_OBJECTS) $(gprof_DEPENDENCIES)
202 @rm -f gprof$(EXEEXT)
203 $(LINK) $(gprof_LDFLAGS) $(gprof_OBJECTS) $(gprof_LDADD) $(LIBS)
204 @test -z "$(EXEEXT)" || echo timestamp > gprof
205
206 gprof.info: gprof.texi
207 gprof.dvi: gprof.texi
208
209
210 DVIPS = dvips
211
212 .texi.info:
213 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
214 $(MAKEINFO) -I $(srcdir) $<
215
216 .texi.dvi:
217 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
218 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
219
220 .texi:
221 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
222 $(MAKEINFO) -I $(srcdir) $<
223
224 .texinfo.info:
225 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
226 $(MAKEINFO) $<
227
228 .texinfo:
229 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
230 $(MAKEINFO) $<
231
232 .texinfo.dvi:
233 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
234 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
235 .dvi.ps:
236 $(DVIPS) $< -o $@
237
238 install-info-am: $(INFO_DEPS)
239 @$(NORMAL_INSTALL)
240 $(mkinstalldirs) $(infodir)
241 @for file in $(INFO_DEPS); do \
242 if test -f $$file; then d=.; else d=$(srcdir); fi; \
243 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
244 if test -f $$d/$$ifile; then \
245 echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
246 $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
247 else : ; fi; \
248 done; \
249 done
250 @$(POST_INSTALL)
251 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
252 for file in $(INFO_DEPS); do \
253 echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
254 install-info --info-dir=$(infodir) $(infodir)/$$file; :;\
255 done; \
256 else : ; fi
257
258 uninstall-info:
259 $(PRE_UNINSTALL)
260 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
261 ii=yes; \
262 else ii=; fi; \
263 for file in $(INFO_DEPS); do \
264 test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \
265 done
266 $(NORMAL_UNINSTALL)
267 for file in $(INFO_DEPS); do \
268 (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
269 done
270
271 dist-info: $(INFO_DEPS)
272 for base in $(INFO_DEPS); do \
273 if test -f $$base; then d=.; else d=$(srcdir); fi; \
274 for file in `cd $$d && eval echo $$base*`; do \
275 test -f $(distdir)/$$file \
276 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
277 || cp -p $$d/$$file $(distdir)/$$file; \
278 done; \
279 done
280
281 mostlyclean-aminfo:
282 rm -f gprof.aux gprof.cp gprof.cps gprof.dvi gprof.fn gprof.fns \
283 gprof.ky gprof.log gprof.pg gprof.toc gprof.tp gprof.tps \
284 gprof.vr gprof.vrs gprof.op gprof.tr gprof.cv
285
286 clean-aminfo:
287
288 distclean-aminfo:
289
290 maintainer-clean-aminfo:
291 for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done
292 clean-info: mostlyclean-aminfo
293 install-man: $(MANS)
294 $(NORMAL_INSTALL)
295 $(mkinstalldirs) $(mandir)/man1
296 @sect=1; \
297 inst=`echo "gprof" | sed '$(transform)'`.1; \
298 if test -f $(srcdir)/gprof.1; then file=$(srcdir)/gprof.1; \
299 else file=gprof.1; fi; \
300 echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \
301 $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst
302
303 uninstall-man:
304 $(NORMAL_UNINSTALL)
305 inst=`echo "gprof" | sed '$(transform)'`.1; \
306 rm -f $(mandir)/man1/$$inst
307
308
309 tags: TAGS
310
311 ID: $(HEADERS) $(SOURCES)
312 here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
313
314 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES)
315 tags=; \
316 here=`pwd`; \
317 test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
318 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $(SOURCES) $(HEADERS) -o $$here/TAGS)
319
320 mostlyclean-tags:
321
322 clean-tags:
323
324 distclean-tags:
325 rm -f TAGS ID
326
327 maintainer-clean-tags:
328
329 distdir = $(PACKAGE)-$(VERSION)
330 top_distdir = $(distdir)
331
332 # This target untars the dist file and tries a VPATH configuration. Then
333 # it guarantees that the distribution is self-contained by making another
334 # tarfile.
335 distcheck: dist
336 rm -rf $(distdir)
337 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
338 mkdir $(distdir)/=build
339 mkdir $(distdir)/=inst
340 dc_install_base=`cd $(distdir)/=inst && pwd`; \
341 cd $(distdir)/=build \
342 && ../configure --srcdir=.. --prefix=$$dc_install_base \
343 && $(MAKE) \
344 && $(MAKE) dvi \
345 && $(MAKE) check \
346 && $(MAKE) install \
347 && $(MAKE) installcheck \
348 && $(MAKE) dist
349 rm -rf $(distdir)
350 @echo "========================"; \
351 echo "$(distdir).tar.gz is ready for distribution"; \
352 echo "========================"
353 dist: distdir
354 -chmod -R a+r $(distdir)
355 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
356 rm -rf $(distdir)
357 dist-all: distdir
358 -chmod -R a+r $(distdir)
359 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
360 rm -rf $(distdir)
361 distdir: $(DISTFILES)
362 rm -rf $(distdir)
363 mkdir $(distdir)
364 -chmod 777 $(distdir)
365 @for file in $(DISTFILES); do \
366 if test -f $$file; then d=.; else d=$(srcdir); fi; \
367 test -f $(distdir)/$$file \
368 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
369 || cp -p $$d/$$file $(distdir)/$$file; \
370 done
371 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
372 info: $(INFO_DEPS)
373 dvi: $(DVIS)
374 check: all
375 $(MAKE)
376 installcheck:
377 install-info: install-info-am
378 install-exec: install-binPROGRAMS
379 @$(NORMAL_INSTALL)
380
381 install-data: install-man
382 @$(NORMAL_INSTALL)
383
384 install: install-exec install-data all
385 @:
386
387 uninstall: uninstall-binPROGRAMS uninstall-man
388
389 all: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
390
391 install-strip:
392 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
393 installdirs:
394 $(mkinstalldirs) $(bindir) $(mandir)/man1
395
396
397 mostlyclean-generic:
398 test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
399
400 clean-generic:
401 test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
402
403 distclean-generic:
404 rm -f Makefile $(DISTCLEANFILES)
405 rm -f config.cache config.log stamp-h stamp-h[0-9]*
406 test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
407
408 maintainer-clean-generic:
409 test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
410 test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
411 mostlyclean: mostlyclean-binPROGRAMS mostlyclean-compile \
412 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
413
414 clean: clean-binPROGRAMS clean-compile clean-aminfo clean-tags \
415 clean-generic mostlyclean
416
417 distclean: distclean-binPROGRAMS distclean-compile distclean-aminfo \
418 distclean-tags distclean-generic clean
419 rm -f config.status
420
421 maintainer-clean: maintainer-clean-binPROGRAMS maintainer-clean-compile \
422 maintainer-clean-aminfo maintainer-clean-tags \
423 maintainer-clean-generic distclean
424 @echo "This command is intended for maintainers to use;"
425 @echo "it deletes files that may require special tools to rebuild."
426 rm -f config.status
427
428 .PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \
429 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
430 install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
431 maintainer-clean-compile install-info-am uninstall-info \
432 mostlyclean-aminfo distclean-aminfo clean-aminfo \
433 maintainer-clean-aminfo install-man uninstall-man tags mostlyclean-tags \
434 distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
435 installcheck install-info install-exec install-data install uninstall \
436 all installdirs mostlyclean-generic distclean-generic clean-generic \
437 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
438
439
440 .m.c:
441 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
442 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
443 FILE=$*.m $(srcdir)/$*.m
444
445 # Dependencies.
446 $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \
447 core.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
448 search_list.h source.h sym_ids.h symtab.h utils.h \
449 $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \
450 $(MY_TARGET).h
451 $(MY_TARGET).o: $(MY_TARGET).c
452 basic_blocks.o: basic_blocks.c
453 bsd_call_bl.o: bsd_call_bl.c
454 call_graph.o: call_graph.c
455 cg_arcs.o: cg_arcs.c
456 cg_dfn.o: cg_dfn.c
457 cg_print.o: cg_print.c
458 core.o: core.c
459 flat_bl.o: flat_bl.c
460 fsf_callg_bl.o: fsf_callg_bl.c
461 gmon_io.o: gmon_io.c
462 gprof.o: gprof.c
463 hertz.o: hertz.c
464 hist.o: hist.c
465 search_list.o: search_list.c
466 source.o: source.c
467 symtab.o: symtab.c
468 sym_ids.o: sym_ids.c
469 utils.o: utils.c
470
471 # Tell versions [3.59,3.63) of GNU make to not export all variables.
472 # Otherwise a system limit (for SysV at least) may be exceeded.
473 .NOEXPORT: