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