1 | DEBUG = #yes |
---|
2 | TRACE = #yes |
---|
3 | USE_CUSTOM_AXES = #yes |
---|
4 | USE_GPU_RAYCASTING = yes |
---|
5 | USE_OFFSCREEN_RENDERING = yes |
---|
6 | USE_THREADS = yes |
---|
7 | USE_VTK6 = yes |
---|
8 | |
---|
9 | bindir = @bindir@ |
---|
10 | datadir = @datadir@ |
---|
11 | datarootdir = @datarootdir@ |
---|
12 | exec_prefix = @exec_prefix@ |
---|
13 | includedir = @includedir@ |
---|
14 | libdir = @libdir@ |
---|
15 | mandir = @mandir@ |
---|
16 | prefix = @prefix@ |
---|
17 | srcdir = @srcdir@ |
---|
18 | |
---|
19 | CC = @CC@ |
---|
20 | CXX = @CXX@ |
---|
21 | CFLAGS = @CFLAGS@ |
---|
22 | CXXFLAGS = @CXXFLAGS@ |
---|
23 | |
---|
24 | VPATH = $(srcdir) |
---|
25 | |
---|
26 | INSTALL = @INSTALL@ |
---|
27 | INSTALL_PROGRAM = ${INSTALL} -m 0755 |
---|
28 | INSTALL_DATA = ${INSTALL} -m 0644 |
---|
29 | INSTALL_SCRIPT = ${INSTALL} -m 0644 |
---|
30 | MKDIR_P = @MKDIR_P@ |
---|
31 | |
---|
32 | SVN_VERSION = $(shell svnversion $(srcdir)) |
---|
33 | STATSDIR = @STATSDIR@ |
---|
34 | |
---|
35 | GL_LIB_SPEC = -lGL -lm |
---|
36 | PTHREAD_LIB_SPEC= -lpthread |
---|
37 | |
---|
38 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
39 | TCL_INC_SPEC = @TCL_INC_SPEC@ |
---|
40 | |
---|
41 | VTK_LIB_DIR = @VTK_LIB_DIR@ |
---|
42 | VTK_LIB_SPEC = -L$(VTK_LIB_DIR) \ |
---|
43 | -lvtkChemistry \ |
---|
44 | -lvtkIO \ |
---|
45 | -lvtkWidgets \ |
---|
46 | -lvtkFiltering \ |
---|
47 | -lvtkVolumeRendering \ |
---|
48 | -lvtkRendering \ |
---|
49 | -lvtkHybrid \ |
---|
50 | -lvtkGraphics \ |
---|
51 | -lvtkImaging \ |
---|
52 | -lvtkCommon |
---|
53 | VTK_INC_SPEC = @VTK_INC_SPEC@ |
---|
54 | VTK6_LIB_SPEC = \ |
---|
55 | -lvtkDomainsChemistry-6.0 \ |
---|
56 | -lvtkIOCore-6.0 \ |
---|
57 | -lvtkIOLegacy-6.0 \ |
---|
58 | -lvtkFiltersModeling-6.0 \ |
---|
59 | -lvtkFiltersFlowPaths-6.0 \ |
---|
60 | -lvtkFiltersGeometry-6.0 \ |
---|
61 | -lvtkFiltersSources-6.0 \ |
---|
62 | -lvtkFiltersGeneral-6.0 \ |
---|
63 | -lvtkFiltersCore-6.0 \ |
---|
64 | -lvtkImagingHybrid-6.0 \ |
---|
65 | -lvtkImagingCore-6.0 \ |
---|
66 | -lvtkInteractionStyle-6.0 \ |
---|
67 | -lvtkInteractionWidgets-6.0 \ |
---|
68 | -lvtkRenderingOpenGL-6.0 \ |
---|
69 | -lvtkRenderingHybridOpenGL-6.0 \ |
---|
70 | -lvtkRenderingFreeTypeOpenGL-6.0 \ |
---|
71 | -lvtkRenderingFreeType-6.0 \ |
---|
72 | -lvtkRenderingVolumeOpenGL-6.0 \ |
---|
73 | -lvtkRenderingVolume-6.0 \ |
---|
74 | -lvtkRenderingLabel-6.0 \ |
---|
75 | -lvtkRenderingAnnotation-6.0 \ |
---|
76 | -lvtkRenderingCore-6.0 \ |
---|
77 | -lvtkCommonCore-6.0 \ |
---|
78 | -lvtkCommonDataModel-6.0 \ |
---|
79 | -lvtkCommonExecutionModel-6.0 \ |
---|
80 | -lvtkCommonMisc-6.0 \ |
---|
81 | -lvtkCommonTransforms-6.0 \ |
---|
82 | -lvtkCommonMath-6.0 |
---|
83 | |
---|
84 | ifdef USE_VTK6 |
---|
85 | VTK_LIB_SPEC = $(VTK6_LIB_SPEC) |
---|
86 | endif |
---|
87 | |
---|
88 | ifdef USE_VTK6 |
---|
89 | LD_RUN_PATH = $(libdir) |
---|
90 | else |
---|
91 | LD_RUN_PATH = $(libdir):$(VTK_LIB_DIR) |
---|
92 | endif |
---|
93 | |
---|
94 | LIBS = \ |
---|
95 | $(TCL_LIB_SPEC) \ |
---|
96 | $(VTK_LIB_SPEC) \ |
---|
97 | $(GL_LIB_SPEC) \ |
---|
98 | $(PTHREAD_LIB_SPEC) \ |
---|
99 | -Wl,-rpath,$(LD_RUN_PATH) \ |
---|
100 | -Wl,--enable-new-dtags |
---|
101 | |
---|
102 | INCLUDES = \ |
---|
103 | -I$(srcdir) \ |
---|
104 | $(TCL_INC_SPEC) \ |
---|
105 | $(VTK_INC_SPEC) |
---|
106 | |
---|
107 | #vtk uses deprecated strstream header (instead of sstream) |
---|
108 | EXTRA_CXXFLAGS = -Wall -Wno-deprecated |
---|
109 | EXTRA_CFLAGS = -Wall |
---|
110 | DEFINES = -DSVN_VERSION=\"$(SVN_VERSION)\" -DSTATSDIR=\"$(STATSDIR)\" |
---|
111 | ifdef DEBUG |
---|
112 | DEFINES += -DDEBUG |
---|
113 | CXXFLAGS = -O0 -g |
---|
114 | endif |
---|
115 | ifdef TRACE |
---|
116 | DEFINES += -DWANT_TRACE |
---|
117 | endif |
---|
118 | ifdef USE_CUSTOM_AXES |
---|
119 | DEFINES += -DUSE_CUSTOM_AXES |
---|
120 | endif |
---|
121 | ifdef USE_OFFSCREEN_RENDERING |
---|
122 | DEFINES += -DUSE_OFFSCREEN_RENDERING |
---|
123 | endif |
---|
124 | ifdef USE_GPU_RAYCASTING |
---|
125 | DEFINES += -DUSE_GPU_RAYCAST_MAPPER |
---|
126 | endif |
---|
127 | ifdef USE_THREADS |
---|
128 | DEFINES += -DUSE_THREADS |
---|
129 | endif |
---|
130 | ifdef USE_VTK6 |
---|
131 | VTK_MOD_DEFS = -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)" -DvtkRenderingVolume_AUTOINIT"1(vtkRenderingVolumeOpenGL)" |
---|
132 | DEFINES += -DUSE_VTK6 -DVTK_HYBRID_EXPORT="" -DVTK_RENDERING_EXPORT="" $(VTK_MOD_DEFS) |
---|
133 | endif |
---|
134 | |
---|
135 | CXX_SWITCHES = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEFINES) $(INCLUDES) |
---|
136 | CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) |
---|
137 | |
---|
138 | SERVER_SRCS = \ |
---|
139 | CmdProc.cpp \ |
---|
140 | ColorMap.cpp \ |
---|
141 | PPMWriter.cpp \ |
---|
142 | ReadBuffer.cpp \ |
---|
143 | RpArc.cpp \ |
---|
144 | RpArrow.cpp \ |
---|
145 | RpBox.cpp \ |
---|
146 | RpCone.cpp \ |
---|
147 | RpContour2D.cpp \ |
---|
148 | RpContour3D.cpp \ |
---|
149 | RpCutplane.cpp \ |
---|
150 | RpCylinder.cpp \ |
---|
151 | RpDisk.cpp \ |
---|
152 | RpGlyphs.cpp \ |
---|
153 | RpGroup.cpp \ |
---|
154 | RpHeightMap.cpp \ |
---|
155 | RpLine.cpp \ |
---|
156 | RpLIC.cpp \ |
---|
157 | RpMolecule.cpp \ |
---|
158 | RpPolyData.cpp \ |
---|
159 | RpPolygon.cpp \ |
---|
160 | RpPseudoColor.cpp \ |
---|
161 | RpShape.cpp \ |
---|
162 | RpSphere.cpp \ |
---|
163 | RpStreamlines.cpp \ |
---|
164 | RpVolume.cpp \ |
---|
165 | RpVtkDataSet.cpp \ |
---|
166 | RpVtkGraphicsObject.cpp \ |
---|
167 | RpVtkRenderer.cpp \ |
---|
168 | RpVtkRendererCmd.cpp \ |
---|
169 | RpVtkRendererGraphicsObjs.cpp \ |
---|
170 | RpVtkRenderServer.cpp \ |
---|
171 | RpWarp.cpp \ |
---|
172 | TGAWriter.cpp \ |
---|
173 | Trace.cpp |
---|
174 | |
---|
175 | ifdef USE_CUSTOM_AXES |
---|
176 | SERVER_SRCS+= \ |
---|
177 | vtkRpAxisActor.cpp \ |
---|
178 | vtkRpAxisActor2D.cpp \ |
---|
179 | vtkRpCubeAxesActor.cpp |
---|
180 | endif |
---|
181 | ifdef USE_THREADS |
---|
182 | SERVER_SRCS+=ResponseQueue.cpp |
---|
183 | endif |
---|
184 | |
---|
185 | SERVER_OBJS=$(SERVER_SRCS:.cpp=.o) |
---|
186 | SERVER_OBJS+= md5.o |
---|
187 | SERVER=vtkvis |
---|
188 | |
---|
189 | .PHONY: all docs install clean clean-docs distclean |
---|
190 | |
---|
191 | all: $(SERVER) |
---|
192 | |
---|
193 | docs: |
---|
194 | $(MKDIR_P) -m 0755 docs/doxygen |
---|
195 | doxygen |
---|
196 | |
---|
197 | $(SERVER): $(SERVER_OBJS) |
---|
198 | $(CXX) $(LIBS) -o $@ $(SERVER_OBJS) |
---|
199 | |
---|
200 | install: all |
---|
201 | $(INSTALL_PROGRAM) $(SERVER) $(bindir) |
---|
202 | |
---|
203 | %.o: %.cpp |
---|
204 | $(CXX) $(CXX_SWITCHES) -c $< -o $@ |
---|
205 | |
---|
206 | %.o: %.c |
---|
207 | $(CC) $(CC_SWITCHES) -c $< -o $@ |
---|
208 | |
---|
209 | clean: |
---|
210 | $(RM) *~ *.o $(SERVER) |
---|
211 | |
---|
212 | clean-docs: |
---|
213 | $(RM) -r docs |
---|
214 | |
---|
215 | distclean: clean clean-docs |
---|
216 | $(RM) Makefile Doxyfile |
---|
217 | |
---|
218 | CmdProc.o: CmdProc.h |
---|
219 | ColorMap.o: ColorMap.h RpMolecule.h Trace.h |
---|
220 | PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h |
---|
221 | ReadBuffer.o: ReadBuffer.h Trace.h |
---|
222 | ResponseQueue.o: ResponseQueue.h Trace.h |
---|
223 | RpArc.o: RpArc.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
224 | RpArrow.o: RpArrow.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
225 | RpBox.o: RpBox.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
226 | RpCone.o: RpCone.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
227 | RpContour2D.o: RpContour2D.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
228 | RpContour3D.o: RpContour3D.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
229 | RpCutplane.o: RpCutplane.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
230 | RpCylinder.o: RpCylinder.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
231 | RpDisk.o: RpDisk.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
232 | RpGlyphs.o: RpGlyphs.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
233 | RpGroup.o: RpGroup.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
234 | RpHeightMap.o: RpHeightMap.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
235 | RpLine.o: RpLine.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
236 | RpLIC.o: RpLIC.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h RpVtkRenderServer.h |
---|
237 | RpMolecule.o: RpMolecule.h RpMoleculeData.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
238 | RpMolecule2.o: RpMolecule2.h RpMoleculeData.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
239 | RpPolyData.o: RpPolyData.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
240 | RpPolygon.o: RpPolygon.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
241 | RpPseudoColor.o: RpPseudoColor.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
242 | RpShape.o: RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
243 | RpSphere.o: RpSphere.h RpShape.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h Trace.h |
---|
244 | RpStreamlines.o: RpStreamlines.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
245 | RpVolume.o: RpVolume.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
246 | RpVtkDataSet.o: RpVtkDataSet.h Trace.h |
---|
247 | RpVtkGraphicsObject.o: RpVtkGraphicsObject.h RpVtkRenderer.h RpVtkDataSet.h ColorMap.h Trace.h |
---|
248 | RpVtkRenderer.o: RpVtkRenderer.h RpVtkRendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisActor.h vtkRpAxisActor2D.h RpMath.h RpVtkDataSet.h RpArc.h RpArrow.h RpBox.h RpCone.h RpContour2D.h RpContour3D.h RpCutplane.h RpCylinder.h RpDisk.h RpGlyphs.h RpGroup.h RpHeightMap.h RpLIC.h RpLine.h RpMolecule.h RpPolyData.h RpPolygon.h RpPseudoColor.h RpSphere.h RpStreamlines.h RpVolume.h ColorMap.h Trace.h |
---|
249 | RpVtkRendererCmd.o: RpVtkRenderer.h RpVtkRendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisActor.h vtkRpAxisActor2D.h RpVtkDataSet.h RpArc.h RpArrow.h RpBox.h RpCone.h RpContour2D.h RpContour3D.h RpCutplane.h RpCylinder.h RpDisk.h RpGlyphs.h RpGroup.h RpHeightMap.h RpLIC.h RpLine.h RpMolecule.h RpPolyData.h RpPolygon.h RpPseudoColor.h RpSphere.h RpStreamlines.h RpVolume.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h |
---|
250 | RpVtkRendererGraphicsObjs.o: RpVtkRenderer.h RpVtkRendererGraphicsObjs.h RpVtkDataSet.h RpArc.h RpArrow.h RpBox.h RpCone.h RpContour2D.h RpContour3D.h RpCutplane.h RpCylinder.h RpDisk.h RpGlyphs.h RpGroup.h RpHeightMap.h RpLIC.h RpLine.h RpMolecule.h RpPolyData.h RpPolygon.h RpPseudoColor.h RpSphere.h RpStreamlines.h RpVolume.h ColorMap.h Trace.h |
---|
251 | RpVtkRenderServer.o: RpVtkRenderServer.h RpVtkRendererCmd.h RpVtkRenderer.h vtkRpCubeAxesActor.h vtkRpAxisActor.h vtkRpAxisActor2D.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h |
---|
252 | RpWarp.o: RpWarp.h RpVtkGraphicsObject.h RpVtkDataSet.h RpVtkRenderer.h ColorMap.h Trace.h |
---|
253 | Trace.o: Trace.h |
---|
254 | TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h |
---|
255 | vtkRpAxisActor.o: vtkRpAxisActor.h |
---|
256 | vtkRpAxisActor2D.o: vtkRpAxisActor2D.h |
---|
257 | vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisActor.h vtkRpAxisActor2D.h |
---|
258 | md5.o: md5.h |
---|