#
# Makefile for rayshade.
#
# Craig Kolb
#
# $Id: Makefile.SH,v 4.0 91/07/17 14:44:47 kolb Exp Locker: kolb $
#
# Bin directory
#
BINDIR = d:/rayshade/bin 
#
# If you are using LINDA, add -DLINDA
# If you are running on a Multimax, add -DMULTIMAX -DSHAREDMEM
# Be sure to add any necessary floating point hardware switches.
# 
OPTIMIZE = -O
URTINC = 
CCFLAGS = -fpcc-struct-return 
CC = gcc
MKDEP = d:/rayshade/mkdep
YACC = bison -y
RANLIB = ar s

LIBRAYDIR = ../libray
INCLUDE = -I.. -I$(LIBRAYDIR)
YFLAGS = -d

CFLAGS = $(CCFLAGS) $(URTINC) $(INCLUDE) $(OPTIMIZE)
SHELL = /bin/sh

LIB = libshade.a

SUPPORT_C =	builtin.c symtab.c misc.c lightdef.c objdef.c options.c \
		stats.c surfdef.c

SUPPORT_H =	../config.h datatypes.h funcdefs.h \
		../patchlevel.h rayshade.h

PARSE_C =	yacc.c lex.c

DRIVE_C =	setup.c viewing.c shade.c picture.c

DRIVE_H =	ytab.h defaults.h viewing.h raytrace.h picture.h

SUPPORT_O = $(SUPPORT_C:.c=.o)

PARSE_O = $(PARSE_C:.c=.o)

DRIVE_O = $(DRIVE_C:.c=.o)

HFILES = $(DRIVE_H) $(SUPPORT_H)

CFILES = $(DRIVE_C) $(PARSE_C) $(SUPPORT_C)

SHFILES = Makefile.SH

OFILES = $(DRIVE_O) $(PARSE_O) $(SUPPORT_O)

DEPENDSRC = $(DRIVE_C) lex.l yacc.y $(SUPPORT_C)

$(LIB): $(OFILES)
	@>$*.rsp $(LIB)
	@!>>$*.rsp $?
	ar ruv @$*.rsp
	$(RANLIB) $(LIB)
	@del $*.rsp

#
# Uncomment the following rule if using Linda.
#
#raytrace.lo: raytrace.cl
#	$(LCC) $(CFLAGS) -c raytrace.cl

#
# End of configuration section
#
install:	rayshade
		mv rayshade $(BINDIR)/rayshade

clean:
	rm -f $(OFILES) core libshade.a

realclean:
	rm -f $(OFILES) core libshade.a ytab.h
	rm -f *.orig Makefile

lint:
	lint $(CFLAGS) -x $(CFILES) -lm

tags:
	ctags -t $(CFILES)

depend:
	(sed '/^# DO NOT DELETE THIS LINE/q' Makefile && \
	 $(MKDEP) $(DEPENDSRC) | sed 's/: \.\//: /; /\/usr\/include/d' \
	) >Makefile.new
	cp Makefile Makefile.bak
	cp Makefile.new Makefile
	rm -f Makefile.new


