source: trunk/vizservers/nanovis/Makefile.in @ 913

Last change on this file since 913 was 913, checked in by gah, 15 years ago

created R2 and newmat11 libraries

File size: 7.0 KB
Line 
1
2#
3# FIXME: I can see at least 3 possible candidates for separate libraries.
4#         R2, mat, and Image.  (First 2 are done.)
5#
6SHELL = /bin/sh
7
8#.SUFFIX:
9#SUFFIX: .c .o .cpp
10
11.PHONY: all install clean distclean
12
13prefix          = @prefix@
14exec_prefix     = @exec_prefix@
15bindir          = @bindir@
16libdir          = @libdir@
17srcdir          = @srcdir@
18includedir      = @includedir@
19mandir          = @mandir@
20
21INSTALL         = @INSTALL@
22INSTALL_PROGRAM = ${INSTALL} -m 755
23INSTALL_DATA    = ${INSTALL} -m 644
24INSTALL_SCRIPT  = ${INSTALL} -m 644
25
26CC = @CC@
27
28AUXSRC = config.h define.h global.h
29
30DX_DIR          = /usr/lib/dx
31DX_INC_SPEC     = -I$(DX_DIR)/include
32DX_LIB_SPEC     = -L$(DX_DIR)/lib_linux -lDXcallm -lm
33GL_INC_SPEC     = -I/usr/include/GL
34GL_LIB_SPEC     = -lGL -lglut -lglui -lGLEW -lCg -lCgGL -lpthread
35MAT_DIR         = ./newmat11
36MAT_INC_SPEC    = -I$(srcdir)/$(MAT_DIR)
37MAT_LIB         = $(MAT_DIR)/libnewmat11.a
38MAT_LIB_SPEC    = $(MAT_LIB)
39R2_DIR          = ./R2
40R2_INC_SPEC     = -I$(srcdir)/$(R2_DIR)/include
41R2_LIB          = $(R2_DIR)/src/libR2.a
42R2_LIB_SPEC     = $(R2_LIB)
43RP_DIR          =  @RP_DIR@
44RP_INC_SPEC     = -I$(RP_DIR)/include -I$(RP_DIR)/include/rappture2
45RP_LIB_SPEC     = -L$(RP_DIR)/lib -lrappture2 -lb64 -lz
46
47LIBS = \
48        $(RP_LIB_SPEC) \
49        -ltcl8.4 \
50        $(GL_LIB_SPEC) \
51        $(DX_LIB_SPEC) \
52        $(R2_LIB_SPEC) \
53        $(MAT_LIB_SPEC)
54
55INCLUDES = \
56        -I. \
57        $(RP_INC_SPEC) \
58        $(GL_INC_SPEC) \
59        $(R2_INC_SPEC) \
60        $(MAT_INC_SPEC)
61
62CFLAGS = @CFLAGS@
63EXTRA_CFLAGS = -Wall
64DEFINES = @DEFINES@
65CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDES)
66
67OBJS  = \
68        BMPImageLoaderImpl.o \
69        BucketSort.o \
70        NvCamera.o \
71        CmdProc.o \
72        Color.o \
73        ColorGradient.o \
74        ColorGradientGLUTWindow.o \
75        ColorPaletteWindow.o\
76        Command.o \
77        ContourLineFilter.o \
78        ControlPoint.o \
79        ConvexPolygon.o \
80        Event.o \
81        GradientFilter.o \
82        Grid.o \
83        HeightMap.o \
84        Image.o \
85        ImageLoader.o \
86        ImageLoaderFactory.o \
87        ImageLoaderImpl.o \
88        MainWindow.o \
89        Mat4x4.o \
90        Nv.o \
91        NvColorTableRenderer.o \
92        NvColorTableShader.o \
93        NvDefaultTFData.o \
94        NvEventLog.o \
95        NvLIC.o \
96        NvLoadFile.o \
97        NvParticleAdvectionShader.o \
98        NvParticleRenderer.o \
99        NvRegularVolumeShader.o \
100        NvShader.o \
101        NvStdVertexShader.o \
102        NvVolumeShader.o \
103        NvZincBlendeReconstructor.o \
104        NvZincBlendeVolumeShader.o \
105        PCASplit.o \
106        PerfQuery.o \
107        Plane.o \
108        PlaneRenderer.o \
109        PointSet.o \
110        PointSetRenderer.o \
111        PointShader.o \
112        RenderContext.o \
113        RenderVertexArray.o \
114        Renderable.o \
115        ScreenSnapper.o \
116        Socket.o \
117        Sphere.o \
118        Texture1D.o \
119        Texture2D.o \
120        Texture3D.o \
121        Trace.o \
122        TransferFunction.o \
123        TransferFunctionGLUTWindow.o \
124        Util.o \
125        Vector3.o \
126        Vector4.o \
127        Volume.o \
128        VolumeInterpolator.o \
129        VolumeRenderer.o \
130        ZincBlendeVolume.o \
131        dxReader.o \
132        dxReader2.o \
133        nanovis.o
134
135
136all: nanovis
137
138install: nanovis
139        $(INSTALL_PROGRAM) nanovis $(bindir)/nanovis
140        $(INSTALL_PROGRAM) @RP_DIR@/bin/voronoi $(bindir)/voronoi
141        $(INSTALL_PROGRAM) -d $(libdir)/resources $(libdir)/shaders
142        $(INSTALL_DATA) resources/* $(libdir)/resources
143        $(INSTALL_DATA) shaders/* $(libdir)/shaders
144        $(INSTALL_DATA) @RP_DIR@/lib/librappture2.so $(libdir)/librappture2.so
145        $(INSTALL_DATA) @RP_DIR@/lib/libz.so $(libdir)/libz.so
146        $(INSTALL_DATA) @RP_DIR@/lib/libb64.so $(libdir)/libb64.so
147
148clean:
149        make -C $(MAT_DIR) clean
150        rm -f nanovis client $(OBJS)
151
152distclean: clean
153        rm -f Makefile *~
154
155$(MAT_LIB):
156        make -C $(MAT_DIR) all
157
158$(R2_LIB):
159        make -C $(R2_DIR)/src all
160
161nanovis: $(MAT_LIB) $(R2_LIB) $(OBJS)
162        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
163
164client: Socket.o ClientSocket.o RenderClient.o Event.o
165        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
166
167.cpp.o:
168        $(CC) $(CC_SWITCHES) -o $@ -c $<
169
170Nv.o: Nv.cpp NvShader.cpp
171        $(CC) $(CC_SWITCHES) -c $^
172
173dxReader2.o: $(srcdir)/dxReader2.cpp
174        $(CC) -c $(CC_SWITCHES) $(DX_INC_SPEC) $?
175ColorGradient.o: transfer-function/ColorGradient.cpp
176        $(CC) $(CC_SWITCHES) -o $@ -c $<
177ColorPaletteWindow.o: transfer-function/ColorPaletteWindow.cpp
178        $(CC) $(CC_SWITCHES) -o $@ -c $<
179ColorGradientGLUTWindow.o: transfer-function/ColorGradientGLUTWindow.cpp
180        $(CC) $(CC_SWITCHES) -o $@ -c $<
181ControlPoint.o: transfer-function/ControlPoint.cpp
182        $(CC) $(CC_SWITCHES) -o $@ -c $<
183TransferFunctionGLUTWindow.o: transfer-function/TransferFunctionGLUTWindow.cpp
184        $(CC) $(CC_SWITCHES) -o $@ -c $<
185MainWindow.o: transfer-function/MainWindow.cpp
186        $(CC) $(CC_SWITCHES) -o $@ -c $<
187Socket.o: socket/Socket.cpp socket/Socket.h
188        $(CC) $(CC_SWITCHES) -o $@ -c $<
189ClientSocket.o: socket/ClientSocket.cpp socket/ClientSocket.h
190        $(CC) $(CC_SWITCHES) -o $@ -c $<
191RenderClient.o: socket/RenderClient.cpp socket/RenderClient.h
192        $(CC) $(CC_SWITCHES) -o $@ -c $<
193
194NvStdVertexShader.o: NvStdVertexShader.cpp NvStdVertexShader.h
195ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h
196HeightMap.o: HeightMap.cpp HeightMap.h
197Grid.o: Grid.cpp Grid.h
198NvLoadFile.o: NvLoadFile.cpp NvLoadFile.h
199NvParticleAdvectionShader.o: NvParticleAdvectionShader.cpp NvParticleAdvectionShader.h
200NvParticleRenderer.o: NvParticleRenderer.cpp NvParticleRenderer.h
201NvColorTableShader.o: NvColorTableShader.cpp NvColorTableShader.h
202NvLIC.o: NvLIC.cpp NvLIC.h
203NvColorTableRenderer.o: NvColorTableRenderer.cpp NvColorTableRenderer.h
204NvEventLog.o: NvEventLog.cpp NvEventLog.h
205NvShader.o: NvShader.cpp NvShader.h
206NvVolumeShader.o: NvVolumeShader.cpp NvVolumeShader.h
207NvDefaultTFData.o: NvDefaultTFData.cpp
208NvRegularVolumeShader.o: NvRegularVolumeShader.cpp NvRegularVolumeShader.h
209NvZincBlendeVolumeShader.o: NvZincBlendeVolumeShader.cpp NvZincBlendeVolumeShader.h
210RenderVertexArray.o: RenderVertexArray.cpp RenderVertexArray.h
211Color.o: Color.cpp Color.h
212Event.o: Event.cpp Event.h
213Sphere.o: Sphere.cpp Sphere.h
214TransferFunction.o: TransferFunction.cpp
215Texture1D.o: Texture1D.cpp Texture1D.h
216Texture2D.o: Texture2D.cpp Texture2D.h $(AUXSRC)
217Texture3D.o: Texture3D.cpp Texture3D.h $(AUXSRC)
218Renderable.o: Renderable.cpp Renderable.h
219NvCamera.o: NvCamera.cpp NvCamera.h
220ScreenSnapper.o: ScreenSnapper.cpp ScreenSnapper.h define.h
221Volume.o: Volume.cpp Volume.h $(AUXSRC)
222ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h $(AUXSRC)
223VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h
224PlaneRenderer.o: PlaneRenderer.cpp PlaneRenderer.h
225Mat4x4.o: Mat4x4.cpp Mat4x4.h
226Vector4.o: Vector4.cpp Vector4.h
227Vector3.o: Vector3.cpp Vector3.h
228Plane.o: Plane.cpp Plane.h
229ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h
230PerfQuery.o: PerfQuery.cpp PerfQuery.h
231PointShader.o: PointShader.cpp PointShader.h
232PCASplit.o: PCASplit.cpp PCASplit.h
233BucketSort.o: BucketSort.cpp BucketSort.h
234PointSetRenderer.o: PointSetRenderer.cpp PointSetRenderer.h
235PointSet.o: PointSet.cpp PointSet.h
236Image.o: imgLoaders/Image.cpp
237        $(CC) $(CC_SWITCHES) -o $@ -c $<
238ImageLoader.o: imgLoaders/ImageLoader.cpp
239        $(CC) $(CC_SWITCHES) -o $@ -c $<
240ImageLoaderImpl.o: imgLoaders/ImageLoaderImpl.cpp
241        $(CC) $(CC_SWITCHES) -o $@ -c $<
242BMPImageLoaderImpl.o: imgLoaders/BMPImageLoaderImpl.cpp
243        $(CC) $(CC_SWITCHES) -o $@ -c $<
244ImageLoaderFactory.o: imgLoaders/ImageLoaderFactory.cpp
245        $(CC) $(CC_SWITCHES) -o $@ -c $<
246
247RenderContext.o: RenderContext.cpp RenderContext.h
248VolumeInterpolator.o: VolumeInterpolator.cpp VolumeInterpolator.h
249GradientFilter.o: GradientFilter.cpp GradientFilter.h
250
251Util.o: Util.cpp Util.h
252Command.o: Command.cpp Command.h
253Trace.o: Trace.cpp Trace.h
254
255nanovis.o: nanovis.cpp nanovis.h $(AUXSRC)
Note: See TracBrowser for help on using the repository browser.