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

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

include	$(IROOT)/macdefs

###
### Standard Constants
###

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

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

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


#top#
# Generated by makefile 1.44    Mon Mar 11 13:35:30 EST 1985

MAKEFILE = Makefile


LIBRARY = uplib.a

OBJECTS =  arcfill.o clipseg.o compwind.o dispfile.o dispprim.o inarea.o \
	linefill.o softarc.o softtext.o utodcoord.o

SOURCES =  arcfill.c clipseg.c compwind.c dispfile.c dispprim.c inarea.c \
	linefill.c softarc.c softtext.c utodcoord.c

ALL:		$(LIBRARY)

$(LIBRARY):	$(LIBRARY)(utodcoord.o)	$(LIBRARY)(softtext.o) \
		$(LIBRARY)(softarc.o) $(LIBRARY)(linefill.o) \
		$(LIBRARY)(inarea.o) $(LIBRARY)(dispprim.o) \
		$(LIBRARY)(dispfile.o) $(LIBRARY)(compwind.o) \
		$(LIBRARY)(clipseg.o) $(LIBRARY)(arcfill.o) 


$(LIBRARY)(arcfill.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 \
		 $(LINC)/fill.h 

$(LIBRARY)(clipseg.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)(compwind.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)(dispfile.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)(dispprim.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)(inarea.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)(linefill.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 \
		 $(LINC)/fill.h 

$(LIBRARY)(softarc.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)(softtext.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)(utodcoord.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 $(LINC)/fill.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) ctags greplist

newmakefile:
	makefile -m -f $(MAKEFILE) -L $(LIBRARY)  -s LINC2 $(LINC2) -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 "     uplib.d     " $(SOURCES) | lp