# DO NOT DELETE THIS LINE
setup.o: setup.c
setup.o: rayshade.h
setup.o: d:/rayshade/libray/libobj/geom.h
setup.o: d:/rayshade/libray/libcomn/common.h
setup.o: d:/rayshade/config.h
setup.o: d:/rayshade/libray/libcomn/expr.h
setup.o: d:/rayshade/libray/libcomn/vector.h
setup.o: d:/rayshade/libray/libcomn/ray.h
setup.o: d:/rayshade/libray/libcomn/color.h
setup.o: d:/rayshade/libray/libcomn/transfrm.h
setup.o: d:/rayshade/libray/libcomn/error.h
setup.o: d:/rayshade/libray/libcomn/transfrm.h
setup.o: d:/rayshade/libray/libobj/bounds.h
setup.o: funcdefs.h
setup.o: defaults.h
setup.o: d:/rayshade/libray/libsurf/surface.h
setup.o: d:/rayshade/libray/libsurf/atmspher.h
setup.o: d:/rayshade/libray/libcomn/common.h
setup.o: d:/rayshade/libray/liblight/light.h
setup.o: d:/rayshade/libray/libobj/geom.h
setup.o: d:/rayshade/libray/liblight/infinite.h
setup.o: d:/rayshade/libray/libobj/list.h
setup.o: options.h
setup.o: stats.h
setup.o: viewing.h
setup.o: picture.h
viewing.o: viewing.c
viewing.o: rayshade.h
viewing.o: d:/rayshade/libray/libobj/geom.h
viewing.o: d:/rayshade/libray/libcomn/common.h
viewing.o: d:/rayshade/config.h
viewing.o: d:/rayshade/libray/libcomn/expr.h
viewing.o: d:/rayshade/libray/libcomn/vector.h
viewing.o: d:/rayshade/libray/libcomn/ray.h
viewing.o: d:/rayshade/libray/libcomn/color.h
viewing.o: d:/rayshade/libray/libcomn/transfrm.h
viewing.o: d:/rayshade/libray/libcomn/error.h
viewing.o: d:/rayshade/libray/libcomn/transfrm.h
viewing.o: d:/rayshade/libray/libobj/bounds.h
viewing.o: funcdefs.h
viewing.o: viewing.h
viewing.o: d:/rayshade/libray/libcomn/sampling.h
viewing.o: options.h
viewing.o: defaults.h
viewing.o: picture.h
viewing.o: stats.h
shade.o: shade.c
shade.o: rayshade.h
shade.o: d:/rayshade/libray/libobj/geom.h
shade.o: d:/rayshade/libray/libcomn/common.h
shade.o: d:/rayshade/config.h
shade.o: d:/rayshade/libray/libcomn/expr.h
shade.o: d:/rayshade/libray/libcomn/vector.h
shade.o: d:/rayshade/libray/libcomn/ray.h
shade.o: d:/rayshade/libray/libcomn/color.h
shade.o: d:/rayshade/libray/libcomn/transfrm.h
shade.o: d:/rayshade/libray/libcomn/error.h
shade.o: d:/rayshade/libray/libcomn/transfrm.h
shade.o: d:/rayshade/libray/libobj/bounds.h
shade.o: funcdefs.h
shade.o: d:/rayshade/libray/libtext/texture.h
shade.o: d:/rayshade/libray/libobj/geom.h
shade.o: d:/rayshade/libray/libsurf/surface.h
shade.o: d:/rayshade/libray/libtext/mapping.h
shade.o: d:/rayshade/libray/libsurf/surface.h
shade.o: d:/rayshade/libray/liblight/light.h
shade.o: d:/rayshade/libray/libobj/geom.h
shade.o: d:/rayshade/libray/libsurf/atmspher.h
shade.o: d:/rayshade/libray/libcomn/common.h
shade.o: options.h
shade.o: stats.h
picture.o: picture.c
picture.o: rayshade.h
picture.o: d:/rayshade/libray/libobj/geom.h
picture.o: d:/rayshade/libray/libcomn/common.h
picture.o: d:/rayshade/config.h
picture.o: d:/rayshade/libray/libcomn/expr.h
picture.o: d:/rayshade/libray/libcomn/vector.h
picture.o: d:/rayshade/libray/libcomn/ray.h
picture.o: d:/rayshade/libray/libcomn/color.h
picture.o: d:/rayshade/libray/libcomn/transfrm.h
picture.o: d:/rayshade/libray/libcomn/error.h
picture.o: d:/rayshade/libray/libcomn/transfrm.h
picture.o: d:/rayshade/libray/libobj/bounds.h
picture.o: funcdefs.h
picture.o: picture.h
picture.o: viewing.h
picture.o: options.h
picture.o: stats.h
lex.o: lex.l
lex.o: d:/rayshade/config.h
lex.o: rayshade.h
lex.o: d:/rayshade/libray/libobj/geom.h
lex.o: d:/rayshade/libray/libcomn/common.h
lex.o: d:/rayshade/config.h
lex.o: d:/rayshade/libray/libcomn/expr.h
lex.o: d:/rayshade/libray/libcomn/vector.h
lex.o: d:/rayshade/libray/libcomn/ray.h
lex.o: d:/rayshade/libray/libcomn/color.h
lex.o: d:/rayshade/libray/libcomn/transfrm.h
lex.o: d:/rayshade/libray/libcomn/error.h
lex.o: d:/rayshade/libray/libcomn/transfrm.h
lex.o: d:/rayshade/libray/libobj/bounds.h
lex.o: funcdefs.h
lex.o: d:/rayshade/libray/liblight/light.h
lex.o: d:/rayshade/libray/libobj/geom.h
lex.o: d:/rayshade/libray/libsurf/atmspher.h
lex.o: d:/rayshade/libray/libcomn/common.h
lex.o: d:/rayshade/libray/libsurf/surface.h
lex.o: d:/rayshade/libray/libtext/texture.h
lex.o: d:/rayshade/libray/libobj/geom.h
lex.o: d:/rayshade/libray/libsurf/surface.h
lex.o: d:/rayshade/libray/libtext/mapping.h
lex.o: d:/rayshade/libray/libobj/geom.h
lex.o: symtab.h
lex.o: ytab.h
yacc.o: yacc.y
yacc.o: rayshade.h
yacc.o: d:/rayshade/libray/libobj/geom.h
yacc.o: d:/rayshade/libray/libcomn/common.h
yacc.o: d:/rayshade/config.h
yacc.o: d:/rayshade/libray/libcomn/expr.h
yacc.o: d:/rayshade/libray/libcomn/vector.h
yacc.o: d:/rayshade/libray/libcomn/ray.h
yacc.o: d:/rayshade/libray/libcomn/color.h
yacc.o: d:/rayshade/libray/libcomn/transfrm.h
yacc.o: d:/rayshade/libray/libcomn/error.h
yacc.o: d:/rayshade/libray/libcomn/transfrm.h
yacc.o: d:/rayshade/libray/libobj/bounds.h
yacc.o: funcdefs.h
yacc.o: symtab.h
yacc.o: builtin.h
yacc.o: d:/rayshade/libray/libsurf/atmspher.h
yacc.o: d:/rayshade/libray/libcomn/common.h
yacc.o: d:/rayshade/libray/libsurf/surface.h
yacc.o: d:/rayshade/libray/libtext/texture.h
yacc.o: d:/rayshade/libray/libobj/geom.h
yacc.o: d:/rayshade/libray/libsurf/surface.h
yacc.o: d:/rayshade/libray/libtext/mapping.h
yacc.o: d:/rayshade/libray/libimage/image.h
yacc.o: d:/rayshade/libray/libobj/geom.h
yacc.o: d:/rayshade/libray/liblight/light.h
yacc.o: d:/rayshade/libray/libobj/geom.h
yacc.o: options.h
yacc.o: stats.h
yacc.o: viewing.h
yacc.o: d:/rayshade/libray/libobj/blob.h
yacc.o: d:/rayshade/libray/libobj/box.h
yacc.o: d:/rayshade/libray/libobj/cone.h
yacc.o: d:/rayshade/libray/libobj/csg.h
yacc.o: d:/rayshade/libray/libobj/cylinder.h
yacc.o: d:/rayshade/libray/libobj/disc.h
yacc.o: d:/rayshade/libray/libobj/grid.h
yacc.o: d:/rayshade/libray/libobj/hf.h
yacc.o: d:/rayshade/libray/libobj/instance.h
yacc.o: d:/rayshade/libray/libobj/list.h
yacc.o: d:/rayshade/libray/libobj/plane.h
yacc.o: d:/rayshade/libray/libobj/poly.h
yacc.o: d:/rayshade/libray/libobj/sphere.h
yacc.o: d:/rayshade/libray/libobj/torus.h
yacc.o: d:/rayshade/libray/libobj/triangle.h
yacc.o: d:/rayshade/libray/liblight/point.h
yacc.o: d:/rayshade/libray/liblight/infinite.h
yacc.o: d:/rayshade/libray/liblight/spot.h
yacc.o: d:/rayshade/libray/liblight/jittered.h
yacc.o: d:/rayshade/libray/liblight/extended.h
yacc.o: d:/rayshade/libray/libtext/blotch.h
yacc.o: d:/rayshade/libray/libtext/bump.h
yacc.o: d:/rayshade/libray/libtext/checker.h
yacc.o: d:/rayshade/libray/libtext/cloud.h
yacc.o: d:/rayshade/libray/libtext/fbm.h
yacc.o: d:/rayshade/libray/libtext/fbmbump.h
yacc.o: d:/rayshade/libray/libtext/gloss.h
yacc.o: d:/rayshade/libray/libtext/imagetxt.h
yacc.o: d:/rayshade/libray/libtext/marble.h
yacc.o: d:/rayshade/libray/libtext/mount.h
yacc.o: d:/rayshade/libray/libtext/sky.h
yacc.o: d:/rayshade/libray/libtext/stripe.h
yacc.o: d:/rayshade/libray/libtext/windy.h
yacc.o: d:/rayshade/libray/libtext/wood.h
yacc.o: d:/rayshade/libray/libsurf/fog.h
yacc.o: d:/rayshade/libray/libsurf/fogdeck.h
yacc.o: d:/rayshade/libray/libsurf/mist.h
yacc.o: d:/rayshade/libray/libcomn/rotate.h
yacc.o: d:/rayshade/libray/libcomn/scale.h
yacc.o: d:/rayshade/libray/libcomn/translat.h
builtin.o: builtin.c
builtin.o: rayshade.h
builtin.o: d:/rayshade/libray/libobj/geom.h
builtin.o: d:/rayshade/libray/libcomn/common.h
builtin.o: d:/rayshade/config.h
builtin.o: d:/rayshade/libray/libcomn/expr.h
builtin.o: d:/rayshade/libray/libcomn/vector.h
builtin.o: d:/rayshade/libray/libcomn/ray.h
builtin.o: d:/rayshade/libray/libcomn/color.h
builtin.o: d:/rayshade/libray/libcomn/transfrm.h
builtin.o: d:/rayshade/libray/libcomn/error.h
builtin.o: d:/rayshade/libray/libcomn/transfrm.h
builtin.o: d:/rayshade/libray/libobj/bounds.h
builtin.o: funcdefs.h
symtab.o: symtab.c
symtab.o: rayshade.h
symtab.o: d:/rayshade/libray/libobj/geom.h
symtab.o: d:/rayshade/libray/libcomn/common.h
symtab.o: d:/rayshade/config.h
symtab.o: d:/rayshade/libray/libcomn/expr.h
symtab.o: d:/rayshade/libray/libcomn/vector.h
symtab.o: d:/rayshade/libray/libcomn/ray.h
symtab.o: d:/rayshade/libray/libcomn/color.h
symtab.o: d:/rayshade/libray/libcomn/transfrm.h
symtab.o: d:/rayshade/libray/libcomn/error.h
symtab.o: d:/rayshade/libray/libcomn/transfrm.h
symtab.o: d:/rayshade/libray/libobj/bounds.h
symtab.o: funcdefs.h
symtab.o: symtab.h
symtab.o: builtin.h
misc.o: misc.c
misc.o: rayshade.h
misc.o: d:/rayshade/libray/libobj/geom.h
misc.o: d:/rayshade/libray/libcomn/common.h
misc.o: d:/rayshade/config.h
misc.o: d:/rayshade/libray/libcomn/expr.h
misc.o: d:/rayshade/libray/libcomn/vector.h
misc.o: d:/rayshade/libray/libcomn/ray.h
misc.o: d:/rayshade/libray/libcomn/color.h
misc.o: d:/rayshade/libray/libcomn/transfrm.h
misc.o: d:/rayshade/libray/libcomn/error.h
misc.o: d:/rayshade/libray/libcomn/transfrm.h
misc.o: d:/rayshade/libray/libobj/bounds.h
misc.o: funcdefs.h
misc.o: options.h
misc.o: stats.h
lightdef.o: lightdef.c
lightdef.o: rayshade.h
lightdef.o: d:/rayshade/libray/libobj/geom.h
lightdef.o: d:/rayshade/libray/libcomn/common.h
lightdef.o: d:/rayshade/config.h
lightdef.o: d:/rayshade/libray/libcomn/expr.h
lightdef.o: d:/rayshade/libray/libcomn/vector.h
lightdef.o: d:/rayshade/libray/libcomn/ray.h
lightdef.o: d:/rayshade/libray/libcomn/color.h
lightdef.o: d:/rayshade/libray/libcomn/transfrm.h
lightdef.o: d:/rayshade/libray/libcomn/error.h
lightdef.o: d:/rayshade/libray/libcomn/transfrm.h
lightdef.o: d:/rayshade/libray/libobj/bounds.h
lightdef.o: funcdefs.h
lightdef.o: options.h
lightdef.o: d:/rayshade/libray/liblight/light.h
lightdef.o: d:/rayshade/libray/libobj/geom.h
lightdef.o: d:/rayshade/libray/liblight/infinite.h
lightdef.o: d:/rayshade/libray/liblight/jittered.h
objdef.o: objdef.c
objdef.o: rayshade.h
objdef.o: d:/rayshade/libray/libobj/geom.h
objdef.o: d:/rayshade/libray/libcomn/common.h
objdef.o: d:/rayshade/config.h
objdef.o: d:/rayshade/libray/libcomn/expr.h
objdef.o: d:/rayshade/libray/libcomn/vector.h
objdef.o: d:/rayshade/libray/libcomn/ray.h
objdef.o: d:/rayshade/libray/libcomn/color.h
objdef.o: d:/rayshade/libray/libcomn/transfrm.h
objdef.o: d:/rayshade/libray/libcomn/error.h
objdef.o: d:/rayshade/libray/libcomn/transfrm.h
objdef.o: d:/rayshade/libray/libobj/bounds.h
objdef.o: funcdefs.h
objdef.o: options.h
objdef.o: stats.h
options.o: options.c
options.o: rayshade.h
options.o: d:/rayshade/libray/libobj/geom.h
options.o: d:/rayshade/libray/libcomn/common.h
options.o: d:/rayshade/config.h
options.o: d:/rayshade/libray/libcomn/expr.h
options.o: d:/rayshade/libray/libcomn/vector.h
options.o: d:/rayshade/libray/libcomn/ray.h
options.o: d:/rayshade/libray/libcomn/color.h
options.o: d:/rayshade/libray/libcomn/transfrm.h
options.o: d:/rayshade/libray/libcomn/error.h
options.o: d:/rayshade/libray/libcomn/transfrm.h
options.o: d:/rayshade/libray/libobj/bounds.h
options.o: funcdefs.h
options.o: options.h
options.o: stats.h
options.o: viewing.h
stats.o: stats.c
stats.o: rayshade.h
stats.o: d:/rayshade/libray/libobj/geom.h
stats.o: d:/rayshade/libray/libcomn/common.h
stats.o: d:/rayshade/config.h
stats.o: d:/rayshade/libray/libcomn/expr.h
stats.o: d:/rayshade/libray/libcomn/vector.h
stats.o: d:/rayshade/libray/libcomn/ray.h
stats.o: d:/rayshade/libray/libcomn/color.h
stats.o: d:/rayshade/libray/libcomn/transfrm.h
stats.o: d:/rayshade/libray/libcomn/error.h
stats.o: d:/rayshade/libray/libcomn/transfrm.h
stats.o: d:/rayshade/libray/libobj/bounds.h
stats.o: funcdefs.h
stats.o: options.h
stats.o: stats.h
surfdef.o: surfdef.c
surfdef.o: rayshade.h
surfdef.o: d:/rayshade/libray/libobj/geom.h
surfdef.o: d:/rayshade/libray/libcomn/common.h
surfdef.o: d:/rayshade/config.h
surfdef.o: d:/rayshade/libray/libcomn/expr.h
surfdef.o: d:/rayshade/libray/libcomn/vector.h
surfdef.o: d:/rayshade/libray/libcomn/ray.h
surfdef.o: d:/rayshade/libray/libcomn/color.h
surfdef.o: d:/rayshade/libray/libcomn/transfrm.h
surfdef.o: d:/rayshade/libray/libcomn/error.h
surfdef.o: d:/rayshade/libray/libcomn/transfrm.h
surfdef.o: d:/rayshade/libray/libobj/bounds.h
surfdef.o: funcdefs.h
surfdef.o: d:/rayshade/libray/libsurf/surface.h
