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
RevLine 
[3192]1DEBUG                   = #yes
2TRACE                   = #yes
[3479]3USE_CUSTOM_AXES         = yes
[4040]4USE_FONT_CONFIG         = yes
[3192]5USE_GPU_RAYCASTING      = yes
[3541]6USE_OFFSCREEN_RENDERING = #yes
[4649]7USE_OPENGL2_BACKEND     = #yes
[3192]8USE_THREADS             = yes
[4073]9USE_CPU_LEGEND_RENDER   = yes
[2100]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@
[2115]29INSTALL_PROGRAM = ${INSTALL} -m 0755
30INSTALL_DATA    = ${INSTALL} -m 0644
31INSTALL_SCRIPT  = ${INSTALL} -m 0644
[2100]32MKDIR_P         = @MKDIR_P@
33
[4364]34SVN_VERSION     = $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/')
[3403]35STATSDIR        = @STATSDIR@
[3394]36
[2332]37GL_LIB_SPEC     = -lGL -lm
[2573]38PTHREAD_LIB_SPEC= -lpthread
[2260]39
[2100]40TCL_LIB_SPEC    = @TCL_LIB_SPEC@
41TCL_INC_SPEC    = @TCL_INC_SPEC@
42
[4060]43VTK_VERSION     = @VTK_VERSION@
[2107]44VTK_LIB_DIR     = @VTK_LIB_DIR@
[4060]45VTK_INC_DIR     = @VTK_INC_DIR@
46VTK_INC_SPEC    = -I$(VTK_INC_DIR)/vtk-$(VTK_VERSION)
47VTK_LIB_SPEC    = -L$(VTK_LIB_DIR) \
[3973]48                -lvtkDomainsChemistry-$(VTK_VERSION) \
49                -lvtkIOCore-$(VTK_VERSION) \
50                -lvtkIOLegacy-$(VTK_VERSION) \
[6388]51                -lvtkIOXML-$(VTK_VERSION) \
[3973]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)
[5837]77ifdef USE_OPENGL2_BACKEND
78VTK_BACKEND=OpenGL2
79else
80VTK_BACKEND=OpenGL
81endif
[2100]82
[5837]83ifeq ($(VTK_VERSION),6.3)
[4649]84VTK_LIB_SPEC += \
[5837]85                -lvtkRendering$(VTK_BACKEND)-$(VTK_VERSION) \
86                -lvtkRenderingVolume$(VTK_BACKEND)-$(VTK_VERSION)
[4649]87else
88VTK_LIB_SPEC += \
[5837]89                -lvtkRendering$(VTK_BACKEND)-$(VTK_VERSION) \
90                -lvtkRenderingFreeType$(VTK_BACKEND)-$(VTK_VERSION) \
91                -lvtkRenderingVolume$(VTK_BACKEND)-$(VTK_VERSION)
[4649]92endif
93
[4242]94ifeq ($(VTK_VERSION),6.0)
[4037]95VTK_LIB_SPEC += \
[4242]96                -lvtkRenderingHybridOpenGL-$(VTK_VERSION)
[4037]97else
[5837]98ifdef USE_OPENGL2_BACKEND
[4037]99VTK_LIB_SPEC += \
[5837]100                -lvtkRenderingLIC$(VTK_BACKEND)-$(VTK_VERSION)
101else
102VTK_LIB_SPEC += \
[4242]103                -lvtkRenderingLIC-$(VTK_VERSION)
[4037]104endif
[4649]105endif
[4037]106
[4060]107LD_RUN_PATH     = $(VTK_LIB_DIR):$(libdir)
[3192]108
[2100]109LIBS            = \
110                $(TCL_LIB_SPEC) \
[2107]111                $(VTK_LIB_SPEC) \
[2573]112                $(GL_LIB_SPEC) \
113                $(PTHREAD_LIB_SPEC) \
[3330]114                -Wl,-rpath,$(LD_RUN_PATH) \
115                -Wl,--enable-new-dtags
[2100]116
117INCLUDES        = \
[3384]118                -I$(srcdir) \
[2100]119                $(TCL_INC_SPEC) \
120                $(VTK_INC_SPEC)
121
[4159]122EXTRA_CXXFLAGS  = -Wall
[3393]123EXTRA_CFLAGS    = -Wall
[3403]124DEFINES         = -DSVN_VERSION=\"$(SVN_VERSION)\" -DSTATSDIR=\"$(STATSDIR)\"
[2100]125ifdef DEBUG
126DEFINES         += -DDEBUG
127CXXFLAGS        = -O0 -g
128endif
129ifdef TRACE
130DEFINES         += -DWANT_TRACE
131endif
132ifdef USE_CUSTOM_AXES
133DEFINES         += -DUSE_CUSTOM_AXES
134endif
[3818]135ifdef USE_FONT_CONFIG
136DEFINES         += -DUSE_FONT_CONFIG
137endif
[2251]138ifdef USE_OFFSCREEN_RENDERING
139DEFINES         += -DUSE_OFFSCREEN_RENDERING
140endif
[2261]141ifdef USE_GPU_RAYCASTING
142DEFINES         += -DUSE_GPU_RAYCAST_MAPPER
143endif
[2573]144ifdef USE_THREADS
145DEFINES         += -DUSE_THREADS
146endif
[4073]147ifdef USE_CPU_LEGEND_RENDER
148DEFINES         += -DLEGEND_SOFTWARE_RENDER
149endif
[4649]150ifndef USE_OPENGL2_BACKEND
151DEFINES         += -DHAVE_LIC
152endif
[3330]153
[5837]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))"
[4649]156else
[5837]157VTK_MOD_DEFS    = -DvtkRenderingCore_AUTOINIT="4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeType$(VTK_BACKEND),vtkRendering$(VTK_BACKEND))" -DvtkRenderingFreeType_AUTOINIT="1(vtkRenderingFreeTypeFontConfig)" -DvtkRenderingVolume_AUTOINIT="1(vtkRenderingVolume$(VTK_BACKEND))"
[4649]158endif
[5836]159DEFINES         += $(VTK_MOD_DEFS)
[4040]160
[3393]161CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEFINES) $(INCLUDES)
162CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
[2100]163
164SERVER_SRCS     = \
[3616]165                Arc.cpp \
166                Arrow.cpp \
167                Box.cpp \
[2100]168                CmdProc.cpp \
[2112]169                ColorMap.cpp \
[3616]170                Cone.cpp \
171                Contour2D.cpp \
172                Contour3D.cpp \
173                Cutplane.cpp \
174                Cylinder.cpp \
[3621]175                DataSet.cpp \
[3616]176                Disk.cpp \
177                Glyphs.cpp \
[3621]178                GraphicsObject.cpp \
[3616]179                Group.cpp \
180                HeightMap.cpp \
[3774]181                Image.cpp \
[4082]182                ImageCutplane.cpp \
[3616]183                LIC.cpp \
184                Line.cpp \
185                Molecule.cpp \
186                Outline.cpp \
[3861]187                Parallelepiped.cpp \
[3616]188                PolyData.cpp \
189                Polygon.cpp \
[2100]190                PPMWriter.cpp \
[3616]191                PseudoColor.cpp \
[2573]192                ReadBuffer.cpp \
[3621]193                Renderer.cpp \
194                RendererCmd.cpp \
195                RendererGraphicsObjs.cpp \
196                RenderServer.cpp \
[3616]197                Shape.cpp \
198                Sphere.cpp \
199                Streamlines.cpp \
[3774]200                Text3D.cpp \
[2100]201                TGAWriter.cpp \
[3616]202                Trace.cpp \
203                Volume.cpp \
204                Warp.cpp
[2100]205
206ifdef USE_CUSTOM_AXES
[2864]207SERVER_SRCS+= \
208        vtkRpAxisActor.cpp \
[3479]209        vtkRpAxisFollower.cpp \
[3330]210        vtkRpCubeAxesActor.cpp
[2100]211endif
[2573]212ifdef USE_THREADS
213SERVER_SRCS+=ResponseQueue.cpp
214endif
[2100]215
216SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
[3390]217SERVER_OBJS+= md5.o
[2100]218SERVER=vtkvis
219
[3436]220.PHONY: all docs install clean clean-docs distclean
[2100]221
222all: $(SERVER)
223
224docs:
225        $(MKDIR_P) -m 0755 docs/doxygen
226        doxygen
227
228$(SERVER): $(SERVER_OBJS)
[3851]229        $(CXX) -o $@ $(SERVER_OBJS) $(LIBS)
[2100]230
[3471]231install: all
[2100]232        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
233
234%.o: %.cpp
235        $(CXX) $(CXX_SWITCHES) -c $< -o $@
236
[3393]237%.o: %.c
238        $(CC) $(CC_SWITCHES) -c $< -o $@
239
[2100]240clean:
241        $(RM) *~ *.o $(SERVER)
242
[2112]243clean-docs:
[2100]244        $(RM) -r docs
245
[2112]246distclean: clean clean-docs
247        $(RM) Makefile Doxyfile
[2100]248
[4037]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
[2100]252CmdProc.o: CmdProc.h
[3616]253ColorMap.o: ColorMap.h Molecule.h Trace.h
[4037]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
[3621]259DataSet.o: DataSet.h Trace.h
[4037]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
[3616]268md5.o: md5.h
[4037]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
[2573]274PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h
[4037]275PseudoColor.o: PseudoColor.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
[2573]276ReadBuffer.o: ReadBuffer.h Trace.h
[3861]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
[3621]280RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
[2573]281ResponseQueue.o: ResponseQueue.h Trace.h
[4037]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
[3616]286TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h
[2100]287Trace.o: Trace.h
[4037]288Volume.o: Volume.h GraphicsObject.h Math.h DataSet.h Renderer.h ColorMap.h Trace.h
[2864]289vtkRpAxisActor.o: vtkRpAxisActor.h
[3479]290vtkRpAxisFollower.o: vtkRpAxisFollower.h vtkRpAxisActor.h
291vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h
[4037]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.