]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/Makefile.in
* Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the
[thirdparty/binutils-gdb.git] / gprof / Makefile.in
1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
2
3 .SUFFIXES : .m
4
5 VPATH = @srcdir@
6 srcdir = @srcdir@
7 prefix = @prefix@
8
9 exec_prefix = @exec_prefix@
10 program_transform_name = @program_transform_name@
11
12 bindir = @bindir@
13 libdir = @libdir@
14 tooldir = $(libdir)
15 mandir = @mandir@
16 man1dir = $(mandir)/man1
17
18 infodir = @infodir@
19 datadir = @datadir@
20
21 SHELL = /bin/sh
22
23 INSTALL = `cd $(srcdir); pwd`/../install.sh -c
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@
25 INSTALL_DATA = @INSTALL_DATA@
26 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
27 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
28 MAKEINFO = makeinfo
29 TEX = tex
30 TEXINDEX = texindex
31
32 # this is the directory we look in to find Texinfo
33 texidir = $(srcdir)/../texinfo
34
35 MY_TARGET= @MY_TARGET@
36
37 PROG= gprof
38 SRCS= $(MY_TARGET).c basic_blocks.c call_graph.c \
39 cg_arcs.c cg_dfn.c cg_print.c core.c \
40 gmon_io.c gprof.c hertz.c hist.c source.c search_list.c symtab.c \
41 sym_ids.c utils.c
42
43 LIBDEPS = ../bfd/libbfd.a ../libiberty/libiberty.a
44 LIBS = @BFDLIB@ ../libiberty/libiberty.a
45
46 OBJS= $(MY_TARGET).o basic_blocks.o bsd_callg_bl.o call_graph.o \
47 cg_arcs.o cg_dfn.o cg_print.o core.o flat_bl.o fsf_callg_bl.o \
48 gmon_io.o gprof.o hertz.o hist.o source.o search_list.o symtab.o \
49 sym_ids.o utils.o
50
51 # Files that can be generated, but should be included in distribution.
52 GEN_FILES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
53
54 CFLAGS=-g -DDEBUG
55 LDFLAGS=
56 HLDFLAGS = @HLDFLAGS@
57 HLDENV = @HLDENV@
58 .c.o:
59 $(CC) -c -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_TARGET).h\" $(TCFLAGS) $(HCFLAGS) $(CFLAGS) $<
60
61 all: $(GEN_FILES) $(PROG)
62
63 .PHONY: check installcheck info install-info
64 .SUFFIXES: .m
65
66 .m.c:
67 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
68 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
69 FILE=$*.m $(srcdir)/$*.m
70
71 diststuff: $(GEN_FILES) info
72
73 gprof.info: gprof.texi
74 $(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
75
76 gprof.dvi: gprof.texi
77 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
78 $(TEXINDEX) gprof.??
79 TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
80
81 info: gprof.info
82
83 dvi: gprof.dvi
84
85 check:
86 installcheck:
87
88 TAGS:
89 etags $(srcdir)/*.[ch]
90 tags: TAGS
91
92 install-info: gprof.info
93 if [ -r gprof.info ]; then \
94 dir=. ; \
95 else \
96 dir=$(srcdir) ; \
97 fi ; \
98 for i in `cd $$dir; echo gprof.info*` ; do \
99 $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
100 done
101
102 install: all
103 $(INSTALL_XFORM) gprof $(bindir)/gprof
104 $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
105
106 gprof: $(OBJS) $(LIBDEPS)
107 $(HLDENV) $(CC) -o $(PROG) $(HLDFLAGS) $(LDFLAGS) $(CFLAGS) $(OBJS) $(LIBS)
108
109 mostlyclean:
110 -rm -f *.o core gprof nohup.out \
111 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
112 gprof.aux gprof.dvi gprof.ky gprof.pg gprof.toc gprof.vr\
113 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
114 clean: mostlyclean
115 -rm -f gprof
116 distclean: clean
117 -rm -f config.cache config.log config.status Makefile
118 maintainer-clean realclean: distclean
119 -rm -f $(GEN_FILES) *.info*
120
121 Makefile: Makefile.in config.status
122 $(SHELL) config.status
123
124 config.status: configure
125 $(SHELL) config.status --recheck
126
127 $(OBJS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h core.h gmon_io.h \
128 gmon_out.h gprof.h hertz.h hist.h search_list.h source.h sym_ids.h \
129 symtab.h utils.h $(srcdir)/../include/libiberty.h \
130 $(srcdir)/../bfd/sysdep.h $(MY_TARGET).h
131
132 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
133 $(MY_TARGET).o: $(MY_TARGET).c
134 basic_blocks.o: basic_blocks.c
135 bsd_call_bl.o: bsd_call_bl.c
136 call_graph.o: call_graph.c
137 cg_arcs.o: cg_arcs.c
138 cg_dfn.o: cg_dfn.c
139 cg_print.o: cg_print.c
140 core.o: core.c
141 flat_bl.o: flat_bl.c
142 fsf_callg_bl.o: fsf_callg_bl.c
143 gmon_io.o: gmon_io.c
144 gprof.o: gprof.c
145 hertz.o: hertz.c
146 hist.o: hist.c
147 search_list.o: search_list.c
148 source.o: source.c
149 symtab.o: symtab.c
150 sym_ids.o: sym_ids.c
151 utils.o: utils.c