update for inclusion in 4.2
[unix-history] / usr / src / usr.bin / gprof / Makefile
CommitLineData
cfd45087 1SCCSID = @(#)Makefile 1.16 (Berkeley) %G%
31f0a970 2
31f0a970 3DFLAGS =
bb9c5045 4CFLAGS = -O ${DFLAGS}
7ec9eedc 5LINTFLAGS = -x -a -n ${DFLAGS}
31f0a970 6
e00a2fbd 7RM= /bin/rm -f
a3af0a9e
KM
8INSTALL=cp
9
2557d6e8 10GPROFHDRS = gprof.h
7ec9eedc
PK
11GPROFSRCS = gprof.c arcs.c dfn.c lookup.c printgprof.c calls.c printlist.c
12GPROFOBJS = gprof.o arcs.o dfn.o lookup.o printgprof.o calls.o printlist.o
31f0a970
PK
13
14gprof: ${GPROFOBJS}
15 cc -o gprof ${CFLAGS} ${GPROFOBJS}
16
a3af0a9e 17install: gprof flat.blurb callg.blurb
cfd45087 18 ${INSTALL} gprof ${DESTDIR}/usr/ucb/gprof
a3af0a9e
KM
19 cp flat.blurb ${DESTDIR}/usr/lib/flat.blurb
20 cp callg.blurb ${DESTDIR}/usr/lib/callg.blurb
59e77e4f 21
e00a2fbd
KM
22clean:
23 ${RM} ${GPROFOBJS} errs gprof
24
9fe8a837
KM
25gcrt0.h:
26 cp /usr/src/libc/csu/gcrt0.h gcrt0.h
27
c4c8bf51 28print:
621a7c72
PK
29 @ ls -l | pr
30 @ pr makefile
31 @ pr gcrt0.h
32 @ pr ${GPROFHDRS} ${GPROFSRCS}
33 @ pr flat.blurb callg.blurb
c4c8bf51 34
59e77e4f 35lint:
7ec9eedc 36 lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS}
59e77e4f 37
bb9c5045
KM
38gprof.o: gprof.c gprof.h gcrt0.h
39arcs.o: arcs.c gprof.h gcrt0.h
40lookup.o: lookup.c gprof.h gcrt0.h
41dfn.o: dfn.c gprof.h gcrt0.h
42printgprof.o: printgprof.c gprof.h gcrt0.h
43calls.o: calls.c gprof.h gcrt0.h
7ec9eedc 44printlist.o: printlist.c gprof.h gcrt0.h