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

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

include	$(IROOT)/macdefs

###
### Standard Constants
###

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

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

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


#top#
# Generated by makefile 1.44    Tue Mar 12 12:36:37 EST 1985

MAKEFILE = Makefile


MAINS = gtop

OBJECTS =  arcrad.o clipper.o gtop.o inarea.o plotarc.o setspace.o \
	windowon.o

SOURCES =  arcrad.c clipper.c gtop.c inarea.c plotarc.c setspace.c \
	windowon.c

ALL:		$(MAINS)

gtop:		gtop.o clipper.o inarea.o plotarc.o setspace.o windowon.o \
		arcrad.o 
	$(CC) $(CFLAG)  -o gtop  gtop.o clipper.o inarea.o plotarc.o \
	setspace.o windowon.o arcrad.o   $(LDFLAG)


arcrad.o:	 

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

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

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

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

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

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

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

GLOBALINCS = $(LINC)/debug.h $(LINC)/errpr.h $(LINC)/gpl.h \
	$(LINC)/gsl.h $(LINC)/setop.h $(LINC)/util.h \
	$(INC)/ctype.h $(INC)/stdio.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) $(MAINS) $(BIN)/$(MAINS)
	chmod 755 $(BIN)/$(MAINS)
	chgrp bin $(BIN)/$(MAINS)
	chown bin $(BIN)/$(MAINS)
	

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