New upstream version 3.1.1
This commit is contained in:
parent
4e9934e5ec
commit
e7b41df57b
229 changed files with 57000 additions and 12055 deletions
43
tools/Makefile.in
Normal file
43
tools/Makefile.in
Normal file
|
@ -0,0 +1,43 @@
|
|||
#
|
||||
# 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
|
||||
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-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)/
|
Loading…
Add table
Add a link
Reference in a new issue