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