
/* Copyright (c) Mark J. Kilgard, 1996. */

#include "../../Glut.cf"

TARGETS = hiddenline haloed silhouette softshadow accumaa field convolve \
  shadowvol shadowmap projshadow tess textile comp csg dissolve envmap \
  envphong decal textext genmipmap imgproc mipmap_lines textrim tvertex \
  warp motionblur projtex zcomposite videoresize occlude af_depthcue \
  af_teapots multilight boundary shadowfun hello2rts rasonly

SRCS = hiddenline.c haloed.c silhouette.c softshadow.c accumaa.c field.c \
  convolve.c shadowvol.c shadowmap.c projshadow.c sphere.c tess.c texture.c \
  textile.c comp.c csg.c dissolve.c envmap.c envphong.c decal.c textext.c \
  textmap.c genmipmap.c imgproc.c mipmap_lines.c izoom.c textrim.c tvertex.c \
  warp.c motionblur.c projtex.c zcomposite.c videoresize.c occlude.c \
  addfog.c af_depthcue.c af_teapots.c multilight.c boundary.c shadowfun.c \
  rts.c hello2rts.c rasonly.c

AllTarget($(TARGETS))

SimpleGlutProgramTarget(accumaa)
NormalGlutProgramTarget(af_depthcue,af_depthcue.o addfog.o)
NormalGlutProgramTarget(af_teapots,af_teapots.o addfog.o)
SimpleGlutProgramTarget(boundary)
NormalGlutProgramTarget(comp,comp.o texture.o)
SimpleGlutProgramTarget(csg)
SimpleGlutProgramTarget(convolve)
SimpleGlutProgramTarget(decal)
SimpleGlutProgramTarget(dissolve)
NormalGlutProgramTarget(envmap,envmap.o texture.o)
SimpleGlutProgramTarget(envphong)
SimpleGlutProgramTarget(field)
NormalGlutProgramTarget(genmipmap,genmipmap.o texture.o)
SimpleGlutProgramTarget(haloed)
NormalGlutProgramTarget(hello2rts,hello2rts.o rts.o)
SimpleGlutProgramTarget(hiddenline)
NormalGlutProgramTarget(imgproc,imgproc.o texture.o)
NormalGlutProgramTarget(mipmap_lines,mipmap_lines.o izoom.o texture.o)
SimpleGlutProgramTarget(motionblur)
SimpleGlutProgramTarget(multilight)
SimpleGlutProgramTarget(occlude)
SimpleGlutProgramTarget(projshadow)
NormalGlutProgramTarget(projtex,projtex.o texture.o)
SimpleGlutProgramTarget(rasonly)
SimpleGlutProgramTarget(silhouette)
SimpleGlutProgramTarget(shadowfun)
SimpleGlutProgramTarget(shadowmap)
SimpleGlutProgramTarget(shadowvol)
SimpleGlutProgramTarget(softshadow)
NormalGlutProgramTarget(tess,tess.o sphere.o)
NormalGlutProgramTarget(textext,textext.o textmap.o texture.o)
NormalGlutProgramTarget(textrim,textrim.o texture.o)
NormalGlutProgramTarget(textile,textile.o texture.o)
SimpleGlutProgramTarget(tvertex)
NormalGlutProgramTarget(videoresize,videoresize.o sphere.o)
SimpleGlutProgramTarget(vox)
NormalGlutProgramTarget(warp,warp.o texture.o)
SimpleGlutProgramTarget(zcomposite)

DATA_LINKS = 00.rgb 02.rgb 04.rgb a.rgb mandrill.rgb 01.rgb 03.rgb 05.rgb b.rgb tree.rgb vox.bin.gz

links:
	for i in $(DATA_LINKS); do \
	  /bin/rm -rf $$i ; \
	  ln -s ../../data/$$i . ; \
	done

#ifdef RemoveFiles
clean::
	RemoveFiles($(DATA_LINKS))
#else
clean::
	$(RM) $(DATA_LINKS)
#endif

DependTarget()
