summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-03 10:51:16 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-03 10:51:16 +0000
commitfa4f4a8a50c4bab3a3e247fb7186a7f9a00dfc11 (patch)
tree5ff84c3c71e6d3dadbaf9e13d3fdd84ab2691ca6 /Makefile
parentadded ssl tools (diff)
Added syncsocket
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 22 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e659660..7c77012 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
C = gcc
CFLAGS = -g -Wall
+CFLAGS += -DSOCKETS_NAMESPACE=sockets
+CFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
C++ = g++
CCFLAGS = -g -Wall
+CCFLAGS += -DSOCKETS_NAMESPACE=sockets
+CCFLAGS += -DSOCKETS_NAMESPACE_STR='"sockets"'
LD = g++
-LDFLAGS = -g -Wall -O2 -ldl -lpthread -lgcrypt
+LDFLAGS = -g -Wall -O2 -ldl -lpthread -lgcrypt -lssl
OPENVPNDEPS = openvpn/tun.o \
openvpn/error.o \
@@ -29,6 +33,17 @@ OPENVPNDEPS = openvpn/tun.o \
openvpn/shaper.o \
openvpn/fragment.o
+SOCKETDEPS = Sockets/libSockets.a
+
+#Sockets/TcpSocket.o \
+# Sockets/Socket.o \
+# Sockets/Thread.o \
+# Sockets/SocketHandler.o \
+# Sockets/Ipv4Address.o \
+# Sockets/Mutex.o \
+# Sockets/SSLInitializer.o
+
+
OBJS = anytun.o \
tunDevice.o \
packetSource.o \
@@ -43,10 +58,12 @@ OBJS = anytun.o \
PracticalSocket.o \
router.o \
signalController.o \
+ syncSocket.o \
log.o \
options.o \
seqWindow.o \
- $(OPENVPNDEPS)
+ $(OPENVPNDEPS) \
+ $(SOCKETDEPS)
EXECUTABLE = anytun
@@ -76,6 +93,9 @@ authAlgo.o: authAlgo.cpp authAlgo.h buffer.h
keyDerivation.o: keyDerivation.cpp keyDerivation.h
$(C++) $(CCFLAGS) $< -c
+syncSocket.o: syncSocket.cpp syncSocket.h
+ $(C++) $(CCFLAGS) $< -c
+
signalController.o: signalController.cpp signalController.h
$(C++) $(CCFLAGS) $< -c