#
# $Header: Makefile,v 1.1 87/09/17 13:09:46 root Exp $
#
#	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	"@(#)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	 = $(ROOT)/usr/include
LINC	 = ../../include

CC       = cc
CFLAGS   = -O -I$(INC) -I$(LINC)  $(FFLAG)
LDFLAGS  = $(LIB) -lm -i -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
