OPTIMIZE = -O
CCFLAGS = -fpcc-struct-return 
RANLIB = ar s
CC = gcc
MKDEP = d:/rayshade/mkdep

LIB = ../libray.a
INCLUDE = -I.. -I../..
CFLAGS = $(INCLUDE) $(CCFLAGS) $(OPTIMIZE)
SHELL = /bin/sh

CFILES = atmspher.c fog.c fogdeck.c mist.c surface.c surfshade.c
OFILES = $(CFILES:.c=.o)

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

clean:
	rm -f $(OFILES)

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

# DO NOT DELETE THIS LINE
atmspher.o: atmspher.c
atmspher.o: atmspher.h
atmspher.o: d:/rayshade/libray/libcomn/common.h
atmspher.o: d:/rayshade/config.h
atmspher.o: d:/rayshade/libray/libcomn/expr.h
atmspher.o: d:/rayshade/libray/libcomn/vector.h
atmspher.o: d:/rayshade/libray/libcomn/ray.h
atmspher.o: d:/rayshade/libray/libcomn/color.h
atmspher.o: d:/rayshade/libray/libcomn/transfrm.h
atmspher.o: d:/rayshade/libray/libcomn/error.h
fog.o: fog.c
fog.o: atmspher.h
fog.o: d:/rayshade/libray/libcomn/common.h
fog.o: d:/rayshade/config.h
fog.o: d:/rayshade/libray/libcomn/expr.h
fog.o: d:/rayshade/libray/libcomn/vector.h
fog.o: d:/rayshade/libray/libcomn/ray.h
fog.o: d:/rayshade/libray/libcomn/color.h
fog.o: d:/rayshade/libray/libcomn/transfrm.h
fog.o: d:/rayshade/libray/libcomn/error.h
fog.o: fog.h
fogdeck.o: fogdeck.c
fogdeck.o: atmspher.h
fogdeck.o: d:/rayshade/libray/libcomn/common.h
fogdeck.o: d:/rayshade/config.h
fogdeck.o: d:/rayshade/libray/libcomn/expr.h
fogdeck.o: d:/rayshade/libray/libcomn/vector.h
fogdeck.o: d:/rayshade/libray/libcomn/ray.h
fogdeck.o: d:/rayshade/libray/libcomn/color.h
fogdeck.o: d:/rayshade/libray/libcomn/transfrm.h
fogdeck.o: d:/rayshade/libray/libcomn/error.h
fogdeck.o: fogdeck.h
mist.o: mist.c
mist.o: atmspher.h
mist.o: d:/rayshade/libray/libcomn/common.h
mist.o: d:/rayshade/config.h
mist.o: d:/rayshade/libray/libcomn/expr.h
mist.o: d:/rayshade/libray/libcomn/vector.h
mist.o: d:/rayshade/libray/libcomn/ray.h
mist.o: d:/rayshade/libray/libcomn/color.h
mist.o: d:/rayshade/libray/libcomn/transfrm.h
mist.o: d:/rayshade/libray/libcomn/error.h
mist.o: mist.h
surface.o: surface.c
surface.o: atmspher.h
surface.o: d:/rayshade/libray/libcomn/common.h
surface.o: d:/rayshade/config.h
surface.o: d:/rayshade/libray/libcomn/expr.h
surface.o: d:/rayshade/libray/libcomn/vector.h
surface.o: d:/rayshade/libray/libcomn/ray.h
surface.o: d:/rayshade/libray/libcomn/color.h
surface.o: d:/rayshade/libray/libcomn/transfrm.h
surface.o: d:/rayshade/libray/libcomn/error.h
surface.o: surface.h
surfshade.o: surfshade.c
surfshade.o: d:/rayshade/libray/libobj/geom.h
surfshade.o: d:/rayshade/libray/libcomn/common.h
surfshade.o: d:/rayshade/config.h
surfshade.o: d:/rayshade/libray/libcomn/expr.h
surfshade.o: d:/rayshade/libray/libcomn/vector.h
surfshade.o: d:/rayshade/libray/libcomn/ray.h
surfshade.o: d:/rayshade/libray/libcomn/color.h
surfshade.o: d:/rayshade/libray/libcomn/transfrm.h
surfshade.o: d:/rayshade/libray/libcomn/error.h
surfshade.o: d:/rayshade/libray/libcomn/transfrm.h
surfshade.o: d:/rayshade/libray/libobj/bounds.h
surfshade.o: surface.h
