1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
9 exec_prefix = $(prefix)
10 program_transform_name
= @program_transform_name@
12 bindir = $(exec_prefix)/bin
13 libdir = $(exec_prefix)/lib
15 mandir = $(prefix)/man
16 man1dir = $(mandir)/man1
18 infodir = $(prefix)/info
19 datadir = $(prefix)/lib
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
30 # this is the directory we look in to find Texinfo
31 texidir
= $(srcdir)/..
/texinfo
33 MY_TARGET
= @MY_TARGET@
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 \
41 LIBS
= ..
/bfd
/libbfd.a ..
/libiberty
/libiberty.a
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 \
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
54 $(CC
) -c
$(CFLAGS
) -I.
-I
$(srcdir) -I..
/bfd
-I
$(srcdir)/..
/include -I
$(srcdir)/..
/bfd
-DMACHINE_H
=\"$(MY_TARGET
).h
\" $(TCFLAGS
) $(HCFLAGS
) $<
56 all: diststuff
$(PROG
)
58 .PHONY
: check installcheck info install-info
62 awk
-f
$(srcdir)/gen-c-prog.awk
> .
/$*.c \
63 FUNCTION
=`(echo $*|sed -e 's/_bl//')`_blurb \
64 FILE
=$*.m
$(srcdir)/$*.m
66 diststuff
: $(DISTSTUFF
)
68 gprof.
info: gprof.texi
69 $(MAKEINFO
) -o gprof.
info $(srcdir)/gprof.texi
72 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
74 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
83 install-info
: gprof.
info
84 if
[ -r gprof.
info ]; then \
89 for i in
`cd $$dir; echo gprof.info*` ; do \
90 $(INSTALL_DATA
) $$dir/$$i $(infodir)/$$i ; \
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
;
102 gprof
: $(OBJS
) $(LIBS
)
103 $(CC
) -o
$(PROG
) $(LDFLAGS
) $(OBJS
) $(LIBS
)
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
113 -rm -f config.status Makefile
117 Makefile
: Makefile.in
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
128 cg_print.o
: cg_print.c
131 fsf_callg_bl.o
: fsf_callg_bl.c
136 search_list.o
: search_list.c