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

#ident	"@(#)graf/src/vtoc.d:Makefile	25.1"

include	$(IROOT)/macdefs

###
### Standard Constants
###

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

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

CFLAG   = $(CFLAGS) -I$(LINC)  $(FFLAG)
LDFLAG  = $(LIB) $(LDFLAGS) -lm 


#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) $(CFLAG)  -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   $(LDFLAG)


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	

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

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) tags greplist

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

$(MAINS)     : $(LIB)

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

###########

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