Commit | Line | Data |
---|---|---|
4fb714dc | 1 | SCCSID = @(#)Makefile 1.20 (Berkeley) %G% |
31f0a970 | 2 | |
31f0a970 | 3 | DFLAGS = |
bb9c5045 | 4 | CFLAGS = -O ${DFLAGS} |
7ec9eedc | 5 | LINTFLAGS = -x -a -n ${DFLAGS} |
31f0a970 | 6 | |
e00a2fbd | 7 | RM= /bin/rm -f |
a3af0a9e | 8 | INSTALL=cp |
23d06d95 | 9 | PR=pr |
a3af0a9e | 10 | |
4fb714dc | 11 | GPROFHDRS = gprof.h vax.h |
89bcca98 PK |
12 | GPROFSRCS = gprof.c arcs.c dfn.c lookup.c calls.c hertz.c \ |
13 | printgprof.c printlist.c | |
14 | GPROFOBJS = gprof.o arcs.o dfn.o lookup.o calls.o hertz.o \ | |
15 | printgprof.o printlist.o | |
31f0a970 PK |
16 | |
17 | gprof: ${GPROFOBJS} | |
18 | cc -o gprof ${CFLAGS} ${GPROFOBJS} | |
19 | ||
bc19d06b | 20 | install: gprof gprof.flat.blurb gprof.callg.blurb |
cfd45087 | 21 | ${INSTALL} gprof ${DESTDIR}/usr/ucb/gprof |
bc19d06b PK |
22 | cp gprof.flat.blurb ${DESTDIR}/usr/lib |
23 | cp gprof.callg.blurb ${DESTDIR}/usr/lib | |
59e77e4f | 24 | |
e00a2fbd KM |
25 | clean: |
26 | ${RM} ${GPROFOBJS} errs gprof | |
27 | ||
9fe8a837 KM |
28 | gcrt0.h: |
29 | cp /usr/src/libc/csu/gcrt0.h gcrt0.h | |
30 | ||
c4c8bf51 | 31 | print: |
23d06d95 PK |
32 | @ ls -l | ${PR} |
33 | @ ${PR} makefile | |
34 | @ ${PR} gcrt0.h | |
35 | @ ${PR} ${GPROFHDRS} ${GPROFSRCS} | |
36 | @ ${PR} gprof.flat.blurb gprof.callg.blurb | |
c4c8bf51 | 37 | |
59e77e4f | 38 | lint: |
7ec9eedc | 39 | lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS} |
59e77e4f | 40 | |
4fb714dc PK |
41 | gprof.o: gprof.c gprof.h vax.h gcrt0.h |
42 | arcs.o: arcs.c gprof.h vax.h gcrt0.h | |
43 | lookup.o: lookup.c gprof.h vax.h gcrt0.h | |
44 | dfn.o: dfn.c gprof.h vax.h gcrt0.h | |
45 | calls.o: calls.c gprof.h vax.h gcrt0.h | |
46 | hertz.o: gprof.h vax.h hertz.c | |
47 | printgprof.o: printgprof.c gprof.h vax.h gcrt0.h | |
48 | printlist.o: printlist.c gprof.h vax.h gcrt0.h |