source: trunk/gui/vizservers/nanovis/Makefile @ 385

Last change on this file since 385 was 385, checked in by qiaow, 19 years ago

Added nanoscale folder.

File size: 3.3 KB
Line 
1OBJ_NANOVIS = nanovis.o Socket.o RenderVertexArray.o Plane.o ConvexPolygon.o Vector4.o Vector3.o Mat4x4.o \
2                Texture1D.o Texture3D.o Volume.o Texture2D.o ParticleSystem.o Sphere.o Color.o \
3                PerfQuery.o TransferFunction.o ControlPoint.o ColorGradient.o ColorPaletteWindow.o\
4                ColorGradientGLUTWindow.o TransferFunctionGLUTWindow.o MainWindow.o Event.o
5OBJ_CLIENT = Socket.o ClientSocket.o RenderClient.o Event.o
6
7AUXSRC = config.h define.h global.h
8
9SOCKETSRC = ./socket
10SORTSRC = ./sort
11TFSRC = ./transfer-function
12NANOSCALESRC = ./nanoscale
13
14LIB_NANOVIS = -ltcl8.4 -lGL -lglut -lglui -lGLEW -lCg -lCgGL -pthread -lstdc++
15LIB_CLIENT = -lGL -lglut -pthread -lstdc++
16CFLAG = -g -c -Wall -I../src2/core
17
18all: nanovis simclient
19
20clean:
21        rm -f *.o nanovis client simclient
22
23nanovis: $(OBJ_NANOVIS)
24        gcc -g -o nanovis $(OBJ_NANOVIS) $(LIB_NANOVIS) ../src2/core/*.o
25
26ColorGradient.o: Color.o $(TFSRC)/ColorGradient.cpp
27        gcc $(CFLAG) $(TFSRC)/ColorGradient.cpp
28
29ColorPaletteWindow.o: Color.o ControlPoint.o $(TFSRC)/ColorPaletteWindow.cpp
30        gcc $(CFLAG) $(TFSRC)/ColorPaletteWindow.cpp
31
32ColorGradientGLUTWindow.o: ControlPoint.o ColorGradient.o $(TFSRC)/ColorGradientGLUTWindow.cpp
33        gcc $(CFLAG) $(TFSRC)/ColorGradientGLUTWindow.cpp
34
35TransferFunctionGLUTWindow.o: ColorGradientGLUTWindow.o $(TFSRC)/TransferFunctionGLUTWindow.cpp
36        gcc $(CFLAG) $(TFSRC)/TransferFunctionGLUTWindow.cpp
37
38MainWindow.o: TransferFunctionGLUTWindow.o ColorGradientGLUTWindow.o ColorPaletteWindow.o $(TFSRC)/MainWindow.cpp
39        gcc $(CFLAG) $(TFSRC)/MainWindow.cpp
40       
41Socket.o: $(SOCKETSRC)/Socket.h $(SOCKETSRC)/Socket.cpp
42        gcc $(CFLAG) $(SOCKETSRC)/Socket.cpp
43
44ClientSocket.o: $(SOCKETSRC)/ClientSocket.h $(SOCKETSRC)/ClientSocket.cpp Socket.o
45        gcc $(CFLAG) $(SOCKETSRC)/ClientSocket.cpp
46
47RenderClient.o: $(SOCKETSRC)/RenderClient.h $(SOCKETSRC)/RenderClient.cpp ClientSocket.o
48        gcc $(CFLAG) $(SOCKETSRC)/RenderClient.cpp
49
50RenderVertexArray.o: RenderVertexArray.h RenderVertexArray.cpp
51        gcc $(CFLAG) RenderVertexArray.cpp
52
53client: $(OBJ_CLIENT)
54        gcc -g -o client $(OBJ_CLIENT) $(LIB_CLIENT)
55
56simclient: Event.o
57        gcc -g $(NANOSCALESRC)/EventPlayer.cpp $(NANOSCALESRC)/clientlib.cpp -o simclient Event.o $(LIB_CLIENT)
58
59Color.o: Color.cpp
60        gcc $(CFLAG) Color.cpp
61
62Event.o: Event.cpp
63        gcc $(CFLAG) Event.cpp
64
65ControlPoint.o: $(TFSRC)/ControlPoint.cpp
66        gcc $(CFLAG) $(TFSRC)/ControlPoint.cpp
67
68Sphere.o: Vector3.o Color.o
69        gcc $(CFLAG) Sphere.cpp
70
71TransferFunction.o: TransferFunction.cpp
72        gcc $(CFLAG) TransferFunction.cpp
73
74Texture1D.o: Texture1D.cpp
75        gcc $(CFLAG) Texture1D.cpp
76
77Texture2D.o: Texture2D.cpp $(AUXSRC)
78        gcc $(CFLAG) Texture2D.cpp
79
80Texture3D.o: Texture3D.cpp $(AUXSRC)
81        gcc $(CFLAG) Texture3D.cpp
82
83ParticleSystem.o: ParticleSystem.cpp $(AUXSRC)
84        gcc $(CFLAG) ParticleSystem.cpp
85
86Volume.o: Texture3D.o Volume.cpp $(AUXSRC)
87        gcc $(CFLAG) Volume.cpp
88
89Mat4x4.o: Mat4x4.cpp
90        gcc $(CFLAG) Mat4x4.cpp
91
92Vector4.o: Vector4.cpp
93        gcc $(CFLAG) Vector4.cpp
94
95Vector3.o: Vector3.cpp
96        gcc $(CFLAG) Vector3.cpp
97
98Plane.o: Plane.cpp
99        gcc $(CFLAG) Plane.cpp
100
101ConvexPolygon.o: ConvexPolygon.cpp
102        gcc $(CFLAG) ConvexPolygon.cpp
103
104PerfQuery.o: PerfQuery.cpp
105        gcc $(CFLAG) PerfQuery.cpp
106
107nanovis.o: nanovis.h nanovis.cpp ParticleSystem.o $(AUXSRC)
108        gcc $(CFLAG) nanovis.cpp
Note: See TracBrowser for help on using the repository browser.