
FPFLAGS	=
FPA	=
DESTDIR	= $(ATT_DESTDIR)
YFLAGS	= -d
YACC	= $(ATT_YACC)
CFLAGS	= $(ATT_INCLUDE) -O $(FPFLAGS)
CC	= $(ATT_CC)
LD	= $(ATT_LD)
# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987 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: Makefile 1.2 87/08/12 $
#
OBJS=	arc.o box.o circle.o close.o dot.o erase.o frame.o\
	label.o line.o linmod.o move.o open.o point.o space.o\
	subr.o

.c.o:
	$(CC) -p -DPROF $(CFLAGS) -c $*.c; \
	$(LD) -X -r $*.o -o profiled/$*.o; \
	$(CC)    -UPROF $(CFLAGS) -c $*.c; \
	$(LD) -x -r $*.o -o $*.O; mv $*.O $*.o

../lib$(FPA)vt0 ../lib$(FPA)vt0_p:	profiled ${OBJS}
	@echo '	Fixing modes, groups, and owners on *.o'
	@chmod    644 *.o profiled/*.o
	@-chgrp daemon *.o profiled/*.o > /dev/null 2>&1
	@-chown  root *.o profiled/*.o > /dev/null 2>&1
	cd profiled; ${AR} cru ../../lib$(FPA)vt0_p ${OBJS}
	${AR} cru ../lib$(FPA)vt0 ${OBJS}

profiled:
	mkdir profiled

clean:
	rm -rf ${OBJS} errs a.out core profiled
