#
# examples/cc//Makefile.in  --
#
# Makefile for Visualization Toolkit C++ examples.
# 
#------------------------------------------------------------------------------
#
SHELL = /bin/sh
.SUFFIXES: .cxx

srcdir        = @srcdir@
VPATH         = @srcdir@
VTK_LIB_FILE  = @VTK_LIB_FILE@

#------------------------------------------------------------------------------
# Autoconfig defines that can be overridden in user.make

@MAKEINCLUDE@ @MAKEQUOTE@../../system.make@MAKEQUOTE@

#------------------------------------------------------------------------------
# Include user-editable defines.

@MAKEINCLUDE@ @MAKEQUOTE@../../user.make@MAKEQUOTE@

#-----------------------------------------------------------------------------

EXAMPLES = VisQuad \
	CamBlur \
	ColorSph \
	Cone \
	Cone2 \
	Cone3 \
	Cone4 \
	Cube \
	Hanoi \
	Kitchen \
	LoopShrk \
	Lorenz \
	Mace \
	Mace2 \
	Mace3 \
	Model \
	MotBlur \
	Normals \
	RGrid \
	SGrid \
	Sample \
	StrSph \
	TPlane \
	UGrid \
	VisQuad \
	Vol \
	VRMLServer \
	XMace \
	alphaFreq \
	bluntStr \
	contQuad \
	expCos \
	fly \
	finance \
	medical1 \
	medical2 \
	medical3 \
	pickCells \
	pickCells \
	probe \
	quadricCut \
	singleSplat \
	sweptMac \
	tcutSph \
	vtkLogo \
	volProt
  
CXX_FLAGS = ${CPPFLAGS} ${USER_CXXFLAGS} ${CXXFLAGS} -I${srcdir} \
	${KIT_FLAGS} -I. ${USE_TOOLKIT_FLAGS} ${GRAPHICS_API_FLAGS} \
	 -I${srcdir}/../../common -I${srcdir}/.. -I${srcdir}/../../patented \
	-I${srcdir}/../../imaging

VTKLIB = ${VTK_LIB_FILE}

LDLIBS = ${VTK_LIB_FILE} ${XLIBS} ${GRAPHICS_API_LIBS} ${DL_LIBS} ${THREAD_LIBS}

.cxx.o:
	${CXX} ${CXX_FLAGS} -c $< -o $@

#------------------------------------------------------------------------------
#

all: ${EXAMPLES}

VisQuad: VisQuad.o ${VTKLIB}
	${CXX} -o VisQuad ${CXX_FLAGS} VisQuad.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
CamBlur: CamBlur.o ${VTKLIB}
	${CXX} -o CamBlur ${CXX_FLAGS} CamBlur.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
ColorSph: ColorSph.o ${VTKLIB}
	${CXX} -o ColorSph ${CXX_FLAGS} ColorSph.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Cone: Cone.o ${VTKLIB}
	${CXX} -o Cone ${CXX_FLAGS} Cone.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Cone2: Cone2.o ${VTKLIB}
	${CXX} -o Cone2 ${CXX_FLAGS} Cone2.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Cone3: Cone3.o ${VTKLIB}
	${CXX} -o Cone3 ${CXX_FLAGS} Cone3.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Cone4: Cone4.o ${VTKLIB}
	${CXX} -o Cone4 ${CXX_FLAGS} Cone4.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Cube: Cube.o ${VTKLIB}
	${CXX} -o Cube ${CXX_FLAGS} Cube.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Hanoi: Hanoi.o ${VTKLIB}
	${CXX} -o Hanoi ${CXX_FLAGS} Hanoi.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Kitchen: Kitchen.o ${VTKLIB}
	${CXX} -o Kitchen ${CXX_FLAGS} Kitchen.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
LoopShrk: LoopShrk.o ${VTKLIB}
	${CXX} -o LoopShrk ${CXX_FLAGS} LoopShrk.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Lorenz: Lorenz.o ${VTKLIB}
	${CXX} -o Lorenz ${CXX_FLAGS} Lorenz.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Mace: Mace.o ${VTKLIB}
	${CXX} -o Mace ${CXX_FLAGS} Mace.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Mace2: Mace2.o ${VTKLIB}
	${CXX} -o Mace2 ${CXX_FLAGS} Mace2.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Mace3: Mace3.o ${VTKLIB}
	${CXX} -o Mace3 ${CXX_FLAGS} Mace3.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Model: Model.o ${VTKLIB}
	${CXX} -o Model ${CXX_FLAGS} Model.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
