source: trunk/packages/vizservers/vtkvis/Makefile.in @ 2576

Last change on this file since 2576 was 2576, checked in by ldelgass, 13 years ago

Move inline quaternion utility functions to new RpMath?.h header

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