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

#ident	"@(#)graf/src/glib.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)


#top#
# Generated by makefile 1.44    Fri Mar  8 15:58:49 EST 1985

MAKEFILE = Makefile


LIBRARY = glib.a

OBJECTS =  box.o getgedf.o getgeds.o gplalpha.o gplarcs.o gplcomment.o \
	gplinit.o gpllines.o gpltext.o gsl.o gslgsl.o gslswing.o putgedf.o \
	putgeds.o putx0y0.o region.o textbox.o textcent.o textright.o \
	xymaxmin.o

SOURCES =  box.c getgedf.c getgeds.c gplalpha.c gplarcs.c gplcomment.c \
	gplinit.c gpllines.c gpltext.c gsl.c gslgsl.c gslswing.c putgedf.c \
	putgeds.c putx0y0.c region.c textbox.c textcent.c textright.c \
	xymaxmin.c

ALL:		$(LIBRARY)

$(LIBRARY):	$(LIBRARY)(xymaxmin.o) $(LIBRARY)(textright.o) \
		$(LIBRARY)(textcent.o) $(LIBRARY)(textbox.o) \
		$(LIBRARY)(region.o) $(LIBRARY)(putx0y0.o) \
		$(LIBRARY)(putgeds.o) $(LIBRARY)(putgedf.o) \
		$(LIBRARY)(gslswing.o) $(LIBRARY)(gslgsl.o) \
		$(LIBRARY)(gsl.o) $(LIBRARY)(gpltext.o)	\
		$(LIBRARY)(gpllines.o) $(LIBRARY)(gplinit.o) \
		$(LIBRARY)(gplcomment.o) $(LIBRARY)(gplarcs.o) \
		$(LIBRARY)(gplalpha.o) $(LIBRARY)(getgeds.o) \
		$(LIBRARY)(getgedf.o) $(LIBRARY)(box.o)	


$(LIBRARY)(box.o): $(INC)/stdio.h	$(LINC)/debug.h 

$(LIBRARY)(getgedf.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/debug.h 

$(LIBRARY)(getgeds.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/debug.h 

$(LIBRARY)(gplalpha.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h 

$(LIBRARY)(gplarcs.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h 

$(LIBRARY)(gplcomment.o):	 $(INC)/stdio.h \
		 $(LINC)/gpl.h $(LINC)/debug.h 

$(LIBRARY)(gplinit.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/util.h $(INC)/ctype.h 

$(LIBRARY)(gpllines.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h 

$(LIBRARY)(gpltext.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h 

$(LIBRARY)(gsl.o): $(INC)/stdio.h	$(LINC)/debug.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/gsl.h 

$(LIBRARY)(gslgsl.o):	 $(INC)/stdio.h $(LINC)/debug.h \
		 $(LINC)/errpr.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/gsl.h \
		 $(LINC)/gpl.h 

$(LIBRARY)(gslswing.o):	 $(INC)/stdio.h 

$(LIBRARY)(putgedf.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h $(LINC)/util.h \
		 $(INC)/ctype.h 

$(LIBRARY)(putgeds.o):	 $(INC)/stdio.h $(LINC)/gpl.h \
		 $(LINC)/debug.h $(LINC)/util.h \
		 $(INC)/ctype.h 

$(LIBRARY)(putx0y0.o):	 $(INC)/stdio.h $(LINC)/gsl.h \
		 $(LINC)/gpl.h $(LINC)/debug.h 

$(LIBRARY)(region.o):	 $(INC)/stdio.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/debug.h \
		 $(LINC)/gsl.h 

$(LIBRARY)(textbox.o):	 $(INC)/stdio.h $(INC)/ctype.h \
		 $(LINC)/debug.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/gsl.h \
		 $(LINC)/gpl.h 

$(LIBRARY)(textcent.o):	 $(INC)/stdio.h $(LINC)/debug.h \
		 $(LINC)/util.h $(INC)/ctype.h 

$(LIBRARY)(textright.o):	 $(INC)/stdio.h \
		 $(LINC)/debug.h $(LINC)/util.h \
		 $(INC)/ctype.h 

$(LIBRARY)(xymaxmin.o):	 $(INC)/stdio.h $(LINC)/gsl.h \
		 $(LINC)/gpl.h $(LINC)/util.h \
		 $(INC)/ctype.h $(LINC)/debug.h 

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

.c.a:
	$(CC) -c $(CFLAG) $*.c
	$(AR) rv $@ $*.o
	-rm -f $*.o

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

newmakefile:
	makefile -m -f $(MAKEFILE) -L $(LIBRARY)  -s INC $(INC) -s LINC $(LINC)
#bottom#
install      : $(LIBRARY)
	$(INS) $(LIBRARY) $(LIB)
	$(AR) ts $(LIB) > /dev/null 2>&1
	chmod 644 $(LIB)
	chgrp bin $(LIB)
	chown bin $(LIB)
	
###########

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