1 # @(#)Makefile 5.17 (Berkeley) 5/11/90
8 exec_prefix = $(prefix)
9 program_transform_name
=
10 bindir = $(exec_prefix)/bin
11 libdir = $(exec_prefix)/lib
13 mandir = $(prefix)/man
14 man1dir = $(mandir)/man1
16 infodir = $(prefix)/info
17 datadir = $(prefix)/lib
19 INSTALL
= `cd $(srcdir); pwd`/..
/install.sh
-c
20 INSTALL_PROGRAM
= $(INSTALL
)
21 INSTALL_DATA
= $(INSTALL
)
22 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
23 INSTALL_XFORM1
= $(INSTALL_XFORM
) -b
=.1
28 # this is the directory we look in to find Texinfo
29 texidir
= $(srcdir)/..
/texinfo
31 #### host and target dependent Makefile fragments come in here.
35 SRCS
= gprof.c arcs.c dfn.c lookup.c
$(MY_MACHINE
).c hertz.c \
36 printgprof.c printlist.c
37 LIBS
= ..
/bfd
/libbfd.a ..
/libiberty
/libiberty.a
39 OBJS
= gprof.o arcs.o dfn.o lookup.o
$(MY_MACHINE
).o hertz.o \
40 printgprof.o printlist.o \
41 flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
43 # Files that can be generated, but should be included in distribution.
44 DISTSTUFF
= flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
49 $(CC
) -c
$(CFLAGS
) -I.
-I
$(srcdir) -I..
/bfd
-I
$(srcdir)/..
/include -I
$(srcdir)/..
/bfd
-DMACHINE_H
=\"$(MY_MACHINE
).h
\" $(TCFLAGS
) $(HCFLAGS
) $<
51 all: diststuff
$(PROG
)
53 .PHONY
: check installcheck info install-info
57 awk
-f
$(srcdir)/gen-c-prog.awk
> .
/$*.c \
58 FUNCTION
=`(echo $*|sed -e 's/_bl//')`_blurb \
59 FILE
=$*.m
$(srcdir)/$*.m
61 diststuff
: $(DISTSTUFF
)
63 gprof.
info: gprof.texi
64 $(MAKEINFO
) -o gprof.
info $(srcdir)/gprof.texi
67 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
69 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) $(srcdir)/gprof.texi
78 install-info
: gprof.
info
79 if
[ -r gprof.
info ]; then \
84 for i in
`cd $$dir; echo gprof.info*` ; do \
85 $(INSTALL_DATA
) $$dir/$$i $(infodir)/$$i ; \
89 $(INSTALL_XFORM
) gprof
$(bindir)/gprof
90 $(INSTALL_XFORM1
) $(srcdir)/gprof
.1 $(man1dir)/gprof
.1
91 -n
=`t='$(program_transform_name)'; echo gprof | sed -e "s/brokensed/brokensed/" $$t`; \
92 rm -f
$(tooldir
)/bin
/gprof
; \
93 ln
$(bindir)/$$n $(tooldir
)/bin
/gprof \
94 ||
$(INSTALL_PROGRAM
) gprof
$(tooldir
)/bin
/gprof
;
98 $(CC
) -o
$(PROG
) $(LDFLAGS
) $(OBJS
) $(LIBS
)
101 -rm -f
*.o core gprof nohup.out gprof.
info* \
102 gprof.cps gprof.fns gprof.log gprof.ps gprof.tps\
103 gprof.aux gprof.
dvi gprof.ky gprof.pg gprof.toc gprof.vr\
104 gprof.cp gprof.fn gprof.kys gprof.pgs gprof.tp gprof.vrs
108 -rm -f config.status Makefile
112 Makefile
: Makefile.in
116 # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
121 $(MY_MACHINE
).o
: $(MY_MACHINE
).c
123 printgprof.o
: printgprof.c
124 printlist.o
: printlist.c
126 bsd_callg_bl.o
: bsd_callg_bl.c
127 fsf_callg_bl.o
: fsf_callg_bl.c