Marshall says it works finally.
[unix-history] / usr / src / usr.bin / gprof / Makefile
CommitLineData
4fb714dc 1SCCSID = @(#)Makefile 1.20 (Berkeley) %G%
31f0a970 2
31f0a970 3DFLAGS =
bb9c5045 4CFLAGS = -O ${DFLAGS}
7ec9eedc 5LINTFLAGS = -x -a -n ${DFLAGS}
31f0a970 6
e00a2fbd 7RM= /bin/rm -f
a3af0a9e 8INSTALL=cp
23d06d95 9PR=pr
a3af0a9e 10
4fb714dc 11GPROFHDRS = gprof.h vax.h
89bcca98
PK
12GPROFSRCS = gprof.c arcs.c dfn.c lookup.c calls.c hertz.c \
13 printgprof.c printlist.c
14GPROFOBJS = gprof.o arcs.o dfn.o lookup.o calls.o hertz.o \
15 printgprof.o printlist.o
31f0a970
PK
16
17gprof: ${GPROFOBJS}
18 cc -o gprof ${CFLAGS} ${GPROFOBJS}
19
bc19d06b 20install: 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
25clean:
26 ${RM} ${GPROFOBJS} errs gprof
27
9fe8a837
KM
28gcrt0.h:
29 cp /usr/src/libc/csu/gcrt0.h gcrt0.h
30
c4c8bf51 31print:
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 38lint:
7ec9eedc 39 lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS}
59e77e4f 40
4fb714dc
PK
41gprof.o: gprof.c gprof.h vax.h gcrt0.h
42arcs.o: arcs.c gprof.h vax.h gcrt0.h
43lookup.o: lookup.c gprof.h vax.h gcrt0.h
44dfn.o: dfn.c gprof.h vax.h gcrt0.h
45calls.o: calls.c gprof.h vax.h gcrt0.h
46hertz.o: gprof.h vax.h hertz.c
47printgprof.o: printgprof.c gprof.h vax.h gcrt0.h
48printlist.o: printlist.c gprof.h vax.h gcrt0.h