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

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

new nanoscale

File size: 4.0 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
52
53#vtk uses deprecated strstream header (instead of sstream)
54EXTRA_CFLAGS    = -Wall -Wno-deprecated
55DEFINES         =
56ifdef DEBUG
57DEFINES         += -DDEBUG
58CXXFLAGS        = -O0 -g
59endif
60ifdef TRACE
61DEFINES         += -DWANT_TRACE
62endif
63ifdef USE_CUSTOM_AXES
64DEFINES         += -DUSE_CUSTOM_AXES
65endif
66ifdef USE_OFFSCREEN_RENDERING
67DEFINES         += -DUSE_OFFSCREEN_RENDERING
68endif
69ifdef USE_GPU_RAYCASTING
70DEFINES         += -DUSE_GPU_RAYCAST_MAPPER
71endif
72CXX_SWITCHES    = $(CXXFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
73
74SERVER_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
95ifdef USE_CUSTOM_AXES
96SERVER_SRCS+=vtkRpCubeAxesActor2D.cpp
97endif
98
99SERVER_OBJS=$(SERVER_SRCS:.cpp=.o)
100
101SERVER=vtkvis
102
103.PHONY: all docs install clean clean-doc distclean
104
105all: $(SERVER)
106
107docs:
108        $(MKDIR_P) -m 0755 docs/doxygen
109        doxygen
110
111$(SERVER): $(SERVER_OBJS)
112        $(CXX) $(LIBS) -o $@ $(SERVER_OBJS)
113
114install: $(SERVER)
115        $(INSTALL_PROGRAM) $(SERVER) $(bindir)
116
117%.o: %.cpp
118        $(CXX) $(CXX_SWITCHES) -c $< -o $@
119
120clean:
121        $(RM) *~ *.o $(SERVER)
122
123clean-docs:
124        $(RM) -r docs
125
126distclean: clean clean-docs
127        $(RM) Makefile Doxyfile
128
129CmdProc.o: CmdProc.h
130ColorMap.o: ColorMap.h RpMolecule.h Trace.h
131PPMWriter.o: PPMWriter.h Trace.h
132RpContour2D.o: RpContour2D.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
133RpContour3D.o: RpContour3D.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
134RpGlyphs.o: RpGlyphs.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
135RpHeightMap.o: RpHeightMap.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
136RpLIC.o: RpLIC.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h RpVtkRenderServer.h
137RpMolecule.o: RpMolecule.h RpMoleculeData.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
138RpPolyData.o: RpPolyData.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
139RpPseudoColor.o: RpPseudoColor.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
140RpStreamlines.o: RpStreamlines.h RpVtkGraphicsObject.h RpVtkDataSet.h Trace.h
141RpVolume.o: RpVolume.h RpVtkGraphicsObject.h RpVtkDataSet.h ColorMap.h Trace.h
142RpVtkDataSet.o: RpVtkDataSet.h Trace.h
143RpVtkRenderer.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
144RpVtkRendererCmd.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
145RpVtkRenderServer.o: RpVtkRenderServer.h RpVtkRendererCmd.h RpVtkRenderer.h Trace.h PPMWriter.h TGAWriter.h
146Trace.o: Trace.h
147TGAWriter.o: TGAWriter.h Trace.h
148vtkRpCubeAxesActor2D.o: vtkRpCubeAxesActor2D.h
Note: See TracBrowser for help on using the repository browser.