#
# $Header: Makefile,v 1.1 87/09/17 13:15:30 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/vtoc.d/Makefile	1.3"
###
### Standard Constants
###

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

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

CC       = cc
CFLAGS   = -O -I$(INC) -I$(LINC)  $(FFLAG)
LDFLAGS  = $(LIB) -lm -i -s


#top#
# Generated by makefile 1.44    Tue Mar 12 12:59:31 EST 1985

MAKEFILE = Makefile


MAINS = vtoc

OBJECTS =  chcknds.o getentry.o getmax.o gpsfmt.o idcmp.o levcal.o \
	maxwordlen.o position.o setkids.o setwtst.o sizefac.o squish.o \
	treebldr.o upperstr.o validid.o vcmp.o vmap.o vtoc.o

SOURCES =  chcknds.c getentry.c getmax.c gpsfmt.c idcmp.c levcal.c \
	maxwordlen.c position.c setkids.c setwtst.c sizefac.c squish.c \
	treebldr.c upperstr.c validid.c vcmp.c vmap.c vtoc.c

ALL:		$(MAINS)

vtoc:		vtoc.o chcknds.o getmax.o gpsfmt.o position.o setkids.o	\
		squish.o treebldr.o vcmp.o vmap.o getentry.o idcmp.o \
		levcal.o maxwordlen.o setwtst.o	sizefac.o upperstr.o \
		validid.o 
	$(CC) $(CFLAGS)  -o vtoc  vtoc.o chcknds.o getmax.o gpsfmt.o \
	position.o setkids.o squish.o treebldr.o vcmp.o vmap.o getentry.o \
	idcmp.o levcal.o maxwordlen.o setwtst.o sizefac.o upperstr.o \
	validid.o   $(LDFLAGS)


chcknds.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

getentry.o:	 $(INC)/stdio.h vtoc.h $(INC)/ctype.h \
		 $(INC)/stdio.h $(LINC)/setop.h \
		 $(INC)/ctype.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/errpr.h \
		 $(LINC)/debug.h $(INC)/sys/types.h	

getmax.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

gpsfmt.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h $(LINC)/gsl.h 

idcmp.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

levcal.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

maxwordlen.o:	 $(INC)/stdio.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h 

position.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

setkids.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

setwtst.o:	 $(INC)/stdio.h $(LINC)/gsl.h vtoc.h \
		 $(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

sizefac.o:	 $(INC)/stdio.h vtoc.h $(INC)/ctype.h \
		 $(INC)/stdio.h $(LINC)/setop.h \
		 $(INC)/ctype.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/errpr.h \
		 $(LINC)/debug.h $(INC)/sys/types.h	

squish.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

treebldr.o:	 $(INC)/stdio.h vtoc.h $(INC)/ctype.h \
		 $(INC)/stdio.h $(LINC)/setop.h \
		 $(INC)/ctype.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/errpr.h \
		 $(LINC)/debug.h $(INC)/sys/types.h	

upperstr.o:	 $(INC)/stdio.h 

validid.o:	 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

vcmp.o:		 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

vmap.o:		 vtoc.h	$(INC)/ctype.h $(INC)/stdio.h \
		 $(LINC)/setop.h $(INC)/ctype.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/errpr.h $(LINC)/debug.h \
		 $(INC)/sys/types.h 

vtoc.o:		 $(INC)/stdio.h vtoc.h $(INC)/ctype.h \
		 $(INC)/stdio.h $(LINC)/setop.h \
		 $(INC)/ctype.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/errpr.h \
		 $(LINC)/debug.h $(INC)/sys/types.h	

GLOBALINCS = $(LINC)/debug.h $(LINC)/errpr.h $(LINC)/gsl.h \
	$(LINC)/setop.h $(LINC)/util.h $(INC)/ctype.h \
	$(INC)/stdio.h $(INC)/sys/types.h 

LOCALINCS = vtoc.h 


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

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

$(MAINS)     : $(LIB)

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