Add copyright
[unix-history] / usr / src / usr.bin / gprof / Makefile
CommitLineData
c0bc4ef7
DF
1#
2# Copyright (c) 1983 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 5.1 (Berkeley) %G%
7#
8SCCSID = @(#)Makefile 5.1 (Berkeley) %G%
31f0a970 9
31f0a970 10DFLAGS =
bb9c5045 11CFLAGS = -O ${DFLAGS}
7ec9eedc 12LINTFLAGS = -x -a -n ${DFLAGS}
31f0a970 13
e00a2fbd 14RM= /bin/rm -f
acc148a6 15INSTALL=install
23d06d95 16PR=pr
a3af0a9e 17
4fb714dc 18GPROFHDRS = gprof.h vax.h
89bcca98
PK
19GPROFSRCS = gprof.c arcs.c dfn.c lookup.c calls.c hertz.c \
20 printgprof.c printlist.c
21GPROFOBJS = gprof.o arcs.o dfn.o lookup.o calls.o hertz.o \
22 printgprof.o printlist.o
31f0a970
PK
23
24gprof: ${GPROFOBJS}
25 cc -o gprof ${CFLAGS} ${GPROFOBJS}
26
acc148a6
KM
27install: gprof gprof.flat gprof.callg
28 install -s gprof ${DESTDIR}/usr/ucb/gprof
5bde9397
EW
29 install -c -m 644 gprof.flat ${DESTDIR}/usr/lib
30 install -c -m 644 gprof.callg ${DESTDIR}/usr/lib
59e77e4f 31
e00a2fbd
KM
32clean:
33 ${RM} ${GPROFOBJS} errs gprof
34
9fe8a837
KM
35gcrt0.h:
36 cp /usr/src/libc/csu/gcrt0.h gcrt0.h
37
c4c8bf51 38print:
23d06d95
PK
39 @ ls -l | ${PR}
40 @ ${PR} makefile
41 @ ${PR} gcrt0.h
42 @ ${PR} ${GPROFHDRS} ${GPROFSRCS}
acc148a6 43 @ ${PR} gprof.flat gprof.callg
c4c8bf51 44
59e77e4f 45lint:
7ec9eedc 46 lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS}
59e77e4f 47
4fb714dc
PK
48gprof.o: gprof.c gprof.h vax.h gcrt0.h
49arcs.o: arcs.c gprof.h vax.h gcrt0.h
50lookup.o: lookup.c gprof.h vax.h gcrt0.h
51dfn.o: dfn.c gprof.h vax.h gcrt0.h
52calls.o: calls.c gprof.h vax.h gcrt0.h
53hertz.o: gprof.h vax.h hertz.c
54printgprof.o: printgprof.c gprof.h vax.h gcrt0.h
55printlist.o: printlist.c gprof.h vax.h gcrt0.h