#	START NEW ARIX SCCS HEADER
#
#	@(#) Makefile: version 25.1 created on 12/2/91 at 15:09:25
#
#	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/td.d/Makefile	1.7"

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

include	$(IROOT)/macdefs

###
### Standard Constants 
###

LROOT    =
BIN      = $(ROOT)/$(LROOT)/usr/bin/graf
LIB      = ../../../../lib/glib.a
LIB2     = ../lib/tek.a
LIB3     = ../../uplib/uplib.a
LIB4     = ../../lolib/lolib.a

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

LDFLAG  = x.o $(LIB2) $(LIB3) $(LIB4) $(LIB) $(LDFLAGS) -lm 
CFLAG   = $(CFLAGS) -I$(LINC) -I$(LINC2) $(FFLAG)


#top#
# Generated by makefile 1.44    Tue Mar 12 09:47:21 EST 1985

MAKEFILE = Makefile


MAINS = td

OBJECTS =  devarc.o devbuff.o devcursor.o devfill.o devfinal.o devinit.o \
	devline.o devtext.o td.o xytek.o xytekl.o

SOURCES =  devarc.c devbuff.c devcursor.c devfill.c devfinal.c devinit.c \
	devline.c devtext.c td.c xytek.c xytekl.c

ALL:		$(MAINS)

td:		td.o devfinal.o	devinit.o devcursor.o xytekl.o 
	$(CC) $(CFLAG)  -o td  td.o devfinal.o devinit.o devcursor.o \
	xytekl.o   $(LDFLAG)


devarc.o:	 

devbuff.o:	 

devcursor.o:	 $(INC)/stdio.h td.h $(LINC)/dev.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devfill.o:	 

devfinal.o:	 $(INC)/stdio.h td.h $(LINC)/dev.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devinit.o:	 $(INC)/stdio.h td.h $(LINC)/dev.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devline.o:	 $(INC)/stdio.h $(LINC)/dev.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devtext.o:	 

td.o:		 $(INC)/stdio.h $(LINC2)/setop.h \
		 $(INC)/ctype.h $(LINC)/chtable \
		 $(LINC)/dev.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC2)/util.h	\
		 $(INC)/ctype.h $(LINC2)/gsl.h	\
		 $(LINC2)/gpl.h 

xytek.o:	 $(INC)/stdio.h td.h 

xytekl.o:	 $(INC)/stdio.h td.h 

.c.o:
	$(CC) -c $(CFLAG) $*.c

GLOBALINCS = $(LINC2)/debug.h $(LINC2)/errpr.h \
	$(LINC2)/gpl.h $(LINC2)/gsl.h \
	$(LINC2)/setop.h $(LINC2)/util.h \
	$(LINC)/chtable $(LINC)/dev.h $(INC)/ctype.h \
	$(INC)/stdio.h 

LOCALINCS = td.h 


clean:
	rm -f $(OBJECTS)
	
clobber:	
	rm -f $(OBJECTS) $(MAINS) x.o tags greplist

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

$(MAINS)     : $(LIB) $(LIB2) $(LIB3) $(LIB4) x.o

x.o          : devbuff.o devtext.o devfill.o devarc.o devline.o
	$(LD) -r -o x.o devbuff.o devtext.o devfill.o devarc.o devline.o


install      : $(MAINS)
	$(INS) $(MAINS) $(BIN)/$(MAINS)
	chmod 755 $(BIN)/$(MAINS)
	chgrp bin $(BIN)/$(MAINS)
	chown bin $(BIN)/$(MAINS)

###########

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 "     td.d     " $(SOURCES) | lp
