source: branches/blt4/packages/vizservers/vtkvis/Makefile.in @ 2542

Last change on this file since 2542 was 2542, checked in by gah, 13 years ago

update from trunk

File size: 4.3 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12CC              = @CC@
13CXX             = @CXX@
14CFLAGS          = @CFLAGS@
15CXXFLAGS        = @CXXFLAGS@
16
17VPATH           = $(srcdir)
18
19INSTALL         = @INSTALL@
20INSTALL_PROGRAM = ${INSTALL} -m 0755
21INSTALL_DATA    = ${INSTALL} -m 0644
22INSTALL_SCRIPT  = ${INSTALL} -m 0644
23MKDIR_P         = @MKDIR_P@
24
25GL_LIB_SPEC     = -lGL -lm
26
27TCL_LIB_SPEC    = @TCL_LIB_SPEC@
28TCL_INC_SPEC    = @TCL_INC_SPEC@
29
30VTK_LIB_DIR     = @VTK_LIB_DIR@
31VTK_LIB_SPEC    = -L$(VTK_LIB_DIR) -lvtkIO -lvtkWidgets -lvtkFiltering -lvtkVolumeRendering -lvtkRendering -lvtkHybrid -lvtkGraphics -lvtkImaging -lvtkCommon
32VTK_INC_SPEC    = @VTK_INC_SPEC@
33
34LD_RUN_PATH     = $(VTK_LIB_DIR):$(libdir)
35
36LIBS            = \
37                $(GL_LIB_SPEC) \
38                $(TCL_LIB_SPEC) \
39                $(VTK_LIB_SPEC) \
40                -Wl,-rpath,$(LD_RUN_PATH)
41
42INCLUDES        = \
43                -I. \
44                $(TCL_INC_SPEC) \
45                $(VTK_INC_SPEC)
46
47DEBUG                   = #yes
48TRACE                   = #yes
49USE_CUSTOM_AXES         = yes
50USE_GPU_RAYCASTING      = yes
51USE_OFFSCREEN_RENDERING = yes
52USE_THREADS             = yes
53
54#vtk uses deprecated strstream header (instead of sstream)
55EXTRA_CFLAGS    = -Wall -Wno-deprecated
56DEFINES         =
57ifdef DEBUG
58DEFINES         += -DDEBUG
59CXXFLAGS        = -O0 -g
60endif
61ifdef TRACE
62DEFINES         += -DWANT_TRACE
63endif
64ifdef USE_CUSTOM_AXES
65DEFINES         += -DUSE_CUSTOM_AXES
66endif
67ifdef USE_OFFSCREEN_RENDERING
68DEFINES         += -DUSE_OFFSCREEN_RENDERING
69endif
70ifdef USE_GPU_RAYCASTING
71DEFINES         += -DUSE_GPU_RAYCAST_MAPPER
72endif
73ifdef USE_THREADS
74DEFINES         += -DUSE_THREADS
75endif
76CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
77
78SERVER_SRCS     = \
79                CmdProc.cpp \
80                ColorMap.cpp \
81                PPMWriter.cpp \
82                RpContour2D.cpp \
83                RpContour3D.cpp \
84                RpGlyphs.cpp \
85                RpHeightMap.cpp \
86                RpLIC.cpp \
87                RpMolecule.cpp \
88                RpPolyData.cpp \
89                RpPseudoColor.cpp \
90                RpStreamlines.cpp \
91                RpVolume.cpp \
92                RpVtkDataSet.cpp \
93                RpVtkRenderer.cpp\
94                RpVtkRendererCmd.cpp \
95                RpVtkRenderServer.cpp \
96                TGAWriter.cpp \
97                Trace.cpp
98
99ifdef USE_CUSTOM_AXES
100SERVER_SRCS+=vtkRpCubeAxesActor2D.cpp
101endif
102ifdef USE_THREADS
103SERVER_SRCS+=ResponseQueue.cpp
104endif
105
106SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
107
108SERVER=vtkvis
109
110.PHONY: all docs install clean clean-doc distclean
111
112all: $(SERVER)
113
114docs:
115        $(MKDIR_P) -m 0755 docs/doxygen
116        doxygen
117
118$(SERVER): $(SERVER_OBJS)
119        $(CXX) $(LIBS) -o $@ $(SERVER_OBJS)
120
121install: $(SERVER)
122        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
123
124%.o: %.cpp
125        $(CXX) $(CXX_SWITCHES) -c $< -o $@
126
127clean:
128        $(RM) *~ *.o $(SERVER)
129
130clean-docs:
131        $(RM) -r docs
132
133distclean: clean clean-docs
134        $(RM) Makefile Doxyfile
135
136CmdProc.o: CmdProc.h
137ColorMap.o: ColorMap.h RpMolecule.h Trace.h
138PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h
139ResponseQueue.o: ResponseQueue.h Trace.h
140RpContour2D.o: RpContour2D.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
141RpContour3D.o: RpContour3D.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
142RpGlyphs.o: RpGlyphs.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
143RpHeightMap.o: RpHeightMap.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
144RpLIC.o: RpLIC.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h RpVtkRenderServer.h
145RpMolecule.o: RpMolecule.h RpMoleculeData.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
146RpPolyData.o: RpPolyData.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
147RpPseudoColor.o: RpPseudoColor.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
148RpStreamlines.o: RpStreamlines.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
149RpVolume.o: RpVolume.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
150RpVtkDataSet.o: RpVtkDataSet.h Trace.h
151RpVtkRenderer.o: RpVtkRenderer.h RpVtkDataSet.h RpContour2D.h RpContour3D.h RpGlyphs.h RpHeightMap.h RpLIC.h RpMolecule.h RpPolyData.h RpPseudoColor.h RpStreamlines.h RpVolume.h ColorMap.h Trace.h
152RpVtkRendererCmd.o: RpVtkRenderer.h RpVtkDataSet.h RpContour2D.h RpContour3D.h RpGlyphs.h RpHeightMap.h RpLIC.h RpMolecule.h RpPolyData.h RpPseudoColor.h RpStreamlines.h RpVolume.h ColorMap.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h
153RpVtkRenderServer.o: RpVtkRenderServer.h RpVtkRendererCmd.h RpVtkRenderer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
154Trace.o: Trace.h
155TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h
156vtkRpCubeAxesActor2D.o: vtkRpCubeAxesActor2D.h
Note: See TracBrowser for help on using the repository browser.