24 lines
565 B
Makefile
24 lines
565 B
Makefile
self:
|
|
RUSTFLAGS="-L ." cargo build --features "tap" --release
|
|
|
|
linux:
|
|
RUSTFLAGS="-L ." cargo build --features "tap" --release --target x86_64-unknown-linux-musl
|
|
|
|
linux-tun:
|
|
RUSTFLAGS="-L ." cargo build --release
|
|
|
|
win:
|
|
cargo build --release
|
|
|
|
pb:
|
|
cargo run --bin build_pb
|
|
mv src/pb/_.rs src/pb/message.rs
|
|
|
|
libtun-so-clang:
|
|
cd src/network && clang -fPIC -shared -o libtuntap.so tuntap.c && cd -
|
|
|
|
libtun-so:
|
|
cd src/network && gcc -fPIC -shared -o libtuntap.so tuntap.c && cd -
|
|
|
|
libtun-a:
|
|
cd src/network && gcc -c tuntap.c && ar rcs libtuntap.a tuntap.o && cd -
|