Commit | Line | Data |
---|---|---|
cfd45087 | 1 | SCCSID = @(#)Makefile 1.16 (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 KM |
8 | INSTALL=cp |
9 | ||
2557d6e8 | 10 | GPROFHDRS = gprof.h |
7ec9eedc PK |
11 | GPROFSRCS = gprof.c arcs.c dfn.c lookup.c printgprof.c calls.c printlist.c |
12 | GPROFOBJS = gprof.o arcs.o dfn.o lookup.o printgprof.o calls.o printlist.o | |
31f0a970 PK |
13 | |
14 | gprof: ${GPROFOBJS} | |
15 | cc -o gprof ${CFLAGS} ${GPROFOBJS} | |
16 | ||
a3af0a9e | 17 | install: 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 |
22 | clean: |
23 | ${RM} ${GPROFOBJS} errs gprof | |
24 | ||
9fe8a837 KM |
25 | gcrt0.h: |
26 | cp /usr/src/libc/csu/gcrt0.h gcrt0.h | |
27 | ||
c4c8bf51 | 28 | print: |
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 | 35 | lint: |
7ec9eedc | 36 | lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS} |
59e77e4f | 37 | |
bb9c5045 KM |
38 | gprof.o: gprof.c gprof.h gcrt0.h |
39 | arcs.o: arcs.c gprof.h gcrt0.h | |
40 | lookup.o: lookup.c gprof.h gcrt0.h | |
41 | dfn.o: dfn.c gprof.h gcrt0.h | |
42 | printgprof.o: printgprof.c gprof.h gcrt0.h | |
43 | calls.o: calls.c gprof.h gcrt0.h | |
7ec9eedc | 44 | printlist.o: printlist.c gprof.h gcrt0.h |