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

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

include	$(IROOT)/macdefs

###
### Standard Constants that are always explicitly passed through make
###

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:27:55 EST 1985

MAKEFILE = Makefile


MAINS = bel cvrtopt gd pd remcom

SHELLMAINS = quit yoo

OBJECTS =  bel.o cvrtopt.o gd.o pd.o remcom.o

SOURCES =  bel.c cvrtopt.c gd.c pd.c remcom.c quit.sh yoo.sh

ALL:		$(MAINS) $(SHELLMAINS)

bel:		bel.o 
	$(CC) $(CFLAG)  -o bel  bel.o   $(LDFLAG)

cvrtopt:	cvrtopt.o 
	$(CC) $(CFLAG)  -o cvrtopt  cvrtopt.o   $(LDFLAG)

gd:		gd.o 
	$(CC) $(CFLAG)  -o gd  gd.o   $(LDFLAG)

pd:		pd.o 
	$(CC) $(CFLAG)  -o pd  pd.o   $(LDFLAG)

remcom:		remcom.o 
	$(CC) $(CFLAG)  -o remcom  remcom.o   $(LDFLAG)


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

cvrtopt.o:	 $(INC)/stdio.h $(LINC)/errpr.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/setop.h $(INC)/ctype.h 

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

pd.o:		 $(INC)/stdio.h $(INC)/values.h \
		 $(LINC)/util.h $(INC)/ctype.h \
		 $(LINC)/debug.h $(LINC)/errpr.h 

remcom.o:	 $(INC)/stdio.h $(LINC)/errpr.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 $(INC)/values.h 

quit:

yoo:


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

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

install      : $(MAINS) $(SHELLMAINS)
	@-for i in $(MAINS) ; do \
	echo $(INS) $$i $(BIN)/$$i ;\
	$(INS) $$i $(BIN)/$$i ;\
	chmod 755 $(BIN)/$$i ;\
	chgrp bin $(BIN)/$$i ;\
	chown bin $(BIN)/$$i ;\
	done
	@-for i in $(SHELLMAINS) ; do \
	echo $(INS) $$i.sh $(BIN)/$$i ;\
	$(INS) $$i.sh $(BIN)/$$i ;\
	chmod 755 $(BIN)/$$i ;\
	chgrp bin $(BIN)/$$i ;\
	chown bin $(BIN)/$$i ;\
	done
	
###########

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