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

#ident	"@(#)graf/src/dev.d/hp7220.d/hpd.d:Makefile	25.1"

include	$(IROOT)/macdefs

###
### Standard Constants
###

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

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

CFLAG   = $(CFLAGS) -I$(LINC) -I$(LINC2) $(FFLAG)
LDFLAG  = $(LIB1) x.o $(LIB2) $(LIB) $(LDFLAGS) -lm  


#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

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) $(CFLAG)  -o hpd  hpd.o devfinal.o devinit.o mba.o mbp.o \
	sbn.o   $(LDFLAG)

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

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) x.o tags greplist

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)
	$(INS) $(MAINS) $(BIN)/$(MAINS)
	chmod 755 $(BIN)/$(MAINS)
	chgrp bin $(BIN)/$(MAINS)
	chown bin $(BIN)/$(MAINS)
	
###########
	
listings     : $(SOURCES)
	pr -h "     hpd.d     " $(SOURCES) | lp


ctags:
	ctags $(SOURCES)
	echo 'grep $$* \\' >greplist
	for i in $(SOURCES)	;\
	do echo "$$i \\"	;\
	done >> greplist
	echo /dev/null >> greplist
	chmod +x greplist
