#	START NEW ARIX SCCS HEADER
#
#	@(#) Makefile: version 25.1 created on 12/2/91 at 15:07:48
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)Makefile	25.1	12/2/91 Copyright (c) 1990 by Arix Corporation
#
#	END NEW ARIX SCCS HEADER
#
#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ATT:ident	"graf:src/dev.d/tek4000.d/lib/Makefile	1.7"

#ident	"@(#)graf/src/dev.d/tek4000.d/lib:Makefile	25.1"

include	$(IROOT)/macdefs


###
### Standard Constants
###

LROOT    = 
BIN      = $(ROOT)/$(LROOT)/usr/bin/graf
LIB      = tek.a

INC	 = $(INCRT)
LINC	 = ../include
LINC2    = ../../../../include

CFLAG   =  $(CFLAGS) -I$(LINC) -I$(LINC2) $(FFLAG)


#top#
# Generated by makefile 1.44    Wed Mar 20 10:52:40 EST 1985

MAKEFILE = Makefile


LIBRARY = tek.a

OBJECTS =  addrbuf.o chplot.o circarc.o clip.o getacur.o getcraw.o getline.o \
	getpoint.o getpos.o inarea.o locacur.o scaleoff.o setmode.o \
	tekalpha.o tekarc.o tekflush.o tekinit.o teklines.o tekmove.o \
	tektext.o tekxy.o unscaleoff.o xytek.o xytekl.o

SOURCES =  addrbuf.c chplot.c circarc.c clip.c getacur.c getcraw.c getline.c \
	getpoint.c getpos.c inarea.c locacur.c scaleoff.c setmode.c \
	tekalpha.c tekarc.c tekflush.c tekinit.c teklines.c tekmove.c \
	tektext.c tekxy.c unscaleoff.c xytek.c xytekl.c

ALL:		$(LIBRARY)

$(LIBRARY):	$(LIBRARY)(xytekl.o) $(LIBRARY)(xytek.o) \
		$(LIBRARY)(unscaleoff.o) $(LIBRARY)(tekxy.o) \
		$(LIBRARY)(tektext.o) $(LIBRARY)(tekmove.o) \
		$(LIBRARY)(teklines.o) $(LIBRARY)(tekinit.o) \
		$(LIBRARY)(tekflush.o) $(LIBRARY)(tekarc.o) \
		$(LIBRARY)(tekalpha.o) $(LIBRARY)(setmode.o) \
		$(LIBRARY)(scaleoff.o) $(LIBRARY)(locacur.o) \
		$(LIBRARY)(inarea.o) $(LIBRARY)(getpos.o) \
		$(LIBRARY)(getpoint.o) $(LIBRARY)(getline.o) \
		$(LIBRARY)(getcraw.o) $(LIBRARY)(getacur.o) \
		$(LIBRARY)(clip.o) $(LIBRARY)(circarc.o) \
		$(LIBRARY)(chplot.o) $(LIBRARY)(addrbuf.o) 

.c.a:
	$(CC) -c $(CFLAG) $*.c
	$(AR) -rv $(LIBRARY) $*.o
	rm -f $*.o

clean:
	rm -f $(OBJECTS)
	
clobber:	
	rm -f $(OBJECTS) $(LIBRARY) tags greplist

newmakefile:
	makefile -m -f $(MAKEFILE) -L $(LIBRARY)  -s LINC2 $(LINC2) -s INC $(INC) -s LINC $(LINC)
#bottom#

install      : $(LIBRARY)
	$(INS) $(LIBRARY) $(LIB)
	$(AR) ts $(LIB) > /dev/null 2>&1
	chmod 644 $(LIB)
	chgrp bin $(LIB)
	chown bin $(LIB)
	
###########

ctags:
	ctags $(SOURCES)
	echo 'grep $$* \\' >greplist
	for i in $(SOURCES)	;\
	do echo "$$i \\"	;\
	done >> greplist
	echo /dev/null >> greplist
	chmod +x greplist
	
listings     : $(SOURCES)
	pr -h "     teklib.d     " $(SOURCES) | lp
