4 ## The secure anycast tunneling protocol (satp) defines a protocol used
5 ## for communication between any combination of unicast and anycast
6 ## tunnel endpoints. It has less protocol overhead than IPSec in Tunnel
7 ## mode and allows tunneling of every ETHER TYPE protocol (e.g.
8 ## ethernet, ip, arp ...). satp directly includes cryptography and
9 ## message authentication based on the methodes used by SRTP. It is
10 ## intended to deliver a generic, scaleable and secure solution for
11 ## tunneling and relaying of packets of any protocol.
14 ## Copyright (C) 2007-2008 Othmar Gsenger, Erwin Nindl,
15 ## Christian Pointner <satp@wirdorange.org>
17 ## This file is part of Anytun.
19 ## Anytun is free software: you can redistribute it and/or modify
20 ## it under the terms of the GNU General Public License version 3 as
21 ## published by the Free Software Foundation.
23 ## Anytun is distributed in the hope that it will be useful,
24 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
25 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ## GNU General Public License for more details.
28 ## You should have received a copy of the GNU General Public License
29 ## along with anytun. If not, see <http://www.gnu.org/licenses/>.
45 keyDerivationFactory.o \
57 SYNCOBJS
= syncServer.o \
62 syncConnectionCommand.o \
65 ANYCTROBJS
= signalController.o \
74 keyDerivationFactory.o \
89 syncConnectionCommand.o
91 EXECUTABLE
= anytun anytun-config anytun-controld anytun-showtables
92 EXEOBJS
= anytun.o anytun-config.o anytun-controld.o anytun-showtables.o
94 SRCS
= $(OBJS
:%.o
=%.
cpp)
95 SYNCSRCS
= $(SYNCOBJS
:%.o
=%.
cpp)
96 ANYCTRSRCS
= $(ANYCTROBJS
:%.o
=%.
cpp)
97 ANYCONFSRCS
= $(ANYCONFOBJS
:%.o
=%.
cpp)
98 EXESRCS
= $(EXEOBJS
:%.o
=%.
cpp)
100 .PHONY
: distclean cleanall
clean ctags
102 all: $(EXECUTABLE
) #libAnysync.a
106 $(CXX
) -MM
$(CXXFLAGS
) $< > $@.
$$$$; \
107 sed
's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.
$$$$ > $@
; \
108 rm -f
$@.
$$$$; echo
'(re)building $@'
110 -include $(SRCS
:%.
cpp=%.d
) $(SYNCSRCS
:%.
cpp=%.d
) $(ANYCTRSRCS
:%.
cpp=%.d
) $(ANYCONFSRCS
:%.
cpp=%.d
) $(EXESRCS
:%.
cpp=%.d
)
112 anytun
: $(OBJS
) $(SYNCOBJS
) anytun.o
113 $(LD
) $(OBJS
) $(SYNCOBJS
) anytun.o
-o
$@
$(LDFLAGS
)
115 anytun-static
: $(OBJS
) $(SYNCOBJS
) anytun.o
116 $(LD
) $(OBJS
) $(SYNCOBJS
) anytun.o
-o
$@
$(LDFLAGS
) -lpthread
-static
117 strip -s anytun-static
119 anytun-nosync
: $(OBJS
) anytun-nosync.o
120 $(LD
) $(OBJS
) anytun-nosync.o
-o
$@
$(LDFLAGS
)
122 anytun-nosync.o
: anytun.
cpp anytun.o
123 $(CXX
) $(CXXFLAGS
) -DANYTUN_NOSYNC
$< -c
-o anytun-nosync.o
125 anytun-showtables
: $(OBJS
) $(SYNCOBJS
) anytun-showtables.o
126 $(LD
) $(OBJS
) $(SYNCOBJS
) anytun-showtables.o
-o
$@
$(LDFLAGS
)
128 anytun-config
: $(ANYCONFOBJS
) anytun-config.o
129 $(LD
) $(ANYCONFOBJS
) anytun-config.o
-o
$@
$(LDFLAGS
)
131 anytun-controld
: $(ANYCTROBJS
) anytun-controld.o
132 $(LD
) $(ANYCTROBJS
) anytun-controld.o
-o
$@
$(LDFLAGS
)
135 $(CXX
) $(CXXFLAGS
) $< -c
137 libAnysync.a
: $(OBJS
)
142 $(MAKE
) --directory
=$(CURDIR
)/anyrtpproxy
145 find .
-name
*.o
-exec
rm -f
{} \
;
146 rm -f config.sub config.guess
151 $(MAKE
) --directory
=$(CURDIR
)/man
clean
161 $(MAKE
) --directory
=$(CURDIR
)/anyrtpproxy
clean
170 ctags
-R
--c
++-kinds
=+p
--fields
=+iaS
--extra
=+q .