# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

#	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.

#ident	"$Header: Makefile 1.6 89/10/10 $@(#)graf:src/gutil.d/Makefile	1.7"
###
### Standard Constants that are always explicitly passed through make
###

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

INC	 = $(CCS_HDRS)/usr/include
LINC	 = ../../include

CC       = cc
CFLAGS   = -O -I$(LINC)  $(FFLAG)
LDFLAGS  = $(LIB) -lm -s


#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) $(CFLAGS) -o bel bel.o $(LDFLAGS)

cvrtopt: $&	cvrtopt.o 
	$(CC) $(CFLAGS) -o cvrtopt cvrtopt.o $(LDFLAGS)

gd: $&		gd.o 
	$(CC) $(CFLAGS) -o gd gd.o $(LDFLAGS)

pd: $&		pd.o 
	$(CC) $(CFLAGS) -o pd pd.o $(LDFLAGS)

remcom: $&	remcom.o 
	$(CC) $(CFLAGS) -o remcom remcom.o $(LDFLAGS)


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 

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)

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

install: $&	$(MAINS) $(SHELLMAINS)
	for i in $(MAINS) ; do cpset $$i $(BIN) ; done
	for i in $(SHELLMAINS) ; do cpset $$i.sh $(BIN)/$$i ; done
	
###########
	
listings:	$(SOURCES)
	pr -h "     gutil.d     " $(SOURCES) | lp
