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