OPTIMIZE = -O2 -fno-defer-pop -fno-builtin
CCFLAGS = -c -Dmalloc=stupid_malloc -Dfree=stupid_free -m68020 -m68881
RANLIB = ranlib
CC = gcc
MKDEP = //mkdep

LIB = ../libray.a
INCLUDE = -nostdinc -I../.. -Igcc:include -Igcc:os-include -Isc:include
CFLAGS = $(CCFLAGS) $(INCLUDE) $(OPTIMIZE)
SHELL = /bin/sh

CFILES = memory.c expr.c transform.c rotate.c sampling.c scale.c translate.c \
	vecmath.c xform.c
OFILES = memory.o expr.o transform.o rotate.o sampling.o scale.o translate.o \
	vecmath.o xform.o

.c.o:
	$(CC) $(CFLAGS) $<

target:	$(LIB)

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

clean:
	delete \#?.o quiet

# DO NOT DELETE THIS LINE
memory.o: memory.c
memory.o: //config.h
memory.o: color.h
memory.o: common.h
memory.o: error.h
memory.o: expr.h
memory.o: ray.h
memory.o: transform.h
memory.o: vector.h
expr.o: expr.c
expr.o: //config.h
expr.o: color.h
expr.o: common.h
expr.o: error.h
expr.o: expr.h
expr.o: ray.h
expr.o: transform.h
expr.o: vector.h
transform.o: transform.c
transform.o: //config.h
transform.o: color.h
transform.o: common.h
transform.o: error.h
transform.o: expr.h
transform.o: ray.h
transform.o: transform.h
transform.o: vector.h
rotate.o: rotate.c
rotate.o: //config.h
rotate.o: color.h
rotate.o: common.h
rotate.o: error.h
rotate.o: expr.h
rotate.o: ray.h
rotate.o: rotate.h
rotate.o: transform.h
rotate.o: vector.h
sampling.o: sampling.c
sampling.o: //config.h
sampling.o: color.h
sampling.o: common.h
sampling.o: error.h
sampling.o: expr.h
sampling.o: ray.h
sampling.o: sampling.h
sampling.o: transform.h
sampling.o: vector.h
scale.o: scale.c
scale.o: //config.h
scale.o: color.h
scale.o: common.h
scale.o: error.h
scale.o: expr.h
scale.o: ray.h
scale.o: scale.h
scale.o: transform.h
scale.o: vector.h
translate.o: translate.c
translate.o: //config.h
translate.o: color.h
translate.o: common.h
translate.o: error.h
translate.o: expr.h
translate.o: ray.h
translate.o: transform.h
translate.o: translate.h
translate.o: vector.h
vecmath.o: vecmath.c
vecmath.o: //config.h
vecmath.o: color.h
vecmath.o: common.h
vecmath.o: error.h
vecmath.o: expr.h
vecmath.o: ray.h
vecmath.o: transform.h
vecmath.o: vector.h
xform.o: xform.c
xform.o: //config.h
xform.o: color.h
xform.o: common.h
xform.o: error.h
xform.o: expr.h
xform.o: ray.h
xform.o: transform.h
xform.o: vector.h
xform.o: xform.h
