OPTIMIZE = -O
CCFLAGS = -g 
RANLIB = /bin/ranlib
CC = cc
MKDEP = /private/tmp/rayshade.4.0/mkdep

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

CFILES = memory.c transform.c sampling.c vecmath.c
OFILES = $(CFILES:.c=.o)

$(LIB): $(OFILES)
	ar cur $(LIB) $(OFILES)
	$(RANLIB) $(LIB)

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: /private/tmp/rayshade.4.0/config.h
memory.o: color.h
memory.o: common.h
memory.o: error.h
memory.o: memory.c
memory.o: ray.h
memory.o: transform.h
memory.o: vector.h
transform.o: /private/tmp/rayshade.4.0/config.h
transform.o: color.h
transform.o: common.h
transform.o: error.h
transform.o: ray.h
transform.o: transform.c
transform.o: transform.h
transform.o: vector.h
sampling.o: /private/tmp/rayshade.4.0/config.h
sampling.o: color.h
sampling.o: common.h
sampling.o: error.h
sampling.o: ray.h
sampling.o: sampling.c
sampling.o: sampling.h
sampling.o: transform.h
sampling.o: vector.h
vecmath.o: /private/tmp/rayshade.4.0/config.h
vecmath.o: color.h
vecmath.o: common.h
vecmath.o: error.h
vecmath.o: ray.h
vecmath.o: transform.h
vecmath.o: vecmath.c
vecmath.o: vector.h
