forked from libpnet/libpnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 643 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
build: src/*.rs src/*/*.rs
bash build.sh
# The testsuite must be run differently on each OS:
# Linux:
# with CAP_NET_RAW set, tests can run without root
# FreeBSD/OS X:
# with read/write access to /dev/bpf, layer2 can run without root, but higher
# layers still need root (SOCK_RAW/TransportStream)
# Windows:
# run everything as admin
#
# On every OS except Linux, PNET_TEST_IFACE must be set to an interface to test
# on - there's a hack to find an interface below.
test:
bash build.sh test
travis_script:
bash build.sh travis_script
doc:
bash build.sh doc
benchmarks:
bash build.sh benchmarks
clean:
bash build.sh clean