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

#ident	"@(#)graf/src/dev.d/tek4000.d/ged.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  = $(LIB2) $(LIB3) $(LIB4) $(LIB) $(LDFLAGS) -lm 
CFLAG   = $(CFLAGS) -I$(LINC) -I$(LINC2) $(FFLAG)


#top#
# Generated by makefile 1.44    Wed Mar 20 10:43:45 EST 1985

MAKEFILE = Makefile


MAINS = ged

OBJECTS =  bufged.o clipu.o cmdfuncs.o cmdproc.o copymove.o deleteobj.o \
	dispbuf.o drbox.o ged.o getfile.o objects.o outwindow.o points.o \
	rotarea.o scalearea.o setwindow.o teklines.o text.o unixesc.o \
	window.o xymxmn.o

SOURCES =  bufged.c clipu.c cmdfuncs.c cmdproc.c copymove.c deleteobj.c \
	dispbuf.c drbox.c ged.c getfile.c objects.c outwindow.c points.c \
	rotarea.c scalearea.c setwindow.c teklines.c text.c unixesc.c \
	window.c xymxmn.c

ALL:		$(MAINS)

ged:		ged.o bufged.o cmdproc.o dispbuf.o getfile.o setwindow.o \
		unixesc.o xymxmn.o clipu.o cmdfuncs.o drbox.o teklines.o \
		window.o copymove.o deleteobj.o	objects.o outwindow.o \
		points.o rotarea.o scalearea.o text.o 
	$(CC) $(CFLAG)  -o ged  ged.o bufged.o cmdproc.o dispbuf.o \
	getfile.o setwindow.o unixesc.o xymxmn.o clipu.o cmdfuncs.o drbox.o \
	teklines.o window.o copymove.o deleteobj.o objects.o outwindow.o \
	points.o rotarea.o scalearea.o text.o   $(LDFLAG)


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

bufged.o:	 $(INC)/stdio.h $(INC)/signal.h \
		 $(INC)/sys/signal.h ged.h $(LINC2)/gsl.h \
		 $(LINC2)/gpl.h $(LINC2)/util.h \
		 $(INC)/ctype.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC)/gedstructs.h \
		 $(INC)/termio.h $(INC)/sys/termio.h 

clipu.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

cmdfuncs.o:	 $(INC)/stdio.h $(INC)/ctype.h \
		 $(INC)/signal.h $(INC)/sys/signal.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h $(LINC)/termodes.h 

cmdproc.o:	 $(INC)/stdio.h $(LINC2)/setop.h \
		 $(INC)/ctype.h $(LINC)/termodes.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

copymove.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

deleteobj.o:	 $(INC)/stdio.h $(INC)/signal.h \
		 $(INC)/sys/signal.h ged.h $(LINC2)/gsl.h \
		 $(LINC2)/gpl.h $(LINC2)/util.h \
		 $(INC)/ctype.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC)/gedstructs.h \
		 $(INC)/termio.h $(INC)/sys/termio.h 

dispbuf.o:	 $(INC)/stdio.h $(INC)/signal.h \
		 $(INC)/sys/signal.h ged.h $(LINC2)/gsl.h \
		 $(LINC2)/gpl.h $(LINC2)/util.h \
		 $(INC)/ctype.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC)/gedstructs.h \
		 $(INC)/termio.h $(INC)/sys/termio.h \
		 $(LINC)/termodes.h 

drbox.o:	 $(INC)/stdio.h $(LINC)/termodes.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

ged.o:		 $(INC)/stdio.h $(INC)/signal.h \
		 $(INC)/sys/signal.h $(INC)/setjmp.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h $(LINC2)/setop.h \
		 $(INC)/ctype.h $(LINC)/chtable 

getfile.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

objects.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

outwindow.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

points.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

rotarea.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

scalearea.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

setwindow.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

teklines.o:	 $(INC)/stdio.h $(LINC)/tek.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/debug.h \
		 $(LINC)/$(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

text.o:		 $(INC)/stdio.h ged.h $(LINC2)/gsl.h \
		 $(LINC2)/gpl.h $(LINC2)/util.h \
		 $(INC)/ctype.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC)/gedstructs.h \
		 $(INC)/termio.h $(INC)/sys/termio.h 

unixesc.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

window.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

xymxmn.o:	 $(INC)/stdio.h ged.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC)/gedstructs.h $(INC)/termio.h \
		 $(INC)/sys/termio.h 

GLOBALINCS = $(LINC2)/debug.h $(LINC2)/errpr.h \
	$(LINC2)/gpl.h $(LINC2)/gsl.h \
	$(LINC2)/setop.h $(LINC2)/util.h \
	$(LINC)/$(LINC)/gedstructs.h $(LINC)/chtable \
	$(LINC)/gedstructs.h $(LINC)/tek.h $(LINC)/termodes.h \
	$(INC)/ctype.h $(INC)/setjmp.h $(INC)/signal.h \
	$(INC)/stdio.h $(INC)/sys/signal.h \
	$(INC)/sys/termio.h $(INC)/termio.h 

LOCALINCS = ged.h 


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

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

$(MAINS)     : $(LIB) $(LIB2) $(LIB3) $(LIB4)

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