source: trunk/vizservers/nanovis/Makefile.in @ 749

Last change on this file since 749 was 749, checked in by dkearney, 17 years ago

moved vizservers directory to top level. added configure/makefiles to nanovis, nanoscale, pymolproxy all controlled by a configure script in
vizservers directory. to build you need to specify where rappture and tcl are installed. the start_viz.sh script was adjusted to copy the voronoi and
rappture libraries over to the tmp directory because these files tend to reside on an nfs mounted drive.

File size: 5.0 KB
Line 
1
2SHELL = /bin/sh
3
4.SUFFIX:
5.SUFFIX: .c .o .cpp
6
7.PHONY: all install clean distclean
8
9prefix          = @prefix@
10exec_prefix     = @exec_prefix@
11bindir          = @bindir@
12libdir          = @libdir@
13includedir      = @includedir@
14mandir          = @mandir@
15
16INSTALL                 = @INSTALL@
17INSTALL_PROGRAM = ${INSTALL} -m 755
18INSTALL_DATA    = ${INSTALL} -m 644
19INSTALL_SCRIPT  = ${INSTALL} -m 644
20
21CC = @CC@
22
23AUXSRC = config.h define.h global.h
24
25R2INC = ./R2/include
26
27LIB_NANOVIS = -L@RP_DIR@/lib -ltcl8.4 -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lrappture2 -lb64 -lz
28INCLUDES = -I@RP_DIR@/include -I@RP2_INCL_DIR@ -I/usr/include/GL -I$(R2INC) -I.
29
30CFLAGS = @CFLAGS@ $(INCLUDES)
31# $(CFLAGS)
32
33OBJS  = nanovis.o Socket.o RenderVertexArray.o Plane.o ConvexPolygon.o Vector4.o Vector3.o Mat4x4.o \
34                Texture1D.o Texture3D.o Volume.o ZincBlendeVolume.o Texture2D.o ParticleSystem.o Sphere.o Color.o \
35                PerfQuery.o TransferFunction.o ControlPoint.o ColorGradient.o ColorPaletteWindow.o\
36                ColorGradientGLUTWindow.o TransferFunctionGLUTWindow.o MainWindow.o Event.o \
37                Lic.o Renderable.o Camera.o ScreenSnapper.o VolumeRenderer.o PlaneRenderer.o Nv.o \
38                NvZincBlendeVolumeShader.o NvShader.o NvVolumeShader.o NvRegularVolumeShader.o \
39                NvLoadFile.o NvDefaultTFData.o NvColorTableShader.o NvColorTableRenderer.o NvParticleAdvectionShader.o \
40                NvEventLog.o NvParticleRenderer.o NvLIC.o NvZincBlendeReconstructor.o NvStdVertexShader.o \
41                R2string.o R2FilePath.o R2Fonts.o R2Object.o
42
43all: nanovis
44
45install: nanovis
46        $(INSTALL_PROGRAM) nanovis $(bindir)/nanovis
47        $(INSTALL_PROGRAM) @RP_DIR@/bin/voronoi $(bindir)/voronoi
48        $(INSTALL_PROGRAM) -d $(libdir)/resources $(libdir)/shaders
49        $(INSTALL_DATA) resources/* $(libdir)/resources
50        $(INSTALL_DATA) shaders/* $(libdir)/shaders
51        $(INSTALL_DATA) @RP_DIR@/lib/librappture2.so $(libdir)/librappture2.so
52        $(INSTALL_DATA) @RP_DIR@/lib/libz.so $(libdir)/libz.so
53        $(INSTALL_DATA) @RP_DIR@/lib/libb64.so $(libdir)/libb64.so
54
55clean:
56        rm -f *.o nanovis client
57
58nanovis: $(OBJS)
59        $(CC) -g -o $@ $^ $(LIB_NANOVIS)
60
61client: Socket.o ClientSocket.o RenderClient.o Event.o
62        $(CC) -g -o $(LIB_NANOVIS) $@ $^
63
64.cpp.o:
65        $(CC) $(CFLAGS) -o $@ -c $<
66
67Nv.o: Nv.cpp NvShader.cpp
68        $(CC) $(CFLAGS) -c $^
69
70ColorGradient.o: transfer-function/ColorGradient.cpp
71        $(CC) $(CFLAGS) -o $@ -c $<
72ColorPaletteWindow.o: transfer-function/ColorPaletteWindow.cpp
73        $(CC) $(CFLAGS) -o $@ -c $<
74ColorGradientGLUTWindow.o: transfer-function/ColorGradientGLUTWindow.cpp
75        $(CC) $(CFLAGS) -o $@ -c $<
76ControlPoint.o: transfer-function/ControlPoint.cpp
77        $(CC) $(CFLAGS) -o $@ -c $<
78TransferFunctionGLUTWindow.o: transfer-function/TransferFunctionGLUTWindow.cpp
79        $(CC) $(CFLAGS) -o $@ -c $<
80MainWindow.o: transfer-function/MainWindow.cpp
81        $(CC) $(CFLAGS) -o $@ -c $<
82Socket.o: socket/Socket.cpp socket/Socket.h
83        $(CC) $(CFLAGS) -o $@ -c $<
84ClientSocket.o: socket/ClientSocket.cpp socket/ClientSocket.h
85        $(CC) $(CFLAGS) -o $@ -c $<
86RenderClient.o: socket/RenderClient.cpp socket/RenderClient.h
87        $(CC) $(CFLAGS) -o $@ -c $<
88R2string.o: R2/src/R2string.cpp $(R2INC)/R2/R2string.h
89        $(CC) $(CFLAGS) -o $@ -c $<
90R2FilePath.o: R2/src/R2FilePath.cpp $(R2INC)/R2/R2FilePath.h
91        $(CC) $(CFLAGS) -o $@ -c $<
92R2Fonts.o: R2/src/R2Fonts.cpp $(R2INC)/R2/R2Fonts.h
93        $(CC) $(CFLAGS) -o $@ -c $<
94R2Object.o: R2/src/R2Object.cpp $(R2INC)/R2/R2Object.h
95        $(CC) $(CFLAGS) -o $@ -c $<
96
97
98
99NvStdVertexShader.o: NvStdVertexShader.cpp NvStdVertexShader.h
100NvLoadFile.o: NvLoadFile.cpp NvLoadFile.h
101NvParticleAdvectionShader.o: NvParticleAdvectionShader.cpp NvParticleAdvectionShader.h
102NvParticleRenderer.o: NvParticleRenderer.cpp NvParticleRenderer.h
103NvColorTableShader.o: NvColorTableShader.cpp NvColorTableShader.h
104NvLIC.o: NvLIC.cpp NvLIC.h
105NvColorTableRenderer.o: NvColorTableRenderer.cpp NvColorTableRenderer.h
106NvEventLog.o: NvEventLog.cpp NvEventLog.h
107NvShader.o: NvShader.cpp NvShader.h
108NvVolumeShader.o: NvVolumeShader.cpp NvVolumeShader.h
109NvDefaultTFData.o: NvDefaultTFData.cpp
110NvRegularVolumeShader.o: NvRegularVolumeShader.cpp NvRegularVolumeShader.h
111NvZincBlendeVolumeShader.o: NvZincBlendeVolumeShader.cpp NvZincBlendeVolumeShader.h
112RenderVertexArray.o: RenderVertexArray.cpp RenderVertexArray.h
113Color.o: Color.cpp Color.h
114Event.o: Event.cpp Event.h
115Sphere.o: Sphere.cpp Sphere.h
116TransferFunction.o: TransferFunction.cpp
117Texture1D.o: Texture1D.cpp Texture1D.h
118Texture2D.o: Texture2D.cpp Texture2D.h $(AUXSRC)
119Texture3D.o: Texture3D.cpp Texture3D.h $(AUXSRC)
120ParticleSystem.o: ParticleSystem.cpp $(AUXSRC)
121Renderable.o: Renderable.cpp Renderable.h
122Camera.o: Camera.cpp Camera.h
123ScreenSnapper.o: ScreenSnapper.cpp ScreenSnapper.h define.h
124Lic.o: Lic.cpp Lic.h $(AUXSRC)
125Volume.o: Volume.cpp Volume.h $(AUXSRC)
126ZincBlendeVolume.o: ZincBlendeVolume.cpp ZincBlendeVolume.h $(AUXSRC)
127VolumeRenderer.o: VolumeRenderer.cpp VolumeRenderer.h
128PlaneRenderer.o: PlaneRenderer.cpp PlaneRenderer.h
129Mat4x4.o: Mat4x4.cpp Mat4x4.h
130Vector4.o: Vector4.cpp Vector4.h
131Vector3.o: Vector3.cpp Vector3.h
132Plane.o: Plane.cpp Plane.h
133ConvexPolygon.o: ConvexPolygon.cpp ConvexPolygon.h
134PerfQuery.o: PerfQuery.cpp PerfQuery.h
135nanovis.o: nanovis.cpp nanovis.h $(AUXSRC)
Note: See TracBrowser for help on using the repository browser.