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

Last change on this file since 2112 was 2112, checked in by ldelgass, 14 years ago

New features for vtk render server:

  • Add new ColorMap? supporting linear ramps with separate color and opacity control points
  • 3D camera modes with pan/rotate/zoom (FIXME: rotate uses Euler angles)
  • New axis commands, set titles/units, grid on 3D axes
  • New polydata command for rendering 3D meshes (to replace Tcl vtkviewer for drawing3d rappture element)
  • Pseudocolor can be applied to non-image datasets (tested with polydata) as long as point data is present. Added option to turn on edges.
File size: 2.7 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 555
21INSTALL_DATA    = ${INSTALL} -m 444
22INSTALL_SCRIPT  = ${INSTALL} -m 444
23MKDIR_P         = @MKDIR_P@
24
25TCL_LIB_SPEC    = @TCL_LIB_SPEC@
26TCL_INC_SPEC    = @TCL_INC_SPEC@
27
28VTK_LIB_DIR     = @VTK_LIB_DIR@
29VTK_LIB_SPEC    = -L$(VTK_LIB_DIR) -lvtkIO -lvtkWidgets -lvtkRendering -lvtkGraphics -lvtkCommon
30VTK_INC_SPEC    = @VTK_INC_SPEC@
31
32LD_RUN_PATH     = $(VTK_LIB_DIR)
33
34LIBS            = \
35                $(TCL_LIB_SPEC) \
36                $(VTK_LIB_SPEC) \
37                -Wl,-rpath-link,$(LD_RUN_PATH)
38
39INCLUDES        = \
40                -I. \
41                $(TCL_INC_SPEC) \
42                $(VTK_INC_SPEC)
43
44USE_CUSTOM_AXES = #yes
45DEBUG           = #yes
46TRACE           = #yes
47
48EXTRA_CFLAGS    = -Wall -Wno-deprecated #vtk uses deprecated strstream header (instead of sstream)
49DEFINES         =
50ifdef DEBUG
51DEFINES         += -DDEBUG
52CXXFLAGS        = -O0 -g
53endif
54ifdef TRACE
55DEFINES         += -DWANT_TRACE
56endif
57ifdef USE_CUSTOM_AXES
58DEFINES         += -DUSE_CUSTOM_AXES
59endif
60CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
61
62SERVER_SRCS     = \
63                CmdProc.cpp \
64                ColorMap.cpp \
65                PPMWriter.cpp \
66                RpContour2D.cpp \
67                RpPolyData.cpp \
68                RpPseudoColor.cpp \
69                RpVtkDataSet.cpp \
70                RpVtkRenderer.cpp\
71                RpVtkRendererCmd.cpp \
72                RpVtkRenderServer.cpp \
73                TGAWriter.cpp \
74                Trace.cpp
75
76ifdef USE_CUSTOM_AXES
77SERVER_SRCS+=vtkRpCubeAxesActor2D.cpp
78endif
79
80SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
81
82SERVER=vtkvis
83
84.PHONY: all docs install clean clean-doc distclean
85
86all: $(SERVER)
87
88docs:
89        $(MKDIR_P) -m 0755 docs/doxygen
90        doxygen
91
92$(SERVER): $(SERVER_OBJS)
93        $(CXX) $(LIBS) -o $@ $(SERVER_OBJS)
94
95install: $(SERVER)
96        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
97
98%.o: %.cpp
99        $(CXX) $(CXX_SWITCHES) -c $< -o $@
100
101clean:
102        $(RM) *~ *.o $(SERVER)
103
104clean-docs:
105        $(RM) -r docs
106
107distclean: clean clean-docs
108        $(RM) Makefile Doxyfile
109
110CmdProc.o: CmdProc.h
111ColorMap.o: ColorMap.h Trace.h
112PPMWriter.o: PPMWriter.h Trace.h
113RpContour2D.o: RpContour2D.h RpVtkDataSet.h Trace.h
114RpPolyData.o: RpPolyData.h RpVtkDataSet.h Trace.h
115RpPseudoColor.o: RpPseudoColor.h RpVtkDataSet.h Trace.h
116RpVtkDataSet.o: RpVtkDataSet.h Trace.h
117RpVtkRenderer.o: RpVtkRenderer.h RpVtkDataSet.h RpPolyData.h RpPseudoColor.h RpContour2D.h ColorMap.h Trace.h
118RpVtkRendererCmd.o: RpVtkRenderer.h RpVtkDataSet.h RpPseudoColor.h RpContour2D.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h ColorMap.h
119RpVtkRenderServer.o: RpVtkRenderServer.h RpVtkRenderer.h RpVtkDataSet.h RpPseudoColor.h RpContour2D.h Trace.h
120Trace.o: Trace.h
121TGAWriter.o: TGAWriter.h Trace.h
122vtkRpCubeAxesActor2D.o: vtkRpCubeAxesActor2D.h
Note: See TracBrowser for help on using the repository browser.