# $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.5 89/10/10 $@(#)graf:src/dev.d/hp7220.d/hpd.d/Makefile	1.8"
###
### Standard Constants
###

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

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

CC       = cc
CFLAGS   = -O -I$(LINC) -I$(LINC2) $(FFLAG)
LDFLAGS  = $(LIB1) x.o $(LIB2) $(LIB) -lm -s


#top#
# Generated by makefile 1.44    Tue Mar 12 09:40:57 EST 1985

MAKEFILE = Makefile


MAINS = hpd

OBJECTS =  devarc.o devbuff.o devcursor.o devfill.o devfinal.o devinit.o \
	devline.o devtext.o hpd.o mba.o mbn.o mbp.o newcolor.o sbn.o x.o

SOURCES =  devarc.c devbuff.c devcursor.c devfill.c devfinal.c devinit.c \
	devline.c devtext.c hpd.c mba.c mbn.c mbp.c newcolor.c sbn.c

ALL:		$(MAINS)

hpd: $&		hpd.o devfinal.o devinit.o mba.o mbp.o sbn.o 
	$(CC) $(CFLAGS)  -o hpd  hpd.o devfinal.o devinit.o mba.o mbp.o \
	sbn.o   $(LDFLAGS)


devarc.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 hpd.h 

devbuff.o:	 $(INC)/stdio.h hpd.h $(LINC)/dev.h	\
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devcursor.o:	 $(INC)/stdio.h hpd.h $(LINC)/dev.h	\
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devfill.o:	 

devfinal.o:	 $(INC)/stdio.h hpd.h $(LINC)/dev.h	\
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devinit.o:	 $(INC)/stdio.h hpd.h $(LINC)/dev.h	\
		 $(LINC2)/debug.h $(LINC2)/errpr.h \
		 $(LINC2)/util.h $(INC)/ctype.h \
		 $(LINC2)/gsl.h $(LINC2)/gpl.h 

devline.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 hpd.h 

devtext.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 hpd.h 

hpd.o:		 $(INC)/stdio.h $(LINC2)/setop.h \
		 $(INC)/ctype.h $(LINC)/chtable \
		 $(LINC)/dev.h $(LINC2)/debug.h \
		 $(LINC2)/errpr.h $(LINC2)/util.h	\
		 $(INC)/ctype.h $(LINC2)/gsl.h	\
		 $(LINC2)/gpl.h 

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

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

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

newcolor.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 hpd.h 

sbn.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)/setop.h $(LINC2)/util.h \
	$(LINC)/chtable $(LINC)/dev.h $(INC)/ctype.h \
	$(INC)/stdio.h 

LOCALINCS = hpd.h 


clean:
	rm -f $(OBJECTS)
	
clobber:	
	rm -f $(OBJECTS) $(MAINS)

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

$(MAINS):	$(LIB) $(LIB1) $(LIB2) x.o

x.o: $&		devbuff.o devtext.o devfill.o devarc.o devline.o devcursor.o \
	        devcursor.o newcolor.o mbn.o
	$(LD) -r -o x.o devbuff.o devtext.o devfill.o devarc.o devline.o devcursor.o\
	 newcolor.o mbn.o


install: $&	$(MAINS)
	cpset $(MAINS) $(BIN)
	
###########
	
listings     : $(SOURCES)
	pr -h "     hpd.d     " $(SOURCES) | lp
