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 555 |
---|
21 | INSTALL_DATA = ${INSTALL} -m 444 |
---|
22 | INSTALL_SCRIPT = ${INSTALL} -m 444 |
---|
23 | MKDIR_P = @MKDIR_P@ |
---|
24 | |
---|
25 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
26 | TCL_INC_SPEC = @TCL_INC_SPEC@ |
---|
27 | |
---|
28 | VTK_LIB_DIR = @VTK_LIB_DIR@ |
---|
29 | VTK_LIB_SPEC = -L$(VTK_LIB_DIR) -lvtkIO -lvtkWidgets -lvtkRendering -lvtkGraphics -lvtkCommon |
---|
30 | VTK_INC_SPEC = @VTK_INC_SPEC@ |
---|
31 | |
---|
32 | LD_RUN_PATH = $(VTK_LIB_DIR) |
---|
33 | |
---|
34 | LIBS = \ |
---|
35 | $(TCL_LIB_SPEC) \ |
---|
36 | $(VTK_LIB_SPEC) \ |
---|
37 | -Wl,-rpath-link,$(LD_RUN_PATH) |
---|
38 | |
---|
39 | INCLUDES = \ |
---|
40 | -I. \ |
---|
41 | $(TCL_INC_SPEC) \ |
---|
42 | $(VTK_INC_SPEC) |
---|
43 | |
---|
44 | USE_CUSTOM_AXES = #yes |
---|
45 | DEBUG = #yes |
---|
46 | TRACE = #yes |
---|
47 | |
---|
48 | EXTRA_CFLAGS = -Wall -Wno-deprecated #vtk uses deprecated strstream header (instead of sstream) |
---|
49 | DEFINES = |
---|
50 | ifdef DEBUG |
---|
51 | DEFINES += -DDEBUG |
---|
52 | CXXFLAGS = -O0 -g |
---|
53 | endif |
---|
54 | ifdef TRACE |
---|
55 | DEFINES += -DWANT_TRACE |
---|
56 | endif |
---|
57 | ifdef USE_CUSTOM_AXES |
---|
58 | DEFINES += -DUSE_CUSTOM_AXES |
---|
59 | endif |
---|
60 | CXX_SWITCHES = $(CXXFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) |
---|
61 | |
---|
62 | SERVER_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 | |
---|
76 | ifdef USE_CUSTOM_AXES |
---|
77 | SERVER_SRCS+=vtkRpCubeAxesActor2D.cpp |
---|
78 | endif |
---|
79 | |
---|
80 | SERVER_OBJS=$(SERVER_SRCS:.cpp=.o) |
---|
81 | |
---|
82 | SERVER=vtkvis |
---|
83 | |
---|
84 | .PHONY: all docs install clean clean-doc distclean |
---|
85 | |
---|
86 | all: $(SERVER) |
---|
87 | |
---|
88 | docs: |
---|
89 | $(MKDIR_P) -m 0755 docs/doxygen |
---|
90 | doxygen |
---|
91 | |
---|
92 | $(SERVER): $(SERVER_OBJS) |
---|
93 | $(CXX) $(LIBS) -o $@ $(SERVER_OBJS) |
---|
94 | |
---|
95 | install: $(SERVER) |
---|
96 | $(INSTALL_PROGRAM) $(SERVER) $(bindir) |
---|
97 | |
---|
98 | %.o: %.cpp |
---|
99 | $(CXX) $(CXX_SWITCHES) -c $< -o $@ |
---|
100 | |
---|
101 | clean: |
---|
102 | $(RM) *~ *.o $(SERVER) |
---|
103 | |
---|
104 | clean-docs: |
---|
105 | $(RM) -r docs |
---|
106 | |
---|
107 | distclean: clean clean-docs |
---|
108 | $(RM) Makefile Doxyfile |
---|
109 | |
---|
110 | CmdProc.o: CmdProc.h |
---|
111 | ColorMap.o: ColorMap.h Trace.h |
---|
112 | PPMWriter.o: PPMWriter.h Trace.h |
---|
113 | RpContour2D.o: RpContour2D.h RpVtkDataSet.h Trace.h |
---|
114 | RpPolyData.o: RpPolyData.h RpVtkDataSet.h Trace.h |
---|
115 | RpPseudoColor.o: RpPseudoColor.h RpVtkDataSet.h Trace.h |
---|
116 | RpVtkDataSet.o: RpVtkDataSet.h Trace.h |
---|
117 | RpVtkRenderer.o: RpVtkRenderer.h RpVtkDataSet.h RpPolyData.h RpPseudoColor.h RpContour2D.h ColorMap.h Trace.h |
---|
118 | RpVtkRendererCmd.o: RpVtkRenderer.h RpVtkDataSet.h RpPseudoColor.h RpContour2D.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h ColorMap.h |
---|
119 | RpVtkRenderServer.o: RpVtkRenderServer.h RpVtkRenderer.h RpVtkDataSet.h RpPseudoColor.h RpContour2D.h Trace.h |
---|
120 | Trace.o: Trace.h |
---|
121 | TGAWriter.o: TGAWriter.h Trace.h |
---|
122 | vtkRpCubeAxesActor2D.o: vtkRpCubeAxesActor2D.h |
---|