source: vtkvis/branches/1.8/Makefile.in @ 6595

Last change on this file since 6595 was 6388, checked in by ldelgass, 8 years ago

merge r6378:6384 from vtkvis trunk

File size: 9.8 KB
Line 
1DEBUG                   = #yes
2TRACE                   = #yes
3USE_CUSTOM_AXES         = yes
4USE_FONT_CONFIG         = yes
5USE_GPU_RAYCASTING      = yes
6USE_OFFSCREEN_RENDERING = #yes
7USE_OPENGL2_BACKEND     = #yes
8USE_THREADS             = yes
9USE_CPU_LEGEND_RENDER   = yes
10
11bindir          = @bindir@
12datadir         = @datadir@
13datarootdir     = @datarootdir@
14exec_prefix     = @exec_prefix@
15includedir      = @includedir@
16libdir          = @libdir@
17mandir          = @mandir@
18prefix          = @prefix@
19srcdir          = @srcdir@
20
21CC              = @CC@
22CXX             = @CXX@
23CFLAGS          = @CFLAGS@
24CXXFLAGS        = @CXXFLAGS@
25
26VPATH           = $(srcdir)
27
28INSTALL         = @INSTALL@
29INSTALL_PROGRAM = ${INSTALL} -m 0755
30INSTALL_DATA    = ${INSTALL} -m 0644
31INSTALL_SCRIPT  = ${INSTALL} -m 0644
32MKDIR_P         = @MKDIR_P@
33
34SVN_VERSION     = $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/')
35STATSDIR        = @STATSDIR@
36
37GL_LIB_SPEC     = -lGL -lm
38PTHREAD_LIB_SPEC= -lpthread
39
40TCL_LIB_SPEC    = @TCL_LIB_SPEC@
41TCL_INC_SPEC    = @TCL_INC_SPEC@
42
43VTK_VERSION     = @VTK_VERSION@
44VTK_LIB_DIR     = @VTK_LIB_DIR@
45VTK_INC_DIR     = @VTK_INC_DIR@
46VTK_INC_SPEC    = -I$(VTK_INC_DIR)/vtk-$(VTK_VERSION)
47VTK_LIB_SPEC    = -L$(VTK_LIB_DIR) \
48                -lvtkDomainsChemistry-$(VTK_VERSION) \
49                -lvtkIOCore-$(VTK_VERSION) \
50                -lvtkIOLegacy-$(VTK_VERSION) \
51                -lvtkIOXML-$(VTK_VERSION) \
52                -lvtkFiltersExtraction-$(VTK_VERSION) \
53                -lvtkFiltersModeling-$(VTK_VERSION) \
54                -lvtkFiltersFlowPaths-$(VTK_VERSION) \
55                -lvtkFiltersGeometry-$(VTK_VERSION) \
56                -lvtkFiltersSources-$(VTK_VERSION) \
57                -lvtkFiltersGeneral-$(VTK_VERSION) \
58                -lvtkFiltersCore-$(VTK_VERSION) \
59                -lvtkImagingHybrid-$(VTK_VERSION) \
60                -lvtkImagingCore-$(VTK_VERSION) \
61                -lvtkInteractionStyle-$(VTK_VERSION) \
62                -lvtkInteractionWidgets-$(VTK_VERSION) \
63                -lvtkRenderingImage-$(VTK_VERSION) \
64                -lvtkRenderingFreeTypeFontConfig-$(VTK_VERSION) \
65                -lvtkRenderingFreeType-$(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)
77ifdef USE_OPENGL2_BACKEND
78VTK_BACKEND=OpenGL2
79else
80VTK_BACKEND=OpenGL
81endif
82
83ifeq ($(VTK_VERSION),6.3)
84VTK_LIB_SPEC += \
85                -lvtkRendering$(VTK_BACKEND)-$(VTK_VERSION) \
86                -lvtkRenderingVolume$(VTK_BACKEND)-$(VTK_VERSION)
87else
88VTK_LIB_SPEC += \
89                -lvtkRendering$(VTK_BACKEND)-$(VTK_VERSION) \
90                -lvtkRenderingFreeType$(VTK_BACKEND)-$(VTK_VERSION) \
91                -lvtkRenderingVolume$(VTK_BACKEND)-$(VTK_VERSION)
92endif
93
94ifeq ($(VTK_VERSION),6.0)
95VTK_LIB_SPEC += \
96                -lvtkRenderingHybridOpenGL-$(VTK_VERSION)
97else
98ifdef USE_OPENGL2_BACKEND
99VTK_LIB_SPEC += \
100                -lvtkRenderingLIC$(VTK_BACKEND)-$(VTK_VERSION)
101else
102VTK_LIB_SPEC += \
103                -lvtkRenderingLIC-$(VTK_VERSION)
104endif
105endif
106
107LD_RUN_PATH     = $(VTK_LIB_DIR):$(libdir)
108
109LIBS            = \
110                $(TCL_LIB_SPEC) \
111                $(VTK_LIB_SPEC) \
112                $(GL_LIB_SPEC) \
113                $(PTHREAD_LIB_SPEC) \
114                -Wl,-rpath,$(LD_RUN_PATH) \
115                -Wl,--enable-new-dtags
116
117INCLUDES        = \
118                -I$(srcdir) \
119                $(TCL_INC_SPEC) \
120                $(VTK_INC_SPEC)
121
122EXTRA_CXXFLAGS  = -Wall
123EXTRA_CFLAGS    = -Wall
124DEFINES         = -DSVN_VERSION=\"$(SVN_VERSION)\" -DSTATSDIR=\"$(STATSDIR)\"
125ifdef DEBUG
126DEFINES         += -DDEBUG
127CXXFLAGS        = -O0 -g
128endif
129ifdef TRACE
130DEFINES         += -DWANT_TRACE
131endif
132ifdef USE_CUSTOM_AXES
133DEFINES         += -DUSE_CUSTOM_AXES
134endif
135ifdef USE_FONT_CONFIG
136DEFINES         += -DUSE_FONT_CONFIG
137endif
138ifdef USE_OFFSCREEN_RENDERING
139DEFINES         += -DUSE_OFFSCREEN_RENDERING
140endif
141ifdef USE_GPU_RAYCASTING
142DEFINES         += -DUSE_GPU_RAYCAST_MAPPER
143endif
144ifdef USE_THREADS
145DEFINES         += -DUSE_THREADS
146endif
147ifdef USE_CPU_LEGEND_RENDER
148DEFINES         += -DLEGEND_SOFTWARE_RENDER
149endif
150ifndef USE_OPENGL2_BACKEND
151DEFINES         += -DHAVE_LIC
152endif
153
154ifeq ($(VTK_VERSION),6.3)
155VTK_MOD_DEFS    = -DvtkRenderingCore_AUTOINIT="3(vtkInteractionStyle,vtkRenderingFreeType,vtkRendering$(VTK_BACKEND))" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolume$(VTK_BACKEND))"
156else
157VTK_MOD_DEFS    = -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeType$(VTK_BACKEND),vtkRendering$(VTK_BACKEND))" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolume$(VTK_BACKEND))"
158endif
159DEFINES         += $(VTK_MOD_DEFS)
160
161CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEFINES) $(INCLUDES)
162CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
163
164SERVER_SRCS     = \
165                Arc.cpp \
166                Arrow.cpp \
167                Box.cpp \
168                CmdProc.cpp \
169                ColorMap.cpp \
170                Cone.cpp \
171                Contour2D.cpp \
172                Contour3D.cpp \
173                Cutplane.cpp \
174                Cylinder.cpp \
175                DataSet.cpp \
176                Disk.cpp \
177                Glyphs.cpp \
178                GraphicsObject.cpp \
179                Group.cpp \
180                HeightMap.cpp \
181                Image.cpp \
182                ImageCutplane.cpp \
183                LIC.cpp \
184                Line.cpp \
185                Molecule.cpp \
186                Outline.cpp \
187                Parallelepiped.cpp \
188                PolyData.cpp \
189                Polygon.cpp \
190                PPMWriter.cpp \
191                PseudoColor.cpp \
192                ReadBuffer.cpp \
193                Renderer.cpp \
194                RendererCmd.cpp \
195                RendererGraphicsObjs.cpp \
196                RenderServer.cpp \
197                Shape.cpp \
198                Sphere.cpp \
199                Streamlines.cpp \
200                Text3D.cpp \
201                TGAWriter.cpp \
202                Trace.cpp \
203                Volume.cpp \
204                Warp.cpp
205
206ifdef USE_CUSTOM_AXES
207SERVER_SRCS+= \
208        vtkRpAxisActor.cpp \
209        vtkRpAxisFollower.cpp \
210        vtkRpCubeAxesActor.cpp
211endif
212ifdef USE_THREADS
213SERVER_SRCS+=ResponseQueue.cpp
214endif
215
216SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
217SERVER_OBJS+= md5.o
218SERVER=vtkvis
219
220.PHONY: all docs install clean clean-docs distclean
221
222all: $(SERVER)
223
224docs:
225        $(MKDIR_P) -m 0755 docs/doxygen
226        doxygen
227
228$(SERVER): $(SERVER_OBJS)
229        $(CXX) -o $@ $(SERVER_OBJS) $(LIBS)
230
231install: all
232        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
233
234%.o: %.cpp
235        $(CXX) $(CXX_SWITCHES) -c $< -o $@
236
237%.o: %.c
238        $(CC) $(CC_SWITCHES) -c $< -o $@
239
240clean:
241        $(RM) *~ *.o $(SERVER)
242
243clean-docs:
244        $(RM) -r docs
245
246distclean: clean clean-docs
247        $(RM) Makefile Doxyfile
248
249Arc.o: Arc.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
250Arrow.o: Arrow.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
251Box.o: Box.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
252CmdProc.o: CmdProc.h
253ColorMap.o: ColorMap.h Molecule.h Trace.h
254Cone.o: Cone.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
255Contour2D.o: Contour2D.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
256Contour3D.o: Contour3D.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
257Cutplane.o: Cutplane.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
258Cylinder.o: Cylinder.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
259DataSet.o: DataSet.h Trace.h
260Disk.o: Disk.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
261Glyphs.o: Glyphs.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
262GraphicsObject.o: GraphicsObject.h Renderer.h DataSet.h ColorMap.h Math.h Trace.h
263Group.o: Group.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
264HeightMap.o: HeightMap.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
265Image.o: Image.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
266LIC.o: LIC.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h RenderServer.h
267Line.o: Line.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
268md5.o: md5.h
269Molecule.o: Molecule.h MoleculeData.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
270Outline.o: Outline.h GraphicsObject.h Math.h DataSet.h Trace.h
271Parallelepiped.o: Parallelepiped.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
272PolyData.o: PolyData.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
273Polygon.o: Polygon.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
274PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h
275PseudoColor.o: PseudoColor.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
276ReadBuffer.o: ReadBuffer.h Trace.h
277Renderer.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
278RendererCmd.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
279RendererGraphicsObjs.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
280RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
281ResponseQueue.o: ResponseQueue.h Trace.h
282Shape.o: Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
283Sphere.o: Sphere.h Shape.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
284Streamlines.o: Streamlines.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
285Text3D.o: Text3D.h GraphicsObject.h Math.h DataSet.h Renderer.h Trace.h
286TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h
287Trace.o: Trace.h
288Volume.o: Volume.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
289vtkRpAxisActor.o: vtkRpAxisActor.h
290vtkRpAxisFollower.o: vtkRpAxisFollower.h vtkRpAxisActor.h
291vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h
292Warp.o: Warp.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
Note: See TracBrowser for help on using the repository browser.