# Blue Moon Rendering Tools implementation of the RenderMan standard
# Makefile for the standard shaders
#
# Blue Moon Rendering Tools, version 2.3
# (c) Copyright 1990-1996 by Larry I. Gritz.  All rights reserved.
#
#       The RenderMan (R) Interface Procedures and RIB Protocol are:
#           Copyright 1988, 1989, Pixar.  All rights reserved.
#       RenderMan (R) is a registered trademark of Pixar.
#


include ../Make-config


# The rule for compiling shading language programs
.SUFFIXES: .so .sl
.sl.so:
	$(SLC) $*.sl
SLC= ../bin/slc
RENDER= ../bin/rendrib


SHADERS = background.sl clamptoalpha.sl dented.sl funkyglass.sl glass.sl \
	gmarbtile_polish.sl noisysmoke.sl parquet_plank.sl plank.sl \
	screen.sl screen_aa.sl shiny.sl stucco.sl \
	wallpaper_2stripe.sl wood2.sl

COMPILED_SHADERS = $(SHADERS:.sl=.so)

RIBS = cornbox.rib disptest.rib dresser.rib limbo.rib shadtest.rib \
	smokebox.rib teapots.rib tpdisp.rib

SRC = $(SHADERS) $(RIBS) README 


all: $(SRC) $(COMPILED_SHADERS)


times:
	time $(RENDER) shadtest.rib
	time $(RENDER) disptest.rib
	time $(RENDER) -radio 50 -samples 3 3 cornbox.rib
	time $(RENDER) tpdisp.rib
	time $(RENDER) teapots.rib
	time $(RENDER) smokebox.rib
	time $(RENDER) dresser.rib


clean:
	@- rm *~ *.tif

realclean: clean
	@- rm *.so
