added RtpSessionTable
[anytun.git] / Makefile
blob9ca820657a5d71d565a23c10c887ada67d713aaa
1 C = gcc
2 CFLAGS = -g -Wall
3 CFLAGS += -DSOCKETS_NAMESPACE=sockets
4 CFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
5 C++ = g++
6 CCFLAGS = -g -Wall
7 CCFLAGS += -DSOCKETS_NAMESPACE=sockets
8 CCFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
9 LD = g++
10 LDFLAGS = -g -Wall -O2 -ldl -lpthread -lgcrypt -lssl -lboost_serialization
12 OPENVPNDEPS = openvpn/tun.o \
13 openvpn/error.o \
14 openvpn/socket.o \
15 openvpn/buffer.o \
16 openvpn/misc.o \
17 openvpn/manage.o \
18 openvpn/fdmisc.o \
19 openvpn/otime.o \
20 openvpn/options.o \
21 openvpn/mtu.o \
22 openvpn/plugin.o \
23 openvpn/sig.o \
24 openvpn/proxy.o \
25 openvpn/socks.o \
26 openvpn/status.o \
27 openvpn/event.o \
28 openvpn/route.o \
29 openvpn/helper.o \
30 openvpn/init.o \
31 openvpn/interval.o \
32 openvpn/base64.o \
33 openvpn/shaper.o \
34 openvpn/fragment.o
36 SOCKETDEPS = Sockets/libSockets.a
38 #Sockets/TcpSocket.o \
39 # Sockets/Socket.o \
40 # Sockets/Thread.o \
41 # Sockets/SocketHandler.o \
42 # Sockets/Ipv4Address.o \
43 # Sockets/Mutex.o \
44 # Sockets/SSLInitializer.o
47 OBJS = tunDevice.o \
48 packetSource.o \
49 buffer.o \
50 syncBuffer.o \
51 syncCommand.o \
52 syncRouteCommand.o \
53 syncConnectionCommand.o \
54 plainPacket.o \
55 encryptedPacket.o \
56 cipher.o \
57 authAlgo.o \
58 keyDerivation.o \
59 rtpSessionTable.o \
60 rtpSession.o \
61 mpi.o \
62 cipherFactory.o \
63 authAlgoFactory.o \
64 keyDerivationFactory.o \
65 connectionList.o \
66 connectionParam.o \
67 networkAddress.o \
68 networkPrefix.o \
69 PracticalSocket.o \
70 router.o \
71 routingTable.o \
72 signalController.o \
73 syncSocket.o \
74 syncSocketHandler.o \
75 syncClientSocket.o \
76 syncQueue.o \
77 log.o \
78 options.o \
79 seqWindow.o \
80 $(OPENVPNDEPS) \
81 $(SOCKETDEPS)
83 ANYMUXOBJS = muxSocket.o \
84 anymuxOptions.o \
85 signalController.o \
86 log.o \
87 $(SOCKETDEPS)
89 ANYCTROBJS = log.o \
90 buffer.o \
91 keyDerivation.o \
92 mpi.o \
93 keyDerivationFactory.o \
94 networkAddress.o \
95 networkPrefix.o \
96 signalController.o \
97 connectionList.o \
98 connectionParam.o \
99 anyctrOptions.o \
100 router.o \
101 routingTable.o \
102 seqWindow.o \
103 syncSocket.o \
104 syncSocketHandler.o \
105 syncClientSocket.o \
106 syncQueue.o \
107 syncBuffer.o \
108 syncCommand.o \
109 syncRouteCommand.o \
110 syncConnectionCommand.o \
111 $(SOCKETDEPS)
113 EXECUTABLE = anytun anyctr anymux anytun-showtables
115 all: $(EXECUTABLE) libAnysync.a
117 anytun: $(OBJS) anytun.o
118 $(LD) $(OBJS) anytun.o -o $@ $(LDFLAGS)
120 anytun-showtables: $(OBJS) anytun-showtables.o
121 $(LD) $(OBJS) anytun-showtables.o -o $@ $(LDFLAGS)
123 anyctr: $(ANYCTROBJS) anyctr.o
124 $(LD) $(ANYCTROBJS) anyctr.o -o $@ $(LDFLAGS)
126 anymux: $(ANYMUXOBJS) anymux.o
127 $(LD) $(ANYMUXOBJS) anymux.o -o $@ $(LDFLAGS)
129 tunDevice.o: tunDevice.cpp tunDevice.h
130 $(C++) $(CCFLAGS) $< -c
132 packetSource.o: packetSource.cpp packetSource.h
133 $(C++) $(CCFLAGS) $< -c
135 buffer.o: buffer.cpp buffer.h
136 $(C++) $(CCFLAGS) $< -c
138 syncBuffer.o: syncBuffer.cpp syncBuffer.h
139 $(C++) $(CCFLAGS) $< -c
141 rtpSessionTable.o: rtpSessionTable.cpp rtpSessionTable.h
142 $(C++) $(CCFLAGS) $< -c
144 rtpSession.o: rtpSession.cpp rtpSession.h
145 $(C++) $(CCFLAGS) $< -c
147 plainPacket.o: plainPacket.cpp plainPacket.h buffer.h
148 $(C++) $(CCFLAGS) $< -c
150 encryptedPacket.o: encryptedPacket.cpp encryptedPacket.h buffer.h
151 $(C++) $(CCFLAGS) $< -c
153 cipher.o: cipher.cpp cipher.h buffer.h
154 $(C++) $(CCFLAGS) $< -c
156 muxSocket.o: muxSocket.cpp muxSocket.h
157 $(C++) $(CCFLAGS) $< -c
159 anymuxOptions.o: anymuxOptions.cpp anymuxOptions.h
160 $(C++) $(CCFLAGS) $< -c
162 anyctrOptions.o: anyctrOptions.cpp anyctrOptions.h
163 $(C++) $(CCFLAGS) $< -c
165 authAlgo.o: authAlgo.cpp authAlgo.h buffer.h
166 $(C++) $(CCFLAGS) $< -c
168 keyDerivation.o: keyDerivation.cpp keyDerivation.h
169 $(C++) $(CCFLAGS) $< -c
171 mpi.o: mpi.cpp mpi.h
172 $(C++) $(CCFLAGS) $< -c
174 cipherFactory.o: cipherFactory.cpp cipherFactory.h cipher.h
175 $(C++) $(CCFLAGS) $< -c
177 authAlgoFactory.o: authAlgoFactory.cpp authAlgoFactory.h authAlgo.h
178 $(C++) $(CCFLAGS) $< -c
180 keyDerivationFactory.o: keyDerivationFactory.cpp keyDerivationFactory.h keyDerivation.h
181 $(C++) $(CCFLAGS) $< -c
183 routingTable.o: routingTable.cpp routingTable.h
184 $(C++) $(CCFLAGS) $< -c
186 syncSocket.o: syncSocket.cpp syncSocket.h
187 $(C++) $(CCFLAGS) $< -c
189 syncSocketHandler.o: syncSocketHandler.cpp syncSocketHandler.h
190 $(C++) $(CCFLAGS) $< -c
192 syncCommand.o: syncCommand.cpp syncCommand.h
193 $(C++) $(CCFLAGS) $< -c
195 syncRouteCommand.o: syncRouteCommand.cpp syncRouteCommand.h
196 $(C++) $(CCFLAGS) $< -c
198 syncConnectionCommand.o: syncConnectionCommand.cpp syncConnectionCommand.h
199 $(C++) $(CCFLAGS) $< -c
201 syncClientSocket.o: syncClientSocket.cpp syncClientSocket.h
202 $(C++) $(CCFLAGS) $< -c
204 syncQueue.o: syncQueue.cpp syncQueue.h
205 $(C++) $(CCFLAGS) $< -c
207 signalController.o: signalController.cpp signalController.h
208 $(C++) $(CCFLAGS) $< -c
210 PracticalSocket.o: PracticalSocket.cpp PracticalSocket.h
211 $(C++) $(CCFLAGS) $< -c
213 log.o: log.cpp log.h
214 $(C++) $(CCFLAGS) $< -c
216 options.o: options.cpp options.h
217 $(C++) $(CCFLAGS) $< -c
219 seqWindow.o: seqWindow.cpp seqWindow.h
220 $(C++) $(CCFLAGS) $< -c
222 connectionList.o: connectionList.cpp connectionList.h
223 $(C++) $(CCFLAGS) $< -c
225 connectionParam.o: connectionParam.cpp connectionParam.h
226 $(C++) $(CCFLAGS) $< -c
228 networkPrefix.o: networkPrefix.cpp networkPrefix.h
229 $(C++) $(CCFLAGS) $< -c
231 networkAddress.o: networkAddress.cpp networkAddress.h
232 $(C++) $(CCFLAGS) $< -c
234 router.o: router.cpp router.h
235 $(C++) $(CCFLAGS) $< -c
237 anytun.o: anytun.cpp
238 $(C++) $(CCFLAGS) $< -c
240 anytun-showtables.o: anytun-showtables.cpp
241 $(C++) $(CCFLAGS) $< -c
243 anyctr.o: anyctr.cpp
244 $(C++) $(CCFLAGS) $< -c
246 anymux.o: anymux.cpp
247 $(C++) $(CCFLAGS) $< -c
249 cConnectionParam.o: cConnectionParam.cpp
250 $(C++) $(CCFLAGS) $< -c
252 libAnysync.a: $(OBJS)
253 ar cru $@ $(OBJS)
254 ranlib $@
256 clean:
257 rm -f *.o
258 rm -f $(EXECUTABLE)
259 rm -f -r doc/html/*
260 rm -f -r doc/latex/*
262 doxygen:
263 doxygen Doxyfile
265 ctags:
266 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .