# Gaia GSRPar Makefile

COMPILER = /usr/bin/g++
COMPILERCPP = /usr/bin/g++

CC = $(COMPILER)
CPP= $(COMPILERCPP)

LD = $(COMPILERCPP)

ROOT=/Users/ube/VisIVOServer_OACT/2.3/
ROOTVIEW=$(ROOT)/VisIVOViewers/Viewer/


VSVIEW=	$(ROOTVIEW)/isosurfacepipe.o	$(ROOTVIEW)/pipe.o		$(ROOTVIEW)/pointspipe.o		$(ROOTVIEW)/slicerpipe.o		$(ROOTVIEW)/splotchpipecamera.o	$(ROOTVIEW)/volumepipe.o			$(ROOTVIEW)/vtkimagepipe.o $(ROOTVIEW)/mainViewer.o		$(ROOTVIEW)/pointssmoothpipe.o	$(ROOTVIEW)/splotchpipe.o		$(ROOTVIEW)/vectorpipe.o			$(ROOTVIEW)/volumeslicer.o		$(ROOTVIEW)/Splotch/kernel/transform.o $(ROOTVIEW)/Splotch/cxxsupport/announce.o		$(ROOTVIEW)/Splotch/cxxsupport/ls_image.o		$(ROOTVIEW)/Splotch/cxxsupport/paramfile.o		$(ROOTVIEW)/Splotch/cxxsupport/walltimer.o $(ROOTVIEW)/Splotch/cxxsupport/error_handling.o	$(ROOTVIEW)/Splotch/cxxsupport/mpi_support.o	$(ROOTVIEW)/Splotch/cxxsupport/string_utils.o $(ROOTVIEW)/Splotch/reader/bin_reader.o			$(ROOTVIEW)/Splotch/reader/gadget_reader.o		$(ROOTVIEW)/Splotch/reader/mesh_reader.o			$(ROOTVIEW)/Splotch/reader/visivo_reader.o $(ROOTVIEW)/Splotch/reader/bin_reader_mpi.o			$(ROOTVIEW)/Splotch/reader/millenium_reader.o		$(ROOTVIEW)/Splotch/reader/tipsy_reader.o   $(ROOTVIEW)/Splotch/reader/ramses_reader.o $(ROOTVIEW)/Splotch/splotch/scenemaker.o		$(ROOTVIEW)/Splotch/splotch/splotch_host.o $(ROOTVIEW)/Splotch/splotch/splotch.o		$(ROOTVIEW)/Splotch/splotch/splotchutils.o $(ROOTVIEW)/Splotch/booster/m_rotation.o		$(ROOTVIEW)/Splotch/booster/mesh_creator.o		$(ROOTVIEW)/Splotch/booster/p_selector.o		$(ROOTVIEW)/Splotch/booster/randomizer.o $(ROOTVIEW)/Splotch/c_utils/walltime_c.o $(ROOT)/Utils/color.o								$(ROOT)/Utils/tinyxml.o			$(ROOT)/Utils/visivoutils.o 		$(ROOT)/Utils/historyXmlWriter.o		$(ROOT)/Utils/tinyxmlerror.o		$(ROOT)/Utils/vsobject.o $(ROOT)/Utils/extendedglyph3d.o		$(ROOT)/Utils/luteditor.o				$(ROOT)/Utils/tinyxmlparser.o		$(ROOT)/VisIVOFilters/Filters/vstable.o 			$(ROOT)/Utils/optionssetter.o		$(ROOT)/Utils/tinystr.o		$(ROOT)/VisIVOFilters/Filters/vsstatisticop.o $(ROOT)/VisIVOFilters/Filters/vstableop.o


OBJS=	isosurfacepipe.o	pipe.o		pointspipe.o		slicerpipe.o		splotchpipecamera.o	volumepipe.o			vtkimagepipe.o mainViewer.o		pointssmoothpipe.o	splotchpipe.o		vectorpipe.o			volumeslicer.o		transform.o  announce.o	 ls_image.o	 paramfile.o	 walltimer.o  error_handling.o	 mpi_support.o	 string_utils.o  bin_reader.o		 gadget_reader.o		 mesh_reader.o			 visivo_reader.o  bin_reader_mpi.o	 millenium_reader.o		 tipsy_reader.o ramses_reader.o scenemaker.o		 splotch_host.o  splotch.o		 splotchutils.o  m_rotation.o		 mesh_creator.o		 p_selector.o	 randomizer.o walltime_c.o color.o	 tinyxml.o		 visivoutils.o 		 historyXmlWriter.o		 tinyxmlerror.o		 vsobject.o  extendedglyph3d.o		 luteditor.o		 tinyxmlparser.o	 vstable.o 		 optionssetter.o		 tinystr.o		 vsstatisticop.o  vstableop.o



INCLUDE = -I/usr/local/Cellar/boost/1.59.0/include -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOViewers/Viewer -I/Users/ube/VisIVOServer_OACT/2.3/Utils -I/usr/local/include -I/opt/local/include -I/opt/vtk5/include/vtk-5.10 -I/Users/ube/VisIVOServer_OACT/2.3 -I/Users/ube/VisIVOServer_OACT/2.3/Utils -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOViewers/Viewer/Splotch -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOViewers/Viewer/Splotch/c_utils -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOViewers/Viewer/pipe -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOFilters/Filters -I/Users/ube/VisIVOServer_OACT/2.3/VisIVOUtils 

#CPPFLAGS= -DLIGHT $(INCLUDE)

CPPFLAGS= -DSPLVISIVO -DLIGHT -DMAC

LIBRARYPATH =-L/usr/local/lib -L/opt/local/lib -L/opt/vtk5/lib/vtk-5.10
##LIB = -lcurl -lhdf5 -lcfitsio -lm
LIB = -lvtkRendering -lvtkHybrid -lvtkVolumeRendering -lvtkexoIIc -lvtkRendering -lvtkGraphics -lvtkverdict -lvtkImaging -lvtkftgl -lvtkfreetype -lvtkIO -lvtkFiltering -lvtkCommon -lvtkDICOMParser -lvtkNetCDF -lvtkmetaio -lvtksqlite -lpthread -lvtkpng -lvtkzlib -lvtkjpeg -lm -lvtkexpat -lvtksys -ldl -ltiff -lvtkfreetype -lcurl

LDFLAGS= -framework CoreServices -framework ApplicationServices -framework Cocoa -framework Foundation -framework IOKit -framework Carbon -framework OpenGL 

all: VisIVOViewer
 
.SUFFIXES : .o .cpp .cc .c .cxx

.cpp.o:
	$(CPP) $(CPPFLAGS) $(INCLUDE)  -c $< 

.cc.o:
	$(CPP) $(CPPFLAGS) $(INCLUDE)  -c $< 

.c.o:
	$(CPP) $(CPPFLAGS) $(INCLUDE)  -c $< 

.cxx.o:
	$(CPP) $(CPPFLAGS) $(INCLUDE)  -c $< 

VisIVOViewer: $(VSVIEW)
	$(LD) $(CPPFLAGS) -o VisIVOViewer $(OBJS) $(LDFLAGS) $(INCLUDE) $(LIBRARYPATH) $(LIB)

	
clean:
	rm -f *.o ../../Utils/*.o ./Splotch/kernel/*.o ./Splotch/cxxsupport/*.o		./Splotch/reader/*.o ./Splotch/splotch/*o	./Splotch/booster/*.o		../../VisIVOFilters/Filters/vstable.o 	../../VisIVOFilters/Filters/vsstatisticop.o ../../VisIVOFilters/Filters/vstableop.o core
