clean up those ridiculously long names
[unix-history] / usr / src / usr.bin / gprof / Makefile
index 66e618a..26875d1 100644 (file)
@@ -1,29 +1,48 @@
-SCCSID = @(#)Makefile  1.10 (Berkeley) %G%
+SCCSID = @(#)Makefile  1.21 (Berkeley) %G%
 
 DFLAGS = 
 CFLAGS = -O ${DFLAGS}
 
 DFLAGS = 
 CFLAGS = -O ${DFLAGS}
-LINTFLAGS = -x -a -n
+LINTFLAGS = -x -a -n ${DFLAGS}
 
 
-INSTALL=cp
+RM=    /bin/rm -f
+INSTALL=install
+PR=pr
 
 
-GPROFHDRS =    gprof.h
-GPROFSRCS =    gprof.c arcs.c dfn.c lookup.c printgprof.c calls.c
-GPROFOBJS =    gprof.o arcs.o dfn.o lookup.o printgprof.o calls.o
+GPROFHDRS =    gprof.h vax.h
+GPROFSRCS =    gprof.c arcs.c dfn.c lookup.c calls.c hertz.c \
+               printgprof.c printlist.c
+GPROFOBJS =    gprof.o arcs.o dfn.o lookup.o calls.o hertz.o \
+               printgprof.o printlist.o
 
 gprof: ${GPROFOBJS}
        cc -o gprof ${CFLAGS} ${GPROFOBJS}
 
 
 gprof: ${GPROFOBJS}
        cc -o gprof ${CFLAGS} ${GPROFOBJS}
 
-install: gprof flat.blurb callg.blurb
-       ${INSTALL} gprof ${DESTDIR}/usr/bin/gprof
-       cp flat.blurb ${DESTDIR}/usr/lib/flat.blurb
-       cp callg.blurb ${DESTDIR}/usr/lib/callg.blurb
+install: gprof gprof.flat gprof.callg
+       install -s gprof ${DESTDIR}/usr/ucb/gprof
+       install -c gprof.flat ${DESTDIR}/usr/lib
+       install -c gprof.callg ${DESTDIR}/usr/lib
+
+clean:
+       ${RM} ${GPROFOBJS} errs gprof
+
+gcrt0.h:
+       cp /usr/src/libc/csu/gcrt0.h gcrt0.h
+
+print:
+       @ ls -l | ${PR}
+       @ ${PR} makefile
+       @ ${PR} gcrt0.h
+       @ ${PR} ${GPROFHDRS} ${GPROFSRCS}
+       @ ${PR} gprof.flat gprof.callg
 
 lint:
 
 lint:
-       lint ${CFLAGS} ${LINTFLAGS} ${GPROFSRCS}
-
-gprof.o: gprof.c gprof.h gcrt0.h
-arcs.o: arcs.c gprof.h gcrt0.h
-lookup.o: lookup.c gprof.h gcrt0.h
-dfn.o: dfn.c gprof.h gcrt0.h
-printgprof.o: printgprof.c gprof.h gcrt0.h
-calls.o: calls.c gprof.h gcrt0.h
+       lint ${LINTFLAGS} ${DFLAGS} ${GPROFSRCS}
+
+gprof.o: gprof.c gprof.h vax.h gcrt0.h
+arcs.o: arcs.c gprof.h vax.h gcrt0.h
+lookup.o: lookup.c gprof.h vax.h gcrt0.h
+dfn.o: dfn.c gprof.h vax.h gcrt0.h
+calls.o: calls.c gprof.h vax.h gcrt0.h
+hertz.o: gprof.h vax.h hertz.c
+printgprof.o: printgprof.c gprof.h vax.h gcrt0.h
+printlist.o: printlist.c gprof.h vax.h gcrt0.h