summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-04-15 19:33:02 +0000
committerOthmar Gsenger <otti@anytun.org>2008-04-15 19:33:02 +0000
commit7f1c5d099894e68b6e828afb89b6e0defcaffe74 (patch)
tree0b83e3bf49abade211ebf32a952d955eb82bf0ad /src/Makefile
parentadded manpage for anytun-showtables (diff)
added make target anytun-nosync for basic bsd support
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile33
1 files changed, 20 insertions, 13 deletions
diff --git a/src/Makefile b/src/Makefile
index 7d54ac1..c310bcb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -48,18 +48,11 @@ OBJS = tunDevice.o \
packetSource.o \
buffer.o \
syncBuffer.o \
- syncCommand.o \
- syncRouteCommand.o \
- syncRtpCommand.o \
- syncConnectionCommand.o \
plainPacket.o \
encryptedPacket.o \
cipher.o \
authAlgo.o \
keyDerivation.o \
- rtpSessionTable.o \
- rtpSession.o \
- anyrtpproxy/callIdQueue.o \
mpi.o \
cipherFactory.o \
authAlgoFactory.o \
@@ -72,14 +65,22 @@ OBJS = tunDevice.o \
router.o \
routingTable.o \
signalController.o \
- syncSocket.o \
- syncSocketHandler.o \
- syncClientSocket.o \
syncQueue.o \
log.o \
options.o \
seqWindow.o \
- $(OPENVPNDEPS) \
+ syncCommand.o \
+ syncRouteCommand.o \
+ syncRtpCommand.o \
+ syncConnectionCommand.o \
+ rtpSessionTable.o \
+ rtpSession.o \
+ anyrtpproxy/callIdQueue.o \
+ $(OPENVPNDEPS)
+
+SYNCOBJS= syncSocket.o \
+ syncSocketHandler.o \
+ syncClientSocket.o \
$(SOCKETDEPS)
ANYCTROBJS = anyCtrSocket.o \
@@ -121,8 +122,11 @@ EXECUTABLE = anytun anytun-config anytun-controld anytun-showtables manpage
all: $(EXECUTABLE) libAnysync.a anyrtpproxy
-anytun: $(OBJS) anytun.o
- $(LD) $(OBJS) anytun.o -o $@ $(LDFLAGS)
+anytun: $(OBJS) $(SYNCOBJS) anytun.o
+ $(LD) $(OBJS) $(SYNCOBJS) anytun.o -o $@ $(LDFLAGS)
+
+anytun-nosync: $(OBJS) anytun-nosync.o
+ $(LD) $(OBJS) anytun-nosync.o -o $@ $(LDFLAGS)
anytun-showtables: $(OBJS) anytun-showtables.o
$(LD) $(OBJS) anytun-showtables.o -o $@ $(LDFLAGS)
@@ -250,6 +254,9 @@ router.o: router.cpp router.h
anytun.o: anytun.cpp
$(C++) $(CCFLAGS) $< -c
+anytun-nosync.o: anytun.cpp
+ $(C++) -g -Wall -DANYTUN_NOSYNC $< -c -o anytun-nosync.o
+
anytun-showtables.o: anytun-showtables.cpp
$(C++) $(CCFLAGS) $< -c