1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
8 exec_prefix = $(prefix)
9 bindir = $(exec_prefix)/bin
10 libdir = $(exec_prefix)/lib
12 mandir = $(prefix)/man
13 man1dir = $(mandir)/man1
15 infodir = $(prefix)/info
16 datadir = $(prefix)/lib
19 INSTALL_PROGRAM
= $(INSTALL
)
20 INSTALL_DATA
= $(INSTALL
)
25 # this is the directory we look in to find Texinfo
26 texidir
= $(srcdir)/..
/texinfo
28 #### host and target dependent Makefile fragments come in here.
32 SRCS
= gprof.c arcs.c dfn.c lookup.c
$(MACHINE
).c hertz.c \
33 printgprof.c printlist.c
34 LIBS
= ..
/bfd
/libbfd.a ..
/libiberty
/libiberty.a
36 OBJS
= gprof.o arcs.o dfn.o lookup.o
$(MACHINE
).o hertz.o \
37 printgprof.o printlist.o \
38 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
40 # Files that can be generated, but should be included in distribution.
41 DISTSTUFF
= flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
46 $(CC
) -c
$(CFLAGS
) -I.
-I
$(srcdir) -I
$(srcdir)/..
/include -I
$(srcdir)/..
/bfd
-DMACHINE_H
=\"$(MACHINE
).h
\" $(TCFLAGS
) $(HCFLAGS
) $<
48 all: diststuff
$(PROG
)
50 .PHONY
: check installcheck info install-info
54 awk
-f
$(srcdir)/gen-c-prog.awk
> .
/$*.c \
55 FUNCTION
=`(echo $*|sed -e 's/_bl//')`_blurb \
56 FILE
=$*.m
$(srcdir)/$*.m
58 diststuff
: $(DISTSTUFF
)
60 gprof.
info: gprof.texi
61 $(MAKEINFO
) -o gprof.
info $(srcdir)/gprof.texi
64 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
66 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
76 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
77 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
78 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
79 for i in
*.
info* ; do \
80 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
84 -parent
=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
85 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
86 -if
[ -d
$(man1dir) ] ; then true
; else mkdir
$(man1dir) ; fi
87 -parent
=`echo $(bindir)|sed -e 's@/[^/]*$$@@'`; \
88 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
89 -if
[ -d
$(bindir) ] ; then true
; else mkdir
$(bindir) ; fi
90 $(INSTALL_PROGRAM
) $(PROG
) $(bindir)/$(PROG
)
91 $(INSTALL_DATA
) $(srcdir)/gprof
.1 $(man1dir)/gprof
.1
94 $(CC
) -o
$(PROG
) $(LDFLAGS
) $(OBJS
) $(LIBS
)
97 -rm -f
*.o core gprof nohup.out gprof.
info* \
98 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
99 gprof.aux gprof.
dvi gprof.ky gprof.pg gprof.toc gprof.vr\
100 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
104 -rm -f config.status Makefile
108 Makefile
: Makefile.in
112 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
117 $(MACHINE
).o
: $(MACHINE
).c
119 printgprof.o
: printgprof.c
120 printlist.o
: printlist.c
122 bsd_callg_bl.o
: bsd_callg_bl.c
123 fsf_callg_bl.o
: fsf_callg_bl.c