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

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

more clean up

File size: 6.8 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
35IMG_DIR         = ./imgLoaders
36IMG_INC_SPEC    = -I$(srcdir)/$(IMG_DIR)
37IMG_LIB         = $(IMG_DIR)/libImageLoaders.a
38IMG_LIB_SPEC    = $(IMG_LIB)
39MAT_DIR         = ./newmat11
40MAT_INC_SPEC    = -I$(srcdir)/$(MAT_DIR)
41MAT_LIB         = $(MAT_DIR)/libnewmat11.a
42MAT_LIB_SPEC    = $(MAT_LIB)
43R2_DIR          = ./R2
44R2_INC_SPEC     = -I$(srcdir)/$(R2_DIR)/include
45R2_LIB          = $(R2_DIR)/src/libR2.a
46R2_LIB_SPEC     = $(R2_LIB)
47RP_DIR          =  @RP_DIR@
48RP_INC_SPEC     = -I$(RP_DIR)/include -I$(RP_DIR)/include/rappture2
49RP_LIB_SPEC     = -L$(RP_DIR)/lib -lrappture2 -lb64 -lz
50
51LIBS = \
52        $(RP_LIB_SPEC) \
53        -ltcl8.4 \
54        $(GL_LIB_SPEC) \
55        $(DX_LIB_SPEC) \
56        $(IMG_LIB_SPEC) \
57        $(R2_LIB_SPEC) \
58        $(MAT_LIB_SPEC)
59
60INCLUDES = \
61        -I. \
62        $(RP_INC_SPEC) \
63        $(GL_INC_SPEC) \
64        $(R2_INC_SPEC) \
65        $(IMG_INC_SPEC) \
66        $(MAT_INC_SPEC)
67
68CFLAGS = @CFLAGS@
69EXTRA_CFLAGS = -Wall
70DEFINES = @DEFINES@
71CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDES)
72
73OBJS  = \
74        BucketSort.o \
75        NvCamera.o \
76        CmdProc.o \
77        Color.o \
78        ColorGradient.o \
79        ColorGradientGLUTWindow.o \
80        ColorPaletteWindow.o\
81        Command.o \
82        ContourLineFilter.o \
83        ControlPoint.o \
84        ConvexPolygon.o \
85        Event.o \
86        GradientFilter.o \
87        Grid.o \
88        HeightMap.o \
89        MainWindow.o \
90        Mat4x4.o \
91        Nv.o \
92        NvColorTableRenderer.o \
93        NvColorTableShader.o \
94        NvDefaultTFData.o \
95        NvEventLog.o \
96        NvLIC.o \
97        NvLoadFile.o \
98        NvParticleAdvectionShader.o \
99        NvParticleRenderer.o \
100        NvRegularVolumeShader.o \
101        NvShader.o \
102        NvStdVertexShader.o \
103        NvVolumeShader.o \
104        NvZincBlendeReconstructor.o \
105        NvZincBlendeVolumeShader.o \
106        PCASplit.o \
107        PerfQuery.o \
108        Plane.o \
109        PlaneRenderer.o \
110        PointSet.o \
111        PointSetRenderer.o \
112        PointShader.o \
113        RenderContext.o \
114        RenderVertexArray.o \
115        Renderable.o \
116        ScreenSnapper.o \
117        Socket.o \
118        Sphere.o \
119        Texture1D.o \
120        Texture2D.o \
121        Texture3D.o \
122        Trace.o \
123        TransferFunction.o \
124        TransferFunctionGLUTWindow.o \
125        Util.o \
126        Vector3.o \
127        Vector4.o \
128        Volume.o \
129        VolumeInterpolator.o \
130        VolumeRenderer.o \
131        ZincBlendeVolume.o \
132        dxReader.o \
133        dxReader2.o \
134        nanovis.o
135
136
137all: nanovis
138
139install: nanovis
140        $(INSTALL_PROGRAM) nanovis $(bindir)/nanovis
141        $(INSTALL_PROGRAM) @RP_DIR@/bin/voronoi $(bindir)/voronoi
142        $(INSTALL_PROGRAM) -d $(libdir)/resources $(libdir)/shaders
143        $(INSTALL_DATA) resources/* $(libdir)/resources
144        $(INSTALL_DATA) shaders/* $(libdir)/shaders
145        $(INSTALL_DATA) @RP_DIR@/lib/librappture2.so $(libdir)/librappture2.so
146        $(INSTALL_DATA) @RP_DIR@/lib/libz.so $(libdir)/libz.so
147        $(INSTALL_DATA) @RP_DIR@/lib/libb64.so $(libdir)/libb64.so
148
149clean:
150        make -C $(MAT_DIR) clean
151        make -C $(R2_DIR)/src clean
152        make -C $(IMG_DIR) clean
153        rm -f nanovis client $(OBJS)
154
155distclean: clean
156        rm -f Makefile *~
157
158$(MAT_LIB):
159        make -C $(MAT_DIR) all
160
161$(R2_LIB):
162        make -C $(R2_DIR)/src all
163
164$(IMG_LIB):
165        make -C $(IMG_DIR) all
166
167nanovis: $(MAT_LIB) $(R2_LIB) $(IMG_LIB) $(OBJS)
168        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
169
170client: Socket.o ClientSocket.o RenderClient.o Event.o
171        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
172
173.cpp.o:
174        $(CC) $(CC_SWITCHES) -o $@ -c $<
175
176Nv.o: Nv.cpp NvShader.cpp
177        $(CC) $(CC_SWITCHES) -c $^
178
179dxReader2.o: $(srcdir)/dxReader2.cpp
180        $(CC) -c $(CC_SWITCHES) $(DX_INC_SPEC) $?
181ColorGradient.o: transfer-function/ColorGradient.cpp
182        $(CC) $(CC_SWITCHES) -o $@ -c $<
183ColorPaletteWindow.o: transfer-function/ColorPaletteWindow.cpp
184        $(CC) $(CC_SWITCHES) -o $@ -c $<
185ColorGradientGLUTWindow.o: transfer-function/ColorGradientGLUTWindow.cpp
186        $(CC) $(CC_SWITCHES) -o $@ -c $<
187ControlPoint.o: transfer-function/ControlPoint.cpp
188        $(CC) $(CC_SWITCHES) -o $@ -c $<
189TransferFunctionGLUTWindow.o: transfer-function/TransferFunctionGLUTWindow.cpp
190        $(CC) $(CC_SWITCHES) -o $@ -c $<
191MainWindow.o: transfer-function/MainWindow.cpp
192        $(CC) $(CC_SWITCHES) -o $@ -c $<
193Socket.o: socket/Socket.cpp socket/Socket.h
194        $(CC) $(CC_SWITCHES) -o $@ -c $<
195ClientSocket.o: socket/ClientSocket.cpp socket/ClientSocket.h
196        $(CC) $(CC_SWITCHES) -o $@ -c $<
197RenderClient.o: socket/RenderClient.cpp socket/RenderClient.h
198        $(CC) $(CC_SWITCHES) -o $@ -c $<
199
200NvStdVertexShader.o: NvStdVertexShader.cpp NvStdVertexShader.h
201ContourLineFilter.o: ContourLineFilter.cpp ContourLineFilter.h
202HeightMap.o: HeightMap.cpp HeightMap.h
203Grid.o: Grid.cpp Grid.h
204NvLoadFile.o: NvLoadFile.cpp NvLoadFile.h
205NvParticleAdvectionShader.o: NvParticleAdvectionShader.cpp NvParticleAdvectionShader.h
206NvParticleRenderer.o: NvParticleRenderer.cpp NvParticleRenderer.h
207NvColorTableShader.o: NvColorTableShader.cpp NvColorTableShader.h
208NvLIC.o: NvLIC.cpp NvLIC.h
209NvColorTableRenderer.o: NvColorTableRenderer.cpp NvColorTableRenderer.h
210NvEventLog.o: NvEventLog.cpp NvEventLog.h
211NvShader.o: NvShader.cpp NvShader.h
212NvVolumeShader.o: NvVolumeShader.cpp NvVolumeShader.h
213NvDefaultTFData.o: NvDefaultTFData.cpp
214NvRegularVolumeShader.o: NvRegularVolumeShader.cpp NvRegularVolumeShader.h
215NvZincBlendeVolumeShader.o: NvZincBlendeVolumeShader.cpp NvZincBlendeVolumeShader.h
216RenderVertexArray.o: RenderVertexArray.cpp RenderVertexArray.h
217Color.o: Color.cpp Color.h
218Event.o: Event.cpp Event.h
219Sphere.o: Sphere.cpp Sphere.h
220TransferFunction.o: TransferFunction.cpp
221Texture1D.o: Texture1D.cpp Texture1D.h
222Texture2D.o: Texture2D.cpp Texture2D.h $(AUXSRC)
223Texture3D.o: Texture3D.cpp Texture3D.h $(AUXSRC)
224Renderable.o: Renderable.cpp Renderable.h
225NvCamera.o: NvCamera.cpp NvCamera.h
226ScreenSnapper.o: ScreenSnapper.cpp ScreenSnapper.h define.h
227Volume.o: Volume.cpp Volume.h $(AUXSRC)
228ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h $(AUXSRC)
229VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h
230PlaneRenderer.o: PlaneRenderer.cpp PlaneRenderer.h
231Mat4x4.o: Mat4x4.cpp Mat4x4.h
232Vector4.o: Vector4.cpp Vector4.h
233Vector3.o: Vector3.cpp Vector3.h
234Plane.o: Plane.cpp Plane.h
235ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h
236PerfQuery.o: PerfQuery.cpp PerfQuery.h
237PointShader.o: PointShader.cpp PointShader.h
238PCASplit.o: PCASplit.cpp PCASplit.h
239BucketSort.o: BucketSort.cpp BucketSort.h
240PointSetRenderer.o: PointSetRenderer.cpp PointSetRenderer.h
241PointSet.o: PointSet.cpp PointSet.h
242RenderContext.o: RenderContext.cpp RenderContext.h
243VolumeInterpolator.o: VolumeInterpolator.cpp VolumeInterpolator.h
244GradientFilter.o: GradientFilter.cpp GradientFilter.h
245
246Util.o: Util.cpp Util.h
247Command.o: Command.cpp Command.h
248Trace.o: Trace.cpp Trace.h
249
250nanovis.o: nanovis.cpp nanovis.h $(AUXSRC)
Note: See TracBrowser for help on using the repository browser.