mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
99b6b6b66d
* moved dev to version 3.1.1 * laid ground for n2n-route tool * adapted code style * overhauled n2n-route's tool program logic and removed route code from edge * added missing initialization of federation's purgeable field * lifted un/purgeable confusion * added warning about removed -n cli option * realized that Windows does not offer inet_aton() * removed -n option documentation from edge's man page * slightly simplified n2n-route program logic * applied more logic changes to n2n-route tool * added 'info' read command to edge's management port * corrected indention * added Linux route control to n2n-route tool * temporarily restricted n2n-route tool to Linux only * We must be over the routing! * pulled default gateway change detection into main loop to cover mobile use, and added devstr_t type * corrected use of new UNPURGEABLE - so far gone unnoticed * addresses possiible address issue * i broke it * reverted bad ideas * added command line options, help text, and prevented vpn gateway being used for supernode/peer traffic routes * added option to manually provide default gateway, also verbosity options * getting there * added option to limit networks to be routed (-n), adapted documentation * fine-tuned minor things
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
#
|
|
# This is not a standalone makefile, it must be called from the toplevel
|
|
# makefile to inherit the correct environment
|
|
|
|
DEBUG?=-g3
|
|
|
|
HEADERS=$(wildcard include/*.h)
|
|
CFLAGS+=-I../include
|
|
ifeq ($(CONFIG_TARGET),mingw)
|
|
CFLAGS+=-I../win32
|
|
endif
|
|
CFLAGS+=$(DEBUG)
|
|
LDFLAGS+=-L..
|
|
|
|
N2N_LIB=../libn2n.a
|
|
|
|
TOOLS=n2n-benchmark n2n-keygen n2n-route
|
|
TOOLS+=@ADDITIONAL_TOOLS@
|
|
|
|
TESTS=tests-compress tests-elliptic tests-hashing tests-transform
|
|
TESTS+=tests-wire
|
|
TESTS+=tests-auth
|
|
|
|
.PHONY: all clean install
|
|
all: $(TOOLS) $(TESTS)
|
|
|
|
n2n-benchmark.o: $(N2N_LIB) $(HEADERS) ../Makefile Makefile
|
|
n2n-keygen.o: $(N2N_LIB) $(HEADERS) ../Makefile Makefile
|
|
n2n-route.o: $(N2N_LIB) $(HEADERS) ../Makefile Makefile
|
|
|
|
n2n-decode: n2n-decode.c $(N2N_LIB) $(HEADERS) ../Makefile Makefile
|
|
$(CC) $(CFLAGS) $< $(LDFLAGS) $(LDLIBS) -lpcap -o $@
|
|
|
|
# See comments in the topdir Makefile about how to generate coverage
|
|
# data.
|
|
gcov:
|
|
gcov $(TOOLS) $(TESTS)
|
|
|
|
clean:
|
|
rm -rf $(TOOLS) *.o *.dSYM *~
|
|
rm -f $(TESTS) *.gcno *.gcda
|
|
|
|
install: $(TOOLS)
|
|
$(INSTALL_PROG) $(TOOLS) $(SBINDIR)/
|