Commit | Line | Data |
---|---|---|
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 | # | |
8 | SCCSID = @(#)Makefile 5.1 (Berkeley) %G% | |
31f0a970 | 9 | |
31f0a970 | 10 | DFLAGS = |
bb9c5045 | 11 | CFLAGS = -O ${DFLAGS} |
7ec9eedc | 12 | LINTFLAGS = -x -a -n ${DFLAGS} |
31f0a970 | 13 | |
e00a2fbd | 14 | RM= /bin/rm -f |
acc148a6 | 15 | INSTALL=install |
23d06d95 | 16 | PR=pr |
a3af0a9e | 17 | |
4fb714dc | 18 | GPROFHDRS = gprof.h vax.h |
89bcca98 PK |
19 | GPROFSRCS = gprof.c arcs.c dfn.c lookup.c calls.c hertz.c \ |
20 | printgprof.c printlist.c | |
21 | GPROFOBJS = gprof.o arcs.o dfn.o lookup.o calls.o hertz.o \ | |
22 | printgprof.o printlist.o | |
31f0a970 PK |
23 | |
24 | gprof: ${GPROFOBJS} | |
25 | cc -o gprof ${CFLAGS} ${GPROFOBJS} | |
26 | ||
acc148a6 KM |
27 | install: 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 |
32 | clean: |
33 | ${RM} ${GPROFOBJS} errs gprof | |
34 | ||
9fe8a837 KM |
35 | gcrt0.h: |
36 | cp /usr/src/libc/csu/gcrt0.h gcrt0.h | |
37 | ||
c4c8bf51 | 38 | print: |
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 | 45 | lint: |
7ec9eedc | 46 | lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS} |
59e77e4f | 47 | |
4fb714dc PK |
48 | gprof.o: gprof.c gprof.h vax.h gcrt0.h |
49 | arcs.o: arcs.c gprof.h vax.h gcrt0.h | |
50 | lookup.o: lookup.c gprof.h vax.h gcrt0.h | |
51 | dfn.o: dfn.c gprof.h vax.h gcrt0.h | |
52 | calls.o: calls.c gprof.h vax.h gcrt0.h | |
53 | hertz.o: gprof.h vax.h hertz.c | |
54 | printgprof.o: printgprof.c gprof.h vax.h gcrt0.h | |
55 | printlist.o: printlist.c gprof.h vax.h gcrt0.h |