40 lines
688 B
Makefile
40 lines
688 B
Makefile
.PHONY: all clean test c t netsim-shell pat
|
|
|
|
all: .rustup-installed release-build
|
|
|
|
debug-build:
|
|
cargo build
|
|
|
|
release-build:
|
|
cargo build --release
|
|
cp ./target/release/hptp-recv ./3700recv
|
|
cp ./target/release/hptp-send ./3700send
|
|
|
|
clean:
|
|
cargo clean
|
|
rm -f 3700send 3700recv
|
|
|
|
test:
|
|
cargo test
|
|
|
|
c: clean
|
|
|
|
t: test
|
|
|
|
.rustup-installed:
|
|
rustup install nightly
|
|
rustup install stable
|
|
touch $@
|
|
|
|
.netsim:
|
|
mkdir $@
|
|
curl -Ss https://course.ccs.neu.edu/cs3700sp20/archive/tcp-sim.tgz | tar xzf - -C $@
|
|
sed -i '/.usr.bin.sudo/d' .netsim/netsim
|
|
cd /usr/include; h2ph -d $(HOME)/perl5/lib/perl5/ -a sys/syscall.h
|
|
|
|
netsim-shell: .netsim
|
|
./scripts/create-net-ns.sh
|
|
|
|
pat:
|
|
cat scripts/data.txt
|