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