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 $(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 | Arc.cpp \ |
---|
140 | Arrow.cpp \ |
---|
141 | Box.cpp \ |
---|
142 | CmdProc.cpp \ |
---|
143 | ColorMap.cpp \ |
---|
144 | Cone.cpp \ |
---|
145 | Contour2D.cpp \ |
---|
146 | Contour3D.cpp \ |
---|
147 | Cutplane.cpp \ |
---|
148 | Cylinder.cpp \ |
---|
149 | DataSet.cpp \ |
---|
150 | Disk.cpp \ |
---|
151 | Glyphs.cpp \ |
---|
152 | GraphicsObject.cpp \ |
---|
153 | Group.cpp \ |
---|
154 | HeightMap.cpp \ |
---|
155 | LIC.cpp \ |
---|
156 | Line.cpp \ |
---|
157 | Molecule.cpp \ |
---|
158 | Outline.cpp \ |
---|
159 | PolyData.cpp \ |
---|
160 | Polygon.cpp \ |
---|
161 | PPMWriter.cpp \ |
---|
162 | PseudoColor.cpp \ |
---|
163 | ReadBuffer.cpp \ |
---|
164 | Renderer.cpp \ |
---|
165 | RendererCmd.cpp \ |
---|
166 | RendererGraphicsObjs.cpp \ |
---|
167 | RenderServer.cpp \ |
---|
168 | Shape.cpp \ |
---|
169 | Sphere.cpp \ |
---|
170 | Streamlines.cpp \ |
---|
171 | TGAWriter.cpp \ |
---|
172 | Trace.cpp \ |
---|
173 | Volume.cpp \ |
---|
174 | Warp.cpp |
---|
175 | |
---|
176 | ifdef USE_CUSTOM_AXES |
---|
177 | SERVER_SRCS+= \ |
---|
178 | vtkRpAxisActor.cpp \ |
---|
179 | vtkRpAxisFollower.cpp \ |
---|
180 | vtkRpCubeAxesActor.cpp |
---|
181 | endif |
---|
182 | ifdef USE_THREADS |
---|
183 | SERVER_SRCS+=ResponseQueue.cpp |
---|
184 | endif |
---|
185 | |
---|
186 | SERVER_OBJS=$(SERVER_SRCS:.cpp=.o) |
---|
187 | SERVER_OBJS+= md5.o |
---|
188 | SERVER=vtkvis |
---|
189 | |
---|
190 | .PHONY: all docs install clean clean-docs distclean |
---|
191 | |
---|
192 | all: $(SERVER) |
---|
193 | |
---|
194 | docs: |
---|
195 | $(MKDIR_P) -m 0755 docs/doxygen |
---|
196 | doxygen |
---|
197 | |
---|
198 | $(SERVER): $(SERVER_OBJS) |
---|
199 | $(CXX) $(LIBS) -o $@ $(SERVER_OBJS) |
---|
200 | |
---|
201 | install: all |
---|
202 | $(INSTALL_PROGRAM) $(SERVER) $(bindir) |
---|
203 | |
---|
204 | %.o: %.cpp |
---|
205 | $(CXX) $(CXX_SWITCHES) -c $< -o $@ |
---|
206 | |
---|
207 | %.o: %.c |
---|
208 | $(CC) $(CC_SWITCHES) -c $< -o $@ |
---|
209 | |
---|
210 | clean: |
---|
211 | $(RM) *~ *.o $(SERVER) |
---|
212 | |
---|
213 | clean-docs: |
---|
214 | $(RM) -r docs |
---|
215 | |
---|
216 | distclean: clean clean-docs |
---|
217 | $(RM) Makefile Doxyfile |
---|
218 | |
---|
219 | Arc.o: Arc.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
220 | Arrow.o: Arrow.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
221 | Box.o: Box.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
222 | CmdProc.o: CmdProc.h |
---|
223 | ColorMap.o: ColorMap.h Molecule.h Trace.h |
---|
224 | Cone.o: Cone.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
225 | Contour2D.o: Contour2D.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
226 | Contour3D.o: Contour3D.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
227 | Cutplane.o: Cutplane.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
228 | Cylinder.o: Cylinder.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
229 | DataSet.o: DataSet.h Trace.h |
---|
230 | Disk.o: Disk.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
231 | Glyphs.o: Glyphs.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
232 | GraphicsObject.o: GraphicsObject.h Renderer.h DataSet.h ColorMap.h Trace.h |
---|
233 | Group.o: Group.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
234 | HeightMap.o: HeightMap.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
235 | LIC.o: LIC.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h RenderServer.h |
---|
236 | Line.o: Line.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
237 | md5.o: md5.h |
---|
238 | Molecule.o: Molecule.h MoleculeData.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
239 | Outline.o: Outline.h GraphicsObject.h DataSet.h Trace.h |
---|
240 | PolyData.o: PolyData.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
241 | Polygon.o: Polygon.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
242 | PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h |
---|
243 | PseudoColor.o: PseudoColor.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
244 | ReadBuffer.o: ReadBuffer.h Trace.h |
---|
245 | 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 LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h Warp.h ColorMap.h Trace.h |
---|
246 | 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 LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h Warp.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h |
---|
247 | 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 LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h Warp.h ColorMap.h Trace.h |
---|
248 | RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h |
---|
249 | ResponseQueue.o: ResponseQueue.h Trace.h |
---|
250 | Shape.o: Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
251 | Sphere.o: Sphere.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h |
---|
252 | Streamlines.o: Streamlines.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
253 | TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h |
---|
254 | Trace.o: Trace.h |
---|
255 | Volume.o: Volume.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|
256 | vtkRpAxisActor.o: vtkRpAxisActor.h |
---|
257 | vtkRpAxisFollower.o: vtkRpAxisFollower.h vtkRpAxisActor.h |
---|
258 | vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h |
---|
259 | Warp.o: Warp.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h |
---|