1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
10 exec_prefix = $(prefix)
11 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 #### host and target dependent Makefile fragments come in here.
37 SRCS
= gprof.c arcs.c dfn.c lookup.c
$(MY_MACHINE
).c hertz.c \
38 printgprof.c printlist.c
39 LIBS
= ..
/bfd
/libbfd.a ..
/libiberty
/libiberty.a
41 OBJS
= gprof.o arcs.o dfn.o lookup.o
$(MY_MACHINE
).o hertz.o \
42 printgprof.o printlist.o \
43 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
45 # Files that can be generated, but should be included in distribution.
46 DISTSTUFF
= flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
51 $(CC
) -c
$(CFLAGS
) -I.
-I
$(srcdir) -I..
/bfd
-I
$(srcdir)/..
/include -I
$(srcdir)/..
/bfd
-DMACHINE_H
=\"$(MY_MACHINE
).h
\" $(TCFLAGS
) $(HCFLAGS
) $<
53 all: diststuff
$(PROG
)
55 .PHONY
: check installcheck info install-info
59 awk
-f
$(srcdir)/gen-c-prog.awk
> .
/$*.c \
60 FUNCTION
=`(echo $*|sed -e 's/_bl//')`_blurb \
61 FILE
=$*.m
$(srcdir)/$*.m
63 diststuff
: $(DISTSTUFF
)
65 gprof.
info: gprof.texi
66 $(MAKEINFO
) -o gprof.
info $(srcdir)/gprof.texi
69 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
71 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
80 install-info
: gprof.
info
81 if
[ -r gprof.
info ]; then \
86 for i in
`cd $$dir; echo gprof.info*` ; do \
87 $(INSTALL_DATA
) $$dir/$$i $(infodir)/$$i ; \
91 $(INSTALL_XFORM
) gprof
$(bindir)/gprof
92 $(INSTALL_XFORM1
) $(srcdir)/gprof
.1 $(man1dir)/gprof
.1
93 -n
=`t='$(program_transform_name)'; echo gprof | sed -e "s/brokensed/brokensed/" $$t`; \
94 rm -f
$(tooldir
)/bin
/gprof
; \
95 ln
$(bindir)/$$n $(tooldir
)/bin
/gprof \
96 ||
$(INSTALL_PROGRAM
) gprof
$(tooldir
)/bin
/gprof
;
100 $(CC
) -o
$(PROG
) $(LDFLAGS
) $(OBJS
) $(LIBS
)
103 -rm -f
*.o core gprof nohup.out gprof.
info* \
104 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
105 gprof.aux gprof.
dvi gprof.ky gprof.pg gprof.toc gprof.vr\
106 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
110 -rm -f config.status Makefile
114 Makefile
: Makefile.in
118 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
123 $(MY_MACHINE
).o
: $(MY_MACHINE
).c
125 printgprof.o
: printgprof.c
126 printlist.o
: printlist.c
128 bsd_callg_bl.o
: bsd_callg_bl.c
129 fsf_callg_bl.o
: fsf_callg_bl.c