binutils 2.22: Promote to primary binutils
[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
32 CFLAGS= -DHAVE_CONFIG_H
33 CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../libbfd -I${.OBJDIR}/../libbfd
34 CFLAGS+=-I${SRCDIR}/include -I${SRCDIR}/bfd
35
36 gprof221.1: ${.CURDIR}/gprof.1
37         cp ${.ALLSRC} ${.TARGET}
38
39 flat_bl.c:
40         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
41         FUNCTION=`(echo flat_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
42         FILE=flat_bl.m ${SRCDIR}/gprof/flat_bl.m
43         
44 bsd_callg_bl.c: 
45         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
46         FUNCTION=`(echo bsd_callg_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
47         FILE=bsd_callg_bl.m ${SRCDIR}/gprof/bsd_callg_bl.m
48         
49 fsf_callg_bl.c:
50         /usr/bin/awk -f ${SRCDIR}/gprof/gen-c-prog.awk > ${.TARGET} \
51         FUNCTION=`(echo fsf_callg_bl|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
52         FILE=fsf_callg_bl.m ${SRCDIR}/gprof/fsf_callg_bl.m
53
54 CLEANFILES+=    gprof221.1     \
55                 flat_bl.c      \
56                 bsd_callg_bl.c \
57                 fsf_callg_bl.c
58
59 .include <bsd.prog.mk>