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

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

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

TARGETS = accanti anti bezmesh checker depthcue dof fog fogindex \
          material mipmap nurbs pickdepth plane polys sccolorlight \
          scene scenebamb sceneflat stencil stroke surface teaambient \
          teapots texturesurf \
	  aaindex aapoly aargb accpersp alpha alpha3D bezcurve clip \
	  colormat cube double drawf feedback font hello image light \
	  lines list model movelight picksquare planet polyoff quadric \
	  robot select smooth tess tesswind texbind texgen texprox \
	  texsub torus trim unproject varray wrap

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

SRCS = accanti.c anti.c bezmesh.c checker.c depthcue.c dof.c fog.c fogindex.c \
       material.c mipmap.c nurbs.c pickdepth.c plane.c polys.c sccolorlight.c \
       scene.c scenebamb.c sceneflat.c stencil.c stroke.c surface.c \
       teaambient.c teapots.c texturesurf.c \
       aaindex.c aapoly.c aargb.c accpersp.c alpha.c alpha3D.c \
       bezcurve.c clip.c colormat.c cube.c double.c drawf.c feedback.c \
       font.c hello.c image.c light.c lines.c list.c model.c \
       movelight.c picksquare.c planet.c polyoff.c quadric.c robot.c \
       select.c smooth.c tess.c tesswind.c texbind.c texgen.c texprox.c \
       texsub.c torus.c trim.c unproject.c varray.c wrap.c

OBJS = $(SRCS:.c=.o)

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

default : $(TARGETS)

include $(COMMONRULES)
