##########################################################################
#									 #
# 		 Copyright (C) 1983, Silicon Graphics, Inc.		 #
#									 #
#  These coded instructions, statements, and computer programs  contain  #
#  unpublished  proprietary  information of Silicon Graphics, Inc., and  #
#  are protected by Federal copyright law.  They  may  not be disclosed  #
#  to  third  parties  or copied or duplicated in any form, in whole or  #
#  in part, without the prior written consent of Silicon Graphics, Inc.  #
#									 #
##########################################################################
#
# 10/20/86 JKH; Added copy command to put libgl.a in /site/ic/dist/lib
# 10/16/86 JKH; Original copy from Silicon Graphics via Ray Miller
#
RUN = sqiral track dliris

all: libgl.a $(RUN)

libgl.a: lib.o io.o 
	rm -f libgl.a
	ar rc libgl.a lib.o io.o 
	ranlib libgl.a
	cp libgl.a /site/ic/dist/lib

io.o:	io.c rpc.h 

track: track.c gl.h device.h libgl.a
	cc track.c libgl.a -o track

sqiral: sqiral.c gl.h libgl.a
	cc sqiral.c libgl.a -o sqiral

dliris: dliris.c irisboot.h remprom.h boot.h
	cc dliris.c -o dliris

boot.h:	boot
	boot > boot.h

clean:
	rm -f *.o boot.h libgl.a $(RUN)

.c.o:
	cc -c $<
