all: vtkrun Cone Hanoi DLoadLib.o : DLoadLib.C DLoadLib.h c++ -c DLoadLib.C tjrun.o : tjrun.C c++ -c tjrun.C vtkrun: tjrun.o DLoadLib.o c++ -o vtkrun tjrun.o DLoadLib.o -ldl -L/home/martink/Mesa-3.0/lib -L/home/martink/vtk/lib -lVTKCommon -lVTKContrib -lVTKGraphics -lVTKImaging -lMesaGL -lX11 -lXt -L/usr/X11R6/lib -lpthread -lXext VTK_FLAGS = -I${VTK_HOME}/graphics -I${VTK_HOME}/imaging -I${VTK_HOME}/contrib -I${VTK_HOME}/common -Iexamples Cone : examples/Cone.cxx c++ ${VTK_FLAGS} -shared -o Cone examples/Cone.cxx Hanoi : examples/Hanoi.cxx c++ ${VTK_FLAGS} -shared -o Hanoi examples/Hanoi.cxx # to run framework examples: # ./vtkrun Cone .# /vtkrun Hanoi
Example 3: The makefile for using tjrun.C with the Visualization toolkit.
Copyright © 1999, Dr. Dobb's Journal