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