1 | TRACE = #yes |
---|
2 | USE_THREADS = yes |
---|
3 | USE_POINTSET_RENDERER = #yes |
---|
4 | |
---|
5 | SHELL = /bin/sh |
---|
6 | |
---|
7 | bindir = @bindir@ |
---|
8 | datadir = @datadir@ |
---|
9 | datarootdir = @datarootdir@ |
---|
10 | exec_prefix = @exec_prefix@ |
---|
11 | includedir = @includedir@ |
---|
12 | libdir = @libdir@ |
---|
13 | mandir = @mandir@ |
---|
14 | prefix = @prefix@ |
---|
15 | srcdir = @srcdir@ |
---|
16 | |
---|
17 | VPATH = $(srcdir) |
---|
18 | |
---|
19 | INSTALL = @INSTALL@ |
---|
20 | MKDIR_P = @MKDIR_P@ |
---|
21 | |
---|
22 | #Why are these files installed owner writable? |
---|
23 | INSTALL_PROGRAM = ${INSTALL} -m 0555 |
---|
24 | INSTALL_DATA = ${INSTALL} -m 0444 |
---|
25 | INSTALL_SCRIPT = ${INSTALL} -m 0444 |
---|
26 | RM = rm -f |
---|
27 | |
---|
28 | CG_INC_SPEC = @CG_INC_SPEC@ |
---|
29 | CG_LIB_SPEC = @CG_LIB_SPEC@ |
---|
30 | |
---|
31 | GL_INC_SPEC = |
---|
32 | GL_LIB_SPEC = -lGL -lglut -lGLEW -lGLU |
---|
33 | GRAPHICS_DIR = ./graphics |
---|
34 | GRAPHICS_INC_SPEC = -I$(srcdir)/$(GRAPHICS_DIR)/include |
---|
35 | GRAPHICS_LIB = $(GRAPHICS_DIR)/nvgraphics.a |
---|
36 | GRAPHICS_LIB_SPEC = $(GRAPHICS_LIB) |
---|
37 | IMG_DIR = ./imgLoaders |
---|
38 | IMG_INC_SPEC = -I$(srcdir)/$(IMG_DIR) |
---|
39 | IMG_LIB = $(IMG_DIR)/ImageLoaders.a |
---|
40 | IMG_LIB_SPEC = $(IMG_LIB) |
---|
41 | MAT_DIR = ./newmat11 |
---|
42 | MAT_INC_SPEC = -I$(srcdir)/$(MAT_DIR) |
---|
43 | MAT_LIB = $(MAT_DIR)/newmat11.a |
---|
44 | MAT_LIB_SPEC = $(MAT_LIB) |
---|
45 | UTIL_DIR = ./util |
---|
46 | UTIL_INC_SPEC = -I$(srcdir)/$(UTIL_DIR) |
---|
47 | UTIL_LIB = $(UTIL_DIR)/nvutil.a |
---|
48 | UTIL_LIB_SPEC = $(UTIL_LIB) |
---|
49 | VRMATH_DIR = ./vrmath |
---|
50 | VRMATH_INC_SPEC = -I$(srcdir)/$(VRMATH_DIR)/include |
---|
51 | VRMATH_LIB = $(VRMATH_DIR)/vrmath.a |
---|
52 | VRMATH_LIB_SPEC = $(VRMATH_LIB) |
---|
53 | |
---|
54 | EXTRA_LIBS = -lm -lpthread |
---|
55 | RP_DIR = @RP_DIR@ |
---|
56 | RP_INC_SPEC = -I$(RP_DIR)/include -I$(RP_DIR)/include/rappture2 |
---|
57 | RP_LIB_SPEC = -L$(RP_DIR)/lib -lrappture2 -lrappture -lexpat -lz |
---|
58 | |
---|
59 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
60 | TCL_INC_SPEC = @TCL_INC_SPEC@ |
---|
61 | |
---|
62 | LD_RUN_PATH = $(libdir):@LD_RPATH@ |
---|
63 | |
---|
64 | SVN_VERSION = $(shell svnversion $(srcdir)) |
---|
65 | STATSDIR = @STATSDIR@ |
---|
66 | |
---|
67 | LIBS = \ |
---|
68 | $(RP_LIB_SPEC) \ |
---|
69 | $(GRAPHICS_LIB_SPEC) \ |
---|
70 | $(IMG_LIB_SPEC) \ |
---|
71 | $(MAT_LIB_SPEC) \ |
---|
72 | $(UTIL_LIB_SPEC) \ |
---|
73 | $(VRMATH_LIB_SPEC) \ |
---|
74 | $(TCL_LIB_SPEC) \ |
---|
75 | $(CG_LIB_SPEC) \ |
---|
76 | $(GL_LIB_SPEC) \ |
---|
77 | $(EXTRA_LIBS) \ |
---|
78 | -Wl,-rpath,$(LD_RUN_PATH) |
---|
79 | |
---|
80 | INCLUDES = \ |
---|
81 | -I. \ |
---|
82 | -I$(srcdir) \ |
---|
83 | $(IMG_INC_SPEC) \ |
---|
84 | $(MAT_INC_SPEC) \ |
---|
85 | $(VRMATH_INC_SPEC) \ |
---|
86 | $(TCL_INC_SPEC) \ |
---|
87 | $(CG_INC_SPEC) \ |
---|
88 | $(GL_INC_SPEC) \ |
---|
89 | $(RP_INC_SPEC) |
---|
90 | |
---|
91 | CC = @CC@ |
---|
92 | CXX = @CXX@ |
---|
93 | CFLAGS = @CFLAGS@ |
---|
94 | EXTRA_CFLAGS = -Wall |
---|
95 | DEFINES = -DSVN_VERSION=\"$(SVN_VERSION)\" -DSTATSDIR=\"$(STATSDIR)\" |
---|
96 | ifdef TRACE |
---|
97 | DEFINES += -DWANT_TRACE |
---|
98 | endif |
---|
99 | ifdef USE_THREADS |
---|
100 | DEFINES += -DUSE_THREADS |
---|
101 | endif |
---|
102 | ifdef USE_POINTSET_RENDERER |
---|
103 | DEFINES += -DUSE_POINTSET_RENDERER |
---|
104 | endif |
---|
105 | CXX_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) |
---|
106 | |
---|
107 | OBJS = \ |
---|
108 | Axis.o \ |
---|
109 | BMPWriter.o \ |
---|
110 | Camera.o \ |
---|
111 | Chain.o \ |
---|
112 | CmdProc.o \ |
---|
113 | ColorTableShader.o \ |
---|
114 | Command.o \ |
---|
115 | ContourLineFilter.o \ |
---|
116 | ConvexPolygon.o \ |
---|
117 | Flow.o \ |
---|
118 | FlowBox.o \ |
---|
119 | FlowCmd.o \ |
---|
120 | FlowParticles.o \ |
---|
121 | GradientFilter.o \ |
---|
122 | Grid.o \ |
---|
123 | HeightMap.o \ |
---|
124 | LIC.o \ |
---|
125 | OrientationIndicator.o \ |
---|
126 | ParticleAdvectionShader.o \ |
---|
127 | ParticleRenderer.o \ |
---|
128 | PerfQuery.o \ |
---|
129 | Plane.o \ |
---|
130 | PlaneRenderer.o \ |
---|
131 | PPMWriter.o \ |
---|
132 | ReadBuffer.o \ |
---|
133 | ReaderCommon.o \ |
---|
134 | RegularVolumeShader.o \ |
---|
135 | RenderVertexArray.o \ |
---|
136 | ResponseQueue.o \ |
---|
137 | Shader.o \ |
---|
138 | StdVertexShader.o \ |
---|
139 | Switch.o \ |
---|
140 | Texture1D.o \ |
---|
141 | Texture2D.o \ |
---|
142 | Texture3D.o \ |
---|
143 | Trace.o \ |
---|
144 | TransferFunction.o \ |
---|
145 | Unirect.o \ |
---|
146 | VelocityArrowsSlice.o \ |
---|
147 | Volume.o \ |
---|
148 | VolumeInterpolator.o \ |
---|
149 | VolumeRenderer.o \ |
---|
150 | VolumeShader.o \ |
---|
151 | VtkReader.o \ |
---|
152 | ZincBlendeReconstructor.o \ |
---|
153 | ZincBlendeVolume.o \ |
---|
154 | ZincBlendeVolumeShader.o \ |
---|
155 | dxReader.o \ |
---|
156 | md5.o \ |
---|
157 | nanovis.o \ |
---|
158 | nanovisServer.o |
---|
159 | |
---|
160 | resources = \ |
---|
161 | $(srcdir)/resources/arrows.bmp \ |
---|
162 | $(srcdir)/resources/particle2.bmp \ |
---|
163 | $(srcdir)/resources/verdana.fnt \ |
---|
164 | $(srcdir)/resources/verdana_bold.fnt |
---|
165 | |
---|
166 | shaders = \ |
---|
167 | $(srcdir)/shaders/common.cg \ |
---|
168 | $(srcdir)/shaders/cutplane_fp.cg \ |
---|
169 | $(srcdir)/shaders/cutplane_vp.cg \ |
---|
170 | $(srcdir)/shaders/heightcolor.cg \ |
---|
171 | $(srcdir)/shaders/one_plane.cg \ |
---|
172 | $(srcdir)/shaders/one_volume.cg \ |
---|
173 | $(srcdir)/shaders/particle_common.cg \ |
---|
174 | $(srcdir)/shaders/queryvelocity.cg \ |
---|
175 | $(srcdir)/shaders/render_vel.cg \ |
---|
176 | $(srcdir)/shaders/update_pos.cg \ |
---|
177 | $(srcdir)/shaders/velocityslicefp.cg \ |
---|
178 | $(srcdir)/shaders/velocityslicevp.cg \ |
---|
179 | $(srcdir)/shaders/vertex_std.cg \ |
---|
180 | $(srcdir)/shaders/zincblende_volume.cg |
---|
181 | |
---|
182 | ifdef NOTDEF |
---|
183 | OBJS += ParticleEmitter.o \ |
---|
184 | ParticleSystem.o \ |
---|
185 | ParticleSystemFactory.o |
---|
186 | |
---|
187 | shaders += $(srcdir)/shaders/passthrough.cg \ |
---|
188 | $(srcdir)/shaders/distance.cg \ |
---|
189 | $(srcdir)/shaders/mergesort.cg \ |
---|
190 | $(srcdir)/shaders/moveparticles.cg \ |
---|
191 | $(srcdir)/shaders/particlefp.cg \ |
---|
192 | $(srcdir)/shaders/particlevp.cg |
---|
193 | endif |
---|
194 | |
---|
195 | ifdef USE_POINTSET_RENDERER |
---|
196 | OBJS += BucketSort.o \ |
---|
197 | PCASplit.o \ |
---|
198 | PointSet.o \ |
---|
199 | PointSetRenderer.o \ |
---|
200 | PointShader.o |
---|
201 | |
---|
202 | shaders += $(srcdir)/shaders/pointsvp.cg |
---|
203 | endif |
---|
204 | |
---|
205 | .PHONY: all install install-resources install-shaders install-nanovis docs clean-docs clean distclean graphics imgloaders newmat11 util vrmath |
---|
206 | |
---|
207 | all: newmat11 graphics imgloaders util vrmath nanovis |
---|
208 | |
---|
209 | install: install-nanovis install-resources install-shaders |
---|
210 | |
---|
211 | docs: |
---|
212 | $(MKDIR_P) -m 0755 docs/doxygen |
---|
213 | doxygen |
---|
214 | |
---|
215 | graphics: $(GRAPHICS_LIB) |
---|
216 | imgloaders: $(IMG_LIB) |
---|
217 | newmat11: $(MAT_LIB) |
---|
218 | util: $(UTIL_LIB) |
---|
219 | vrmath: $(VRMATH_LIB) |
---|
220 | |
---|
221 | $(GRAPHICS_LIB): |
---|
222 | $(MAKE) -C $(GRAPHICS_DIR) all |
---|
223 | |
---|
224 | $(IMG_LIB): |
---|
225 | $(MAKE) -C $(IMG_DIR) all |
---|
226 | |
---|
227 | $(MAT_LIB): |
---|
228 | $(MAKE) -C $(MAT_DIR) all |
---|
229 | |
---|
230 | $(UTIL_LIB): |
---|
231 | $(MAKE) -C $(UTIL_DIR) all |
---|
232 | |
---|
233 | $(VRMATH_LIB): |
---|
234 | $(MAKE) -C $(VRMATH_DIR) all |
---|
235 | |
---|
236 | nanovis: $(MAT_LIB) $(GRAPHICS_LIB) $(IMG_LIB) $(UTIL_LIB) $(VRMATH_LIB) $(OBJS) |
---|
237 | $(CXX) $(CXX_SWITCHES) -o $@ $^ $(LIBS) |
---|
238 | |
---|
239 | .cpp.o: |
---|
240 | $(CXX) $(CXX_SWITCHES) -o $@ -c $< |
---|
241 | |
---|
242 | install-resources: |
---|
243 | $(MKDIR_P) $(libdir)/resources |
---|
244 | @for i in $(resources) ; do \ |
---|
245 | echo "installing $$i..." ; \ |
---|
246 | $(INSTALL_DATA) $$i $(libdir)/resources ; \ |
---|
247 | done |
---|
248 | |
---|
249 | install-shaders: |
---|
250 | $(MKDIR_P) $(libdir)/shaders |
---|
251 | @for i in $(shaders) ; do \ |
---|
252 | echo "installing $$i..." ; \ |
---|
253 | $(INSTALL_DATA) $$i $(libdir)/shaders ; \ |
---|
254 | done |
---|
255 | |
---|
256 | install-nanovis: nanovis |
---|
257 | $(INSTALL_PROGRAM) nanovis $(bindir) |
---|
258 | |
---|
259 | clean: |
---|
260 | $(MAKE) -C $(MAT_DIR) clean |
---|
261 | $(MAKE) -C $(GRAPHICS_DIR) clean |
---|
262 | $(MAKE) -C $(IMG_DIR) clean |
---|
263 | $(MAKE) -C $(UTIL_DIR) clean |
---|
264 | $(MAKE) -C $(VRMATH_DIR) clean |
---|
265 | $(RM) nanovis client *.o |
---|
266 | |
---|
267 | clean-docs: |
---|
268 | $(RM) -r docs |
---|
269 | |
---|
270 | distclean: clean clean-docs |
---|
271 | $(MAKE) -C $(MAT_DIR) distclean |
---|
272 | $(MAKE) -C $(GRAPHICS_DIR) distclean |
---|
273 | $(MAKE) -C $(IMG_DIR) distclean |
---|
274 | $(MAKE) -C $(UTIL_DIR) distclean |
---|
275 | $(MAKE) -C $(VRMATH_DIR) distclean |
---|
276 | $(RM) Makefile nvconf.h *~ |
---|
277 | |
---|
278 | Axis.o: Axis.cpp Axis.h Chain.h |
---|
279 | BMPWriter.o: BMPWriter.cpp nanovis.h |
---|
280 | BucketSort.o: BucketSort.cpp BucketSort.h $(VRMATH_DIR)/include/vrmath/Vector3f.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h PCASplit.h |
---|
281 | Camera.o: Camera.cpp Camera.h config.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h |
---|
282 | Chain.o: Chain.cpp Chain.h |
---|
283 | CmdProc.o: CmdProc.cpp CmdProc.h |
---|
284 | ColorTableShader.o: ColorTableShader.cpp ColorTableShader.h Shader.h |
---|
285 | Command.o: Command.cpp nanovis.h config.h define.h FlowCmd.h CmdProc.h Trace.h PlaneRenderer.h PPMWriter.h BMPWriter.h dxReader.h Grid.h HeightMap.h Camera.h ZincBlendeReconstructor.h OrientationIndicator.h Unirect.h Volume.h VolumeRenderer.h |
---|
286 | ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h |
---|
287 | ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h Plane.h |
---|
288 | Flow.o: Flow.cpp Flow.h FlowCmd.h FlowTypes.h FlowBox.h FlowParticles.h Switch.h Trace.h |
---|
289 | FlowBox.o: FlowBox.cpp FlowBox.h FlowTypes.h Switch.h Trace.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h |
---|
290 | FlowCmd.o: FlowCmd.cpp FlowCmd.h FlowParticles.h FlowBox.h FlowTypes.h Command.h PPMWriter.h Switch.h Trace.h TransferFunction.h nanovis.h CmdProc.h LIC.h Unirect.h Volume.h VelocityArrowsSlice.h $(VRMATH_DIR)/include/vrmath/Vector3f.h |
---|
291 | FlowParticles.o: FlowParticles.cpp FlowParticles.h FlowTypes.h FlowCmd.h Switch.h Trace.h ParticleRenderer.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h $(VRMATH_DIR)/include/vrmath/Vector4f.h |
---|
292 | GradientFilter.o: GradientFilter.cpp GradientFilter.h |
---|
293 | Grid.o: Grid.cpp Grid.h Axis.h Chain.h |
---|
294 | HeightMap.o: HeightMap.cpp HeightMap.h |
---|
295 | LIC.o: LIC.cpp LIC.h |
---|
296 | OrientationIndicator.o: OrientationIndicator.cpp OrientationIndicator.h |
---|
297 | ParticleAdvectionShader.o: ParticleAdvectionShader.cpp ParticleAdvectionShader.h Shader.h |
---|
298 | ParticleEmitter.o: ParticleEmitter.cpp ParticleEmitter.h |
---|
299 | ParticleRenderer.o: ParticleRenderer.cpp ParticleRenderer.h |
---|
300 | ParticleSystem.o: ParticleSystem.cpp ParticleSystem.h DataLoader.h |
---|
301 | ParticleSystemFactory.o: ParticleSystemFactory.cpp ParticleSystemFactory.h |
---|
302 | PCASplit.o: PCASplit.cpp PCASplit.h |
---|
303 | PerfQuery.o: PerfQuery.cpp PerfQuery.h |
---|
304 | Plane.o: Plane.cpp Plane.h $(VRMATH_DIR)/include/vrmath/Vector4f.h $(VRMATH_DIR)/include/vrmath/Matrix4x4d.h |
---|
305 | PlaneRenderer.o: PlaneRenderer.cpp PlaneRenderer.h |
---|
306 | PointSet.o: PointSet.cpp PointSet.h |
---|
307 | PointSetRenderer.o: PointSetRenderer.cpp PointSetRenderer.h |
---|
308 | PointShader.o: PointShader.cpp PointShader.h |
---|
309 | PPMWriter.o: PPMWriter.cpp PPMWriter.h |
---|
310 | ReaderCommon.o: ReaderCommon.cpp ReaderCommon.h GradientFilter.h $(VRMATH_DIR)/include/vrmath/Vector3f.h |
---|
311 | RegularVolumeShader.o: RegularVolumeShader.cpp RegularVolumeShader.h VolumeShader.h Shader.h |
---|
312 | RenderVertexArray.o: RenderVertexArray.cpp RenderVertexArray.h |
---|
313 | Shader.o: Shader.cpp Shader.h |
---|
314 | StdVertexShader.o: StdVertexShader.cpp StdVertexShader.h Shader.h |
---|
315 | Switch.o: Switch.cpp Switch.h |
---|
316 | Texture1D.o: Texture1D.cpp Texture1D.h |
---|
317 | Texture2D.o: Texture2D.cpp Texture2D.h config.h define.h |
---|
318 | Texture3D.o: Texture3D.cpp Texture3D.h config.h define.h |
---|
319 | Trace.o: Trace.cpp Trace.h |
---|
320 | TransferFunction.o: TransferFunction.cpp |
---|
321 | Unirect.o: Unirect.cpp Unirect.h Command.h Trace.h |
---|
322 | VelocityArrowsSlice.o: VelocityArrowsSlice.cpp VelocityArrowsSlice.h |
---|
323 | Volume.o: Volume.cpp Volume.h config.h define.h |
---|
324 | VolumeInterpolator.o: VolumeInterpolator.cpp VolumeInterpolator.h Volume.h |
---|
325 | VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h ConvexPolygon.h Volume.h nanovis.h Trace.h Plane.h StdVertexShader.h Shader.h |
---|
326 | VolumeShader.o: VolumeShader.cpp VolumeShader.h Shader.h |
---|
327 | VtkReader.o: VtkReader.h Trace.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h ReaderCommon.h nanovis.h |
---|
328 | ZincBlendeReconstructor.o: ZincBlendeReconstructor.cpp ZincBlendeReconstructor.h ZincBlendeVolume.h Volume.h $(VRMATH_DIR)/include/vrmath/Vector3f.h |
---|
329 | ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h config.h define.h |
---|
330 | ZincBlendeVolumeShader.o: ZincBlendeVolumeShader.cpp ZincBlendeVolumeShader.h VolumeShader.h Shader.h |
---|
331 | dxReader.o: dxReader.cpp ReaderCommon.h config.h nanovis.h Unirect.h ZincBlendeVolume.h ZincBlendeReconstructor.h |
---|
332 | md5.o: md5.h |
---|
333 | nanovis.o: nanovis.cpp nanovis.h config.h define.h Command.h Flow.h Grid.h HeightMap.h Camera.h LIC.h ZincBlendeReconstructor.h OrientationIndicator.h PerfQuery.h PlaneRenderer.h PointSetRenderer.h PointSet.h Switch.h Trace.h Unirect.h VelocityArrowsSlice.h VolumeInterpolator.h VolumeRenderer.h ZincBlendeVolume.h Axis.h Chain.h |
---|
334 | nanovisServer.o: nanovisServer.cpp nanovisServer.h config.h nanovis.h define.h Command.h PPMWriter.h ReadBuffer.h Shader.h ResponseQueue.h Trace.h |
---|