3 CFLAGS
+= -DSOCKETS_NAMESPACE
=sockets
4 CFLAGS
+= -DSOCKETS_NAMESPACE_STR
='"sockets"'
7 CCFLAGS
+= -DSOCKETS_NAMESPACE
=sockets
8 CCFLAGS
+= -DSOCKETS_NAMESPACE_STR
='"sockets"'
10 LDFLAGS
= -g
-Wall
-O2
-ldl
-lpthread
-lgcrypt
-lboost_serialization
12 OPENVPNDEPS
= openvpn
/tun.o \
36 SOCKETDEPS
= Sockets
/libSockets.a
38 #Sockets/TcpSocket.o \
41 # Sockets/SocketHandler.o \
42 # Sockets/Ipv4Address.o \
44 # Sockets/SSLInitializer.o
54 syncConnectionCommand.o \
62 anyrtpproxy
/callIdQueue.o \
66 keyDerivationFactory.o \
85 ANYMUXOBJS
= muxSocket.o \
95 keyDerivationFactory.o \
103 anyrtpproxy
/callIdQueue.o \
111 syncSocketHandler.o \
117 syncConnectionCommand.o \
120 EXECUTABLE
= anytun anytun-config anytun-controld anytun-showtables manpage
122 all: $(EXECUTABLE
) libAnysync.a anyrtpproxy
124 anytun
: $(OBJS
) anytun.o
125 $(LD
) $(OBJS
) anytun.o
-o
$@
$(LDFLAGS
)
127 anytun-showtables
: $(OBJS
) anytun-showtables.o
128 $(LD
) $(OBJS
) anytun-showtables.o
-o
$@
$(LDFLAGS
)
130 anytun-config
: $(ANYCTROBJS
) anytun-config.o
131 $(LD
) $(ANYCTROBJS
) anytun-config.o
-o
$@
$(LDFLAGS
)
133 anytun-controld
: $(ANYMUXOBJS
) anytun-controld.o
134 $(LD
) $(ANYMUXOBJS
) anytun-controld.o
-o
$@
$(LDFLAGS
)
136 tunDevice.o
: tunDevice.
cpp tunDevice.h
137 $(C
++) $(CCFLAGS
) $< -c
139 Sockets
/libSockets.a
:
140 make
--directory
=.
/Sockets
142 packetSource.o
: packetSource.
cpp packetSource.h
143 $(C
++) $(CCFLAGS
) $< -c
145 buffer.o
: buffer.
cpp buffer.h
146 $(C
++) $(CCFLAGS
) $< -c
148 syncBuffer.o
: syncBuffer.
cpp syncBuffer.h
149 $(C
++) $(CCFLAGS
) $< -c
151 rtpSessionTable.o
: rtpSessionTable.
cpp rtpSessionTable.h
152 $(C
++) $(CCFLAGS
) $< -c
154 rtpSession.o
: rtpSession.
cpp rtpSession.h
155 $(C
++) $(CCFLAGS
) $< -c
157 plainPacket.o
: plainPacket.
cpp plainPacket.h buffer.h
158 $(C
++) $(CCFLAGS
) $< -c
160 encryptedPacket.o
: encryptedPacket.
cpp encryptedPacket.h buffer.h
161 $(C
++) $(CCFLAGS
) $< -c
163 cipher.o
: cipher.
cpp cipher.h buffer.h
164 $(C
++) $(CCFLAGS
) $< -c
166 muxSocket.o
: muxSocket.
cpp muxSocket.h
167 $(C
++) $(CCFLAGS
) $< -c
169 anymuxOptions.o
: anymuxOptions.
cpp anymuxOptions.h
170 $(C
++) $(CCFLAGS
) $< -c
172 anyctrOptions.o
: anyctrOptions.
cpp anyctrOptions.h
173 $(C
++) $(CCFLAGS
) $< -c
175 authAlgo.o
: authAlgo.
cpp authAlgo.h buffer.h
176 $(C
++) $(CCFLAGS
) $< -c
178 keyDerivation.o
: keyDerivation.
cpp keyDerivation.h
179 $(C
++) $(CCFLAGS
) $< -c
182 $(C
++) $(CCFLAGS
) $< -c
184 cipherFactory.o
: cipherFactory.
cpp cipherFactory.h cipher.h
185 $(C
++) $(CCFLAGS
) $< -c
187 authAlgoFactory.o
: authAlgoFactory.
cpp authAlgoFactory.h authAlgo.h
188 $(C
++) $(CCFLAGS
) $< -c
190 keyDerivationFactory.o
: keyDerivationFactory.
cpp keyDerivationFactory.h keyDerivation.h
191 $(C
++) $(CCFLAGS
) $< -c
193 routingTable.o
: routingTable.
cpp routingTable.h
194 $(C
++) $(CCFLAGS
) $< -c
196 syncSocket.o
: syncSocket.
cpp syncSocket.h
197 $(C
++) $(CCFLAGS
) $< -c
199 syncSocketHandler.o
: syncSocketHandler.
cpp syncSocketHandler.h
200 $(C
++) $(CCFLAGS
) $< -c
202 syncCommand.o
: syncCommand.
cpp syncCommand.h
203 $(C
++) $(CCFLAGS
) $< -c
205 syncRouteCommand.o
: syncRouteCommand.
cpp syncRouteCommand.h
206 $(C
++) $(CCFLAGS
) $< -c
208 syncRtpCommand.o
: syncRtpCommand.
cpp syncRtpCommand.h
209 $(C
++) $(CCFLAGS
) $< -c
211 syncConnectionCommand.o
: syncConnectionCommand.
cpp syncConnectionCommand.h
212 $(C
++) $(CCFLAGS
) $< -c
214 syncClientSocket.o
: syncClientSocket.
cpp syncClientSocket.h
215 $(C
++) $(CCFLAGS
) $< -c
217 syncQueue.o
: syncQueue.
cpp syncQueue.h
218 $(C
++) $(CCFLAGS
) $< -c
220 signalController.o
: signalController.
cpp signalController.h
221 $(C
++) $(CCFLAGS
) $< -c
223 PracticalSocket.o
: PracticalSocket.
cpp PracticalSocket.h
224 $(C
++) $(CCFLAGS
) $< -c
227 $(C
++) $(CCFLAGS
) $< -c
229 options.o
: options.
cpp options.h
230 $(C
++) $(CCFLAGS
) $< -c
232 seqWindow.o
: seqWindow.
cpp seqWindow.h
233 $(C
++) $(CCFLAGS
) $< -c
235 connectionList.o
: connectionList.
cpp connectionList.h
236 $(C
++) $(CCFLAGS
) $< -c
238 connectionParam.o
: connectionParam.
cpp connectionParam.h
239 $(C
++) $(CCFLAGS
) $< -c
241 networkPrefix.o
: networkPrefix.
cpp networkPrefix.h
242 $(C
++) $(CCFLAGS
) $< -c
244 networkAddress.o
: networkAddress.
cpp networkAddress.h
245 $(C
++) $(CCFLAGS
) $< -c
247 router.o
: router.
cpp router.h
248 $(C
++) $(CCFLAGS
) $< -c
251 $(C
++) $(CCFLAGS
) $< -c
253 anytun-showtables.o
: anytun-showtables.
cpp
254 $(C
++) $(CCFLAGS
) $< -c
256 anytun-config.o
: anytun-config.
cpp
257 $(C
++) $(CCFLAGS
) $< -c
259 anytun-controld.o
: anytun-controld.
cpp
260 $(C
++) $(CCFLAGS
) $< -c
262 cConnectionParam.o
: cConnectionParam.
cpp
263 $(C
++) $(CCFLAGS
) $< -c
265 libAnysync.a
: $(OBJS
)
270 @cd anyrtpproxy
; make
273 make
--directory
=$(CURDIR
)/openvpn
distclean
274 find
-name
*.o | xargs
rm -f
275 rm -f config.sub config.guess
279 make
--directory
=$(CURDIR
)/Sockets
clean
280 make
--directory
=$(CURDIR
)/openvpn
clean
281 rm -f Sockets
/libSockets.a Sockets
/Sockets-config
289 make
--directory
=$(CURDIR
)/anyrtpproxy
clean
298 ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q .