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

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

CFILES = memory.c expr.c transfrm.c rotate.c sampling.c scale.c translat.c vecmath.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
memory.o: memory.c
memory.o: common.h
memory.o: d:/rayshade/config.h
memory.o: expr.h
memory.o: vector.h
memory.o: ray.h
memory.o: color.h
memory.o: transfrm.h
memory.o: error.h
expr.o: expr.c
expr.o: common.h
expr.o: d:/rayshade/config.h
expr.o: expr.h
expr.o: vector.h
expr.o: ray.h
expr.o: color.h
expr.o: transfrm.h
expr.o: error.h
transfrm.o: transfrm.c
transfrm.o: common.h
transfrm.o: d:/rayshade/config.h
transfrm.o: expr.h
transfrm.o: vector.h
transfrm.o: ray.h
transfrm.o: color.h
transfrm.o: transfrm.h
transfrm.o: error.h
rotate.o: rotate.c
rotate.o: common.h
rotate.o: d:/rayshade/config.h
rotate.o: expr.h
rotate.o: vector.h
rotate.o: ray.h
rotate.o: color.h
rotate.o: transfrm.h
rotate.o: error.h
rotate.o: rotate.h
sampling.o: sampling.c
sampling.o: common.h
sampling.o: d:/rayshade/config.h
sampling.o: expr.h
sampling.o: vector.h
sampling.o: ray.h
sampling.o: color.h
sampling.o: transfrm.h
sampling.o: error.h
sampling.o: sampling.h
scale.o: scale.c
scale.o: common.h
scale.o: d:/rayshade/config.h
scale.o: expr.h
scale.o: vector.h
scale.o: ray.h
scale.o: color.h
scale.o: transfrm.h
scale.o: error.h
scale.o: scale.h
translat.o: translat.c
translat.o: common.h
translat.o: d:/rayshade/config.h
translat.o: expr.h
translat.o: vector.h
translat.o: ray.h
translat.o: color.h
translat.o: transfrm.h
translat.o: error.h
translat.o: translat.h
vecmath.o: vecmath.c
vecmath.o: common.h
vecmath.o: d:/rayshade/config.h
vecmath.o: expr.h
vecmath.o: vector.h
vecmath.o: ray.h
vecmath.o: color.h
vecmath.o: transfrm.h
vecmath.o: error.h
