4889a0c9f35b39c7943497ee8847f63f9b30e465
[dragonfly.git] / gnu / usr.bin / binutils221 / gprof / Makefile
1 .include "../Makefile.bu"
2
3 .PATH: ${SRCDIR}/gprof
4
5 PROG=   gprof
6 SRCS=   basic_blocks.c  \
7         call_graph.c    \
8         cg_arcs.c       \
9         cg_dfn.c        \
10         cg_print.c      \
11         corefile.c      \
12         gmon_io.c       \
13         gprof.c         \
14         hertz.c         \
15         hist.c          \
16         source.c        \
17         search_list.c   \
18         symtab.c        \
19         sym_ids.c       \
20         utils.c         \
21         i386.c          \
22         alpha.c         \
23         vax.c           \
24         tahoe.c         \
25         sparc.c         \
26         mips.c          \
27         flat_bl.c       \
28         bsd_callg_bl.c  \
29         fsf_callg_bl.c
30 MAN=    gprof221.1
31 MLINKS+=gprof221.1 gprof.1
32
33 CFLAGS= -DHAVE_CONFIG_H
34 CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../libbfd -I${.OBJDIR}/../libbfd
35 CFLAGS+=-I${SRCDIR}/include -I${SRCDIR}/bfd
36
37 gprof221.1: ${.CURDIR}/gprof.1
38         cp ${.ALLSRC} ${.TARGET}
39
40 flat_bl.c:
41         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
42         FUNCTION=`(echo flat_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
43         FILE=flat_bl.m ${SRCDIR}/gprof/flat_bl.m
44         
45 bsd_callg_bl.c: 
46         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
47         FUNCTION=`(echo bsd_callg_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
48         FILE=bsd_callg_bl.m ${SRCDIR}/gprof/bsd_callg_bl.m
49         
50 fsf_callg_bl.c:
51         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
52         FUNCTION=`(echo fsf_callg_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
53         FILE=fsf_callg_bl.m ${SRCDIR}/gprof/fsf_callg_bl.m
54
55 CLEANFILES+=    gprof221.1     \
56                 flat_bl.c      \
57                 bsd_callg_bl.c \
58                 fsf_callg_bl.c
59
60 .include <bsd.prog.mk>