MotBlur: MotBlur.o ${VTKLIB}
	${CXX} -o MotBlur ${CXX_FLAGS} MotBlur.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Normals: Normals.o ${VTKLIB}
	${CXX} -o Normals ${CXX_FLAGS} Normals.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
RGrid: RGrid.o ${VTKLIB}
	${CXX} -o RGrid ${CXX_FLAGS} RGrid.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
SGrid: SGrid.o ${VTKLIB}
	${CXX} -o SGrid ${CXX_FLAGS} SGrid.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Sample: Sample.o ${VTKLIB}
	${CXX} -o Sample ${CXX_FLAGS} Sample.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
StrSph: StrSph.o ${VTKLIB}
	${CXX} -o StrSph ${CXX_FLAGS} StrSph.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
TPlane: TPlane.o ${VTKLIB}
	${CXX} -o TPlane ${CXX_FLAGS} TPlane.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
UGrid: UGrid.o ${VTKLIB}
	${CXX} -o UGrid ${CXX_FLAGS} UGrid.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
Vol: Vol.o ${VTKLIB}
	${CXX} -o Vol ${CXX_FLAGS} Vol.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
VRMLServer: VRMLServer.o ${VTKLIB}
	${CXX} -o VRMLServer ${CXX_FLAGS} VRMLServer.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
XMace: XMace.o ${VTKLIB}
	${CXX} -o XMace ${CXX_FLAGS} XMace.o ${XLDFLAGS} ${LDLIBS} \
	-lXm ${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
alphaFreq: alphaFreq.o ${VTKLIB}
	${CXX} -o alphaFreq ${CXX_FLAGS} alphaFreq.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
bluntStr: bluntStr.o ${VTKLIB}
	${CXX} -o bluntStr ${CXX_FLAGS} bluntStr.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
contQuad: contQuad.o ${VTKLIB}
	${CXX} -o contQuad ${CXX_FLAGS} contQuad.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
expCos: expCos.o ${VTKLIB}
	${CXX} -o expCos ${CXX_FLAGS} expCos.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
finance: finance.o ${VTKLIB}
	${CXX} -o finance ${CXX_FLAGS} finance.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
fly: fly.o ${VTKLIB}
	${CXX} -o fly ${CXX_FLAGS} fly.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
medical1: medical1.o ${VTKLIB}
	${CXX} -o medical1 ${CXX_FLAGS} medical1.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
medical2: medical2.o ${VTKLIB}
	${CXX} -o medical2 ${CXX_FLAGS} medical2.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
medical3: medical3.o ${VTKLIB}
	${CXX} -o medical3 ${CXX_FLAGS} medical3.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
pickCells: pickCells.o ${VTKLIB}
	${CXX} -o pickCells ${CXX_FLAGS} pickCells.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
probe: probe.o ${VTKLIB}
	${CXX} -o probe ${CXX_FLAGS} probe.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
quadricCut: quadricCut.o ${VTKLIB}
	${CXX} -o quadricCut ${CXX_FLAGS} quadricCut.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
singleSplat: singleSplat.o ${VTKLIB}
	${CXX} -o singleSplat ${CXX_FLAGS} singleSplat.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
sweptMac: sweptMac.o ${VTKLIB}
	${CXX} -o sweptMac ${CXX_FLAGS} sweptMac.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
tcutSph: tcutSph.o ${VTKLIB}
	${CXX} -o tcutSph ${CXX_FLAGS} tcutSph.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
vtkLogo: vtkLogo.o ${VTKLIB}
	${CXX} -o vtkLogo ${CXX_FLAGS} vtkLogo.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm
vol: vol.o ${VTKLIB}
	${CXX} -o vol ${CXX_FLAGS} vol.o ${XLDFLAGS} ${LDLIBS} \
	${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm

#------------------------------------------------------------------------------

clean:
	-rm -f ${EXAMPLES} *.o 

