openser config with mysql authentication and location
[anytun.git] / Makefile
blob4fa58a8a71d3ec988226aa18a223b1dce0342b5e
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 authTag.o \
59 keyDerivation.o \
60 mpi.o \
61 cipherFactory.o \
62 authAlgoFactory.o \
63 keyDerivationFactory.o \
64 connectionList.o \
65 connectionParam.o \
66 networkAddress.o \
67 networkPrefix.o \
68 PracticalSocket.o \
69 router.o \
70 routingTable.o \
71 routingTableEntry.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 routingTableEntry.o \
103 seqWindow.o \
104 syncSocket.o \
105 syncSocketHandler.o \
106 syncClientSocket.o \
107 syncQueue.o \
108 syncBuffer.o \
109 syncCommand.o \
110 syncRouteCommand.o \
111 syncConnectionCommand.o \
112 $(SOCKETDEPS)
114 EXECUTABLE = anytun anyctr anymux anytun-showtables
116 all: $(EXECUTABLE) libAnysync.a
118 anytun: $(OBJS) anytun.o
119 $(LD) $(OBJS) anytun.o -o $@ $(LDFLAGS)
121 anytun-showtables: $(OBJS) anytun-showtables.o
122 $(LD) $(OBJS) anytun-showtables.o -o $@ $(LDFLAGS)
124 anyctr: $(ANYCTROBJS) anyctr.o
125 $(LD) $(ANYCTROBJS) anyctr.o -o $@ $(LDFLAGS)
127 anymux: $(ANYMUXOBJS) anymux.o
128 $(LD) $(ANYMUXOBJS) anymux.o -o $@ $(LDFLAGS)
130 tunDevice.o: tunDevice.cpp tunDevice.h
131 $(C++) $(CCFLAGS) $< -c
133 packetSource.o: packetSource.cpp packetSource.h
134 $(C++) $(CCFLAGS) $< -c
136 buffer.o: buffer.cpp buffer.h
137 $(C++) $(CCFLAGS) $< -c
139 syncBuffer.o: syncBuffer.cpp syncBuffer.h
140 $(C++) $(CCFLAGS) $< -c
142 plainPacket.o: plainPacket.cpp plainPacket.h buffer.h
143 $(C++) $(CCFLAGS) $< -c
145 encryptedPacket.o: encryptedPacket.cpp encryptedPacket.h buffer.h
146 $(C++) $(CCFLAGS) $< -c
148 cipher.o: cipher.cpp cipher.h buffer.h
149 $(C++) $(CCFLAGS) $< -c
151 muxSocket.o: muxSocket.cpp muxSocket.h
152 $(C++) $(CCFLAGS) $< -c
154 anymuxOptions.o: anymuxOptions.cpp anymuxOptions.h
155 $(C++) $(CCFLAGS) $< -c
157 anyctrOptions.o: anyctrOptions.cpp anyctrOptions.h
158 $(C++) $(CCFLAGS) $< -c
160 authAlgo.o: authAlgo.cpp authAlgo.h buffer.h
161 $(C++) $(CCFLAGS) $< -c
163 authTag.o: authTag.cpp authTag.h buffer.h
164 $(C++) $(CCFLAGS) $< -c
166 keyDerivation.o: keyDerivation.cpp keyDerivation.h
167 $(C++) $(CCFLAGS) $< -c
169 mpi.o: mpi.cpp mpi.h
170 $(C++) $(CCFLAGS) $< -c
172 cipherFactory.o: cipherFactory.cpp cipherFactory.h cipher.h
173 $(C++) $(CCFLAGS) $< -c
175 authAlgoFactory.o: authAlgoFactory.cpp authAlgoFactory.h authAlgo.h
176 $(C++) $(CCFLAGS) $< -c
178 keyDerivationFactory.o: keyDerivationFactory.cpp keyDerivationFactory.h keyDerivation.h
179 $(C++) $(CCFLAGS) $< -c
181 routingTable.o: routingTable.cpp routingTable.h
182 $(C++) $(CCFLAGS) $< -c
184 routingTableEntry.o: routingTableEntry.cpp routingTableEntry.h
185 $(C++) $(CCFLAGS) $< -c
187 syncSocket.o: syncSocket.cpp syncSocket.h
188 $(C++) $(CCFLAGS) $< -c
190 syncSocketHandler.o: syncSocketHandler.cpp syncSocketHandler.h
191 $(C++) $(CCFLAGS) $< -c
193 syncCommand.o: syncCommand.cpp syncCommand.h
194 $(C++) $(CCFLAGS) $< -c
196 syncRouteCommand.o: syncRouteCommand.cpp syncRouteCommand.h
197 $(C++) $(CCFLAGS) $< -c
199 syncConnectionCommand.o: syncConnectionCommand.cpp syncConnectionCommand.h
200 $(C++) $(CCFLAGS) $< -c
202 syncClientSocket.o: syncClientSocket.cpp syncClientSocket.h
203 $(C++) $(CCFLAGS) $< -c
205 syncQueue.o: syncQueue.cpp syncQueue.h
206 $(C++) $(CCFLAGS) $< -c
208 signalController.o: signalController.cpp signalController.h
209 $(C++) $(CCFLAGS) $< -c
211 PracticalSocket.o: PracticalSocket.cpp PracticalSocket.h
212 $(C++) $(CCFLAGS) $< -c
214 log.o: log.cpp log.h
215 $(C++) $(CCFLAGS) $< -c
217 options.o: options.cpp options.h
218 $(C++) $(CCFLAGS) $< -c
220 seqWindow.o: seqWindow.cpp seqWindow.h
221 $(C++) $(CCFLAGS) $< -c
223 connectionList.o: connectionList.cpp connectionList.h
224 $(C++) $(CCFLAGS) $< -c
226 connectionParam.o: connectionParam.cpp connectionParam.h
227 $(C++) $(CCFLAGS) $< -c
229 networkPrefix.o: networkPrefix.cpp networkPrefix.h
230 $(C++) $(CCFLAGS) $< -c
232 networkAddress.o: networkAddress.cpp networkAddress.h
233 $(C++) $(CCFLAGS) $< -c
235 router.o: router.cpp router.h
236 $(C++) $(CCFLAGS) $< -c
238 anytun.o: anytun.cpp
239 $(C++) $(CCFLAGS) $< -c
241 anytun-showtables.o: anytun-showtables.cpp
242 $(C++) $(CCFLAGS) $< -c
244 anyctr.o: anyctr.cpp
245 $(C++) $(CCFLAGS) $< -c
247 anymux.o: anymux.cpp
248 $(C++) $(CCFLAGS) $< -c
250 cConnectionParam.o: cConnectionParam.cpp
251 $(C++) $(CCFLAGS) $< -c
253 libAnysync.a: $(OBJS)
254 ar cru $@ $(OBJS)
255 ranlib $@
257 clean:
258 rm -f *.o
259 rm -f $(EXECUTABLE)
260 rm -f -r doc/html/*
261 rm -f -r doc/latex/*
263 doxygen:
264 doxygen Doxyfile
266 ctags:
267 ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .