#!smake
#
# Copyright (c) Mark J. Kilgard, 1997.
#

TOP = ../..
include $(TOP)/glutdefs
include $(ROOT)/usr/include/make/commondefs

LD_QUICKSTART_INFO=
LN = ln -s
MV = mv
RM = -rm -rf

TARGETS = tunnel teapot fire terrain paltex gltest ray glbpaltx

LLDLIBS = $(GLUT) -lGLU -lGL -lXmu -lXext -lX11 -lm

LCOPTS = -I$(TOP)/include -fullwarn
LWOFF = ,813,852,827,826,1506
LDIRT = *~ *.bak *.pure

default : $(TARGETS)

ray: ray.o
	$(CCF) -o $@ ray.o $(LDFLAGS)

gltest: gltest.o
	$(CCF) -o $@ gltest.o $(LDFLAGS)

tunnel: tunnel.o image.o sources.o
	$(CCF) -o $@ tunnel.o image.o sources.o $(LDFLAGS)

paltex: paltex.o
	$(CCF) -o $@ paltex.o $(LDFLAGS)

glbpaltx: glbpaltx.o
	$(CCF) -o $@ glbpaltx.o $(LDFLAGS)

teapot: teapot.o teapot.o image.o dteapot.o shadow.o
	$(CCF) -o $@ teapot.o image.o dteapot.o shadow.o $(LDFLAGS)

fire: fire.o image.o
	$(CCF) -o $@ fire.o image.o $(LDFLAGS)

terrain: terrain.o
	$(CCF) -o $@ terrain.o $(LDFLAGS)

include $(COMMONRULES)
