#
# $Header: Makefile,v 1.1 87/09/17 13:01:11 root Exp $
#
#	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.

#ident	"@(#)graf:src/dev.d/tek4000.d/ged.d/Makefile	1.8"
###
### Standard Constants 
###

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

INC	 = $(ROOT)/usr/include
LINC	 = ../include
LINC2	 = ../../../../include

CC       = cc
LDFLAGS  = $(LIB2) $(LIB3) $(LIB4) $(LIB) -lm -i -s
CFLAGS   = -O -I$(INC) -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) $(CFLAGS)  -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   $(LDFLAGS)


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)

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

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

install      : $(MAINS)
	cpset $(MAINS) $(BIN)
	
###########
	
listings     : $(SOURCES)
	pr -h "     ged.d     " $(SOURCES) | lp
