head     1.2;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @# @;


1.2
date     91.01.08.23.12.06;  author bruce;  state Exp;
branches ;
next     1.1;

1.1
date     91.01.08.23.11.03;  author bruce;  state Exp;
branches ;
next     ;


desc
@Initial revision is as distributed with Dynix Source V3.0.17,
    file dated Jan 28 1986.
Initial revision had RCS ident:
    $Header: Makefile 2.0 86/01/28 $
@


1.2
log
@Now uses "install -m 444" to install /usr/lib/gprof.{callg,flat}.blurb,
    otherwise they have the same permission as in this directory,
    i.e., o-r, and users can't read them.
@
text
@# $Copyright:	$
# Copyright (c) 1984, 1985 Sequent Computer Systems, Inc.
# All rights reserved
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

# $Header: /usr/src/dynix.3.0.17/src/ucb/gprof/RCS/Makefile,v 1.1 91/01/08 23:11:03 bruce Exp $
#
# add -DCFLAG to CFLAGS and compile calls.c to enable -c option

DFLAGS = 
CFLAGS = -O ${DFLAGS} ${INCLUDE}
LINTFLAGS = -x -a -n ${DFLAGS}

RM=	/bin/rm -f
PR=pr

GPROFHDRS =	gprof.h ns32000.h
GPROFSRCS =	gprof.c arcs.c dfn.c lookup.c hertz.c \
		printgprof.c printlist.c
#		calls.c 
GPROFOBJS =	gprof.o arcs.o dfn.o lookup.o hertz.o \
		printgprof.o printlist.o
#		calls.o 

all:	gprof gprof.flat.blurb gprof.callg.blurb

gprof:& ${GPROFOBJS}
	${CC} -o gprof ${GPROFOBJS}

install:
	install -o root -g daemon -m 2755 -s gprof ${DESTDIR}/usr/ucb/gprof
	install -m 444 gprof.flat.blurb ${DESTDIR}/usr/lib
	install -m 444 gprof.callg.blurb ${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.blurb gprof.callg.blurb

lint:
	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
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
# $Header: Makefile 2.0 86/01/28 $
d38 2
a39 2
	cp gprof.flat.blurb ${DESTDIR}/usr/lib
	cp gprof.callg.blurb ${DESTDIR}/usr/lib
@
