source: trunk/packages/vizservers/vtkvis/Makefile.in @ 4073

Last change on this file since 4073 was 4073, checked in by ldelgass, 10 years ago

Add software rendering of legends, enabled by default. Should work with vtk
6.0 release and up (i.e. work around the bug with the scalar bar actor rendering
with newer VTK).

File size: 9.2 KB
Line 
1DEBUG                   = #yes
2TRACE                   = #yes
3USE_CUSTOM_AXES         = yes
4USE_FONT_CONFIG         = yes
5USE_GPU_RAYCASTING      = yes
6USE_OFFSCREEN_RENDERING = #yes
7USE_THREADS             = yes
8USE_CPU_LEGEND_RENDER   = yes
9NEW_SCALAR_BAR          = #yes
10
11bindir          = @bindir@
12datadir         = @datadir@
13datarootdir     = @datarootdir@
14exec_prefix     = @exec_prefix@
15includedir      = @includedir@
16libdir          = @libdir@
17mandir          = @mandir@
18prefix          = @prefix@
19srcdir          = @srcdir@
20
21CC              = @CC@
22CXX             = @CXX@
23CFLAGS          = @CFLAGS@
24CXXFLAGS        = @CXXFLAGS@
25
26VPATH           = $(srcdir)
27
28INSTALL         = @INSTALL@
29INSTALL_PROGRAM = ${INSTALL} -m 0755
30INSTALL_DATA    = ${INSTALL} -m 0644
31INSTALL_SCRIPT  = ${INSTALL} -m 0644
32MKDIR_P         = @MKDIR_P@
33
34SVN_VERSION     = $(shell svnversion $(srcdir))
35STATSDIR        = @STATSDIR@
36
37GL_LIB_SPEC     = -lGL -lm
38PTHREAD_LIB_SPEC= -lpthread
39
40TCL_LIB_SPEC    = @TCL_LIB_SPEC@
41TCL_INC_SPEC    = @TCL_INC_SPEC@
42
43VTK_VERSION     = @VTK_VERSION@
44VTK_LIB_DIR     = @VTK_LIB_DIR@
45VTK_INC_DIR     = @VTK_INC_DIR@
46VTK_INC_SPEC    = -I$(VTK_INC_DIR)/vtk-$(VTK_VERSION)
47VTK_LIB_SPEC    = -L$(VTK_LIB_DIR) \
48                -lvtkDomainsChemistry-$(VTK_VERSION) \
49                -lvtkIOCore-$(VTK_VERSION) \
50                -lvtkIOLegacy-$(VTK_VERSION) \
51                -lvtkFiltersExtraction-$(VTK_VERSION) \
52                -lvtkFiltersModeling-$(VTK_VERSION) \
53                -lvtkFiltersFlowPaths-$(VTK_VERSION) \
54                -lvtkFiltersGeometry-$(VTK_VERSION) \
55                -lvtkFiltersSources-$(VTK_VERSION) \
56                -lvtkFiltersGeneral-$(VTK_VERSION) \
57                -lvtkFiltersCore-$(VTK_VERSION) \
58                -lvtkImagingHybrid-$(VTK_VERSION) \
59                -lvtkImagingCore-$(VTK_VERSION) \
60                -lvtkInteractionStyle-$(VTK_VERSION) \
61                -lvtkInteractionWidgets-$(VTK_VERSION) \
62                -lvtkRenderingOpenGL-$(VTK_VERSION) \
63                -lvtkRenderingImage-$(VTK_VERSION) \
64                -lvtkRenderingFreeTypeOpenGL-$(VTK_VERSION) \
65                -lvtkRenderingFreeTypeFontConfig-$(VTK_VERSION) \
66                -lvtkRenderingFreeType-$(VTK_VERSION)  \
67                -lvtkRenderingVolumeOpenGL-$(VTK_VERSION) \
68                -lvtkRenderingVolume-$(VTK_VERSION) \
69                -lvtkRenderingLabel-$(VTK_VERSION) \
70                -lvtkRenderingAnnotation-$(VTK_VERSION) \
71                -lvtkRenderingCore-$(VTK_VERSION) \
72                -lvtkCommonCore-$(VTK_VERSION) \
73                -lvtkCommonDataModel-$(VTK_VERSION) \
74                -lvtkCommonExecutionModel-$(VTK_VERSION)  \
75                -lvtkCommonMisc-$(VTK_VERSION)  \
76                -lvtkCommonTransforms-$(VTK_VERSION) \
77                -lvtkCommonMath-$(VTK_VERSION) \
78                -lvtksys-$(VTK_VERSION)
79
80ifeq ($(VTK_VERSION),6.1)
81VTK_LIB_SPEC += \
82                -lvtkRenderingLIC-$(VTK_VERSION)
83else
84VTK_LIB_SPEC += \
85                -lvtkRenderingHybridOpenGL-$(VTK_VERSION)
86endif
87
88LD_RUN_PATH     = $(VTK_LIB_DIR):$(libdir)
89
90LIBS            = \
91                $(TCL_LIB_SPEC) \
92                $(VTK_LIB_SPEC) \
93                $(GL_LIB_SPEC) \
94                $(PTHREAD_LIB_SPEC) \
95                -Wl,-rpath,$(LD_RUN_PATH) \
96                -Wl,--enable-new-dtags
97
98INCLUDES        = \
99                -I$(srcdir) \
100                $(TCL_INC_SPEC) \
101                $(VTK_INC_SPEC)
102
103#vtk uses deprecated strstream header (instead of sstream)
104EXTRA_CXXFLAGS  = -Wall -Wno-deprecated
105EXTRA_CFLAGS    = -Wall
106DEFINES         = -DSVN_VERSION=\"$(SVN_VERSION)\" -DSTATSDIR=\"$(STATSDIR)\"
107ifdef DEBUG
108DEFINES         += -DDEBUG
109CXXFLAGS        = -O0 -g
110endif
111ifdef TRACE
112DEFINES         += -DWANT_TRACE
113endif
114ifdef USE_CUSTOM_AXES
115DEFINES         += -DUSE_CUSTOM_AXES
116endif
117ifdef USE_FONT_CONFIG
118DEFINES         += -DUSE_FONT_CONFIG
119endif
120ifdef USE_OFFSCREEN_RENDERING
121DEFINES         += -DUSE_OFFSCREEN_RENDERING
122endif
123ifdef USE_GPU_RAYCASTING
124DEFINES         += -DUSE_GPU_RAYCAST_MAPPER
125endif
126ifdef USE_THREADS
127DEFINES         += -DUSE_THREADS
128endif
129ifdef USE_CPU_LEGEND_RENDER
130DEFINES         += -DLEGEND_SOFTWARE_RENDER
131endif
132ifdef NEW_SCALAR_BAR
133DEFINES         += -DNEW_SCALAR_BAR
134endif
135
136VTK_MOD_DEFS    = -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolumeOpenGL)"
137DEFINES         += -DUSE_VTK6 $(VTK_MOD_DEFS)
138
139CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEFINES) $(INCLUDES)
140CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
141
142SERVER_SRCS     = \
143                Arc.cpp \
144                Arrow.cpp \
145                Box.cpp \
146                CmdProc.cpp \
147                ColorMap.cpp \
148                Cone.cpp \
149                Contour2D.cpp \
150                Contour3D.cpp \
151                Cutplane.cpp \
152                Cylinder.cpp \
153                DataSet.cpp \
154                Disk.cpp \
155                Glyphs.cpp \
156                GraphicsObject.cpp \
157                Group.cpp \
158                HeightMap.cpp \
159                Image.cpp \
160                LIC.cpp \
161                Line.cpp \
162                Molecule.cpp \
163                Outline.cpp \
164                Parallelepiped.cpp \
165                PolyData.cpp \
166                Polygon.cpp \
167                PPMWriter.cpp \
168                PseudoColor.cpp \
169                ReadBuffer.cpp \
170                Renderer.cpp \
171                RendererCmd.cpp \
172                RendererGraphicsObjs.cpp \
173                RenderServer.cpp \
174                Shape.cpp \
175                Sphere.cpp \
176                Streamlines.cpp \
177                Text3D.cpp \
178                TGAWriter.cpp \
179                Trace.cpp \
180                Volume.cpp \
181                Warp.cpp
182
183ifdef USE_CUSTOM_AXES
184SERVER_SRCS+= \
185        vtkRpAxisActor.cpp \
186        vtkRpAxisFollower.cpp \
187        vtkRpCubeAxesActor.cpp
188endif
189ifdef USE_THREADS
190SERVER_SRCS+=ResponseQueue.cpp
191endif
192
193SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
194SERVER_OBJS+= md5.o
195SERVER=vtkvis
196
197.PHONY: all docs install clean clean-docs distclean
198
199all: $(SERVER)
200
201docs:
202        $(MKDIR_P) -m 0755 docs/doxygen
203        doxygen
204
205$(SERVER): $(SERVER_OBJS)
206        $(CXX) -o $@ $(SERVER_OBJS) $(LIBS)
207
208install: all
209        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
210
211%.o: %.cpp
212        $(CXX) $(CXX_SWITCHES) -c $< -o $@
213
214%.o: %.c
215        $(CC) $(CC_SWITCHES) -c $< -o $@
216
217clean:
218        $(RM) *~ *.o $(SERVER)
219
220clean-docs:
221        $(RM) -r docs
222
223distclean: clean clean-docs
224        $(RM) Makefile Doxyfile
225
226Arc.o: Arc.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
227Arrow.o: Arrow.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
228Box.o: Box.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
229CmdProc.o: CmdProc.h
230ColorMap.o: ColorMap.h Molecule.h Trace.h
231Cone.o: Cone.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
232Contour2D.o: Contour2D.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
233Contour3D.o: Contour3D.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
234Cutplane.o: Cutplane.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
235Cylinder.o: Cylinder.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
236DataSet.o: DataSet.h Trace.h
237Disk.o: Disk.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
238Glyphs.o: Glyphs.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
239GraphicsObject.o: GraphicsObject.h Renderer.h DataSet.h ColorMap.h Math.h Trace.h
240Group.o: Group.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
241HeightMap.o: HeightMap.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
242Image.o: Image.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
243LIC.o: LIC.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h RenderServer.h
244Line.o: Line.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
245md5.o: md5.h
246Molecule.o: Molecule.h MoleculeData.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
247Outline.o: Outline.h GraphicsObject.h Math.h DataSet.h Trace.h
248Parallelepiped.o: Parallelepiped.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
249PolyData.o: PolyData.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
250Polygon.o: Polygon.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
251PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h
252PseudoColor.o: PseudoColor.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
253ReadBuffer.o: ReadBuffer.h Trace.h
254Renderer.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h Math.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h
255RendererCmd.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h
256RendererGraphicsObjs.o: Renderer.h RendererGraphicsObjs.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h Image.h LIC.h Line.h Molecule.h Outline.h Parallelepiped.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Text3D.h Volume.h Warp.h ColorMap.h Trace.h
257RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
258ResponseQueue.o: ResponseQueue.h Trace.h
259Shape.o: Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
260Sphere.o: Sphere.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
261Streamlines.o: Streamlines.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
262Text3D.o: Text3D.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
263TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h
264Trace.o: Trace.h
265Volume.o: Volume.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
266vtkRpAxisActor.o: vtkRpAxisActor.h
267vtkRpAxisFollower.o: vtkRpAxisFollower.h vtkRpAxisActor.h
268vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h
269Warp.o: Warp.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
Note: See TracBrowser for help on using the repository browser.