#	START NEW ARIX SCCS HEADER
#
#	@(#) Makefile: version 25.1 created on 12/2/91 at 15:05:38
#
#	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/lolib/Makefile	1.7"

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

include	$(IROOT)/macdefs

###
### Standard Constants
###

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

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

CFLAG   =  $(CFLAGS) -I$(LINC) -I$(LINC2) $(FFLAG)


#top#
# Generated by makefile 1.44    Wed Mar 13 13:25:51 EST 1985

MAKEFILE = Makefile


LIBRARY = lolib.a

OBJECTS =  adjarc.o adjline.o adjtext.o

SOURCES =  adjarc.c adjline.c adjtext.c

ALL:		$(LIBRARY)

$(LIBRARY):	$(LIBRARY)(adjtext.o) $(LIBRARY)(adjline.o) \
		$(LIBRARY)(adjarc.o) 


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

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

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

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

.c.a:
	$(CC) -c $(CFLAG) $*.c
	$(AR) rv $(LIBRARY) $*.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 LINC2 $(LINC2) -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 "     uplib.d     " $(SOURCES) | lp
