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