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