#
# You should only need to set the location of where you have VTK installed,
# and that's it (and maybe the location of the Absoft libs).
#

VTKHOME        = /Users/tomb/Projects/vtk
F90_COMP_LIBS  = -L/Applications/Absoft/lib -lf90math -lfio -lf77math

#
# You should not need to change anything below this point.
#

LIBDIR         = -L$(VTKHOME)/bin -L. -L/usr/X11R6/lib

INCS = -I$(VTKHOME)/Graphics/Testing/Cxx -I$(VTKHOME) -I$(VTKHOME)/Rendering -I$(VTKHOME)/IO -I$(VTKHOME)/Imaging -I$(VTKHOME)/Graphics -I$(VTKHOME)/Filtering -I$(VTKHOME)/Common -I$(VTKHOME)/Common/Testing/Cxx -I$(VTKHOME)/Utilities/zlib -I$(VTKHOME)/Utilities/jpeg -I$(VTKHOME)/Utilities/png -I$(VTKHOME)/Utilities/tiff -I$(VTKHOME)/Utilities/expat -I$(VTKHOME)/Utilities/freetype/include -I$(VTKHOME)/Utilities/freetype -I$(VTKHOME)/Utilities/ftgl/src -I$(VTKHOME)/Utilities/ftgl -I/usr/X11R6/include  

VTKLIBS = -lvtkRendering -lvtkIO -lvtkGraphics -lvtkImaging -lSM -lICE -lX11 -lXext -framework Carbon -lvtkftgl -framework AGL -framework OpenGL -lvtkfreetype -lXt -lvtkFiltering -lvtkCommon -framework AppKit -lpthread -lm -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat


all: imageplot

imageplot.o: imageplot.f90
	f90 -c -g imageplot.f90 -o imageplot.o -pvtk

imageplot: imageplot.o
	c++ -fPIC imageplot.o vtk/*.o $(INCS) $(LIBDIR) $(VTKLIBS) $(F90_COMP_LIBS) -o imageplot

clean:
	rm -rf imageimport *.o
