-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
45 lines (32 loc) · 838 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
all: build test-portus test-ipc lint
travis: build test-portus
OS := $(shell uname)
CLIPPY := $(shell rustup component list | grep "clippy" | grep -c "installed")
build:
cargo build --all
test-portus: build
cargo test --all
test-ipc: build
ifeq ($(OS), Linux)
sudo ./target/debug/ipc_latency -i 10 --impl unix
sudo ./target/debug/ipc_latency -i 10 --impl nl
sudo ./target/debug/ipc_latency -i 10 --impl kp
endif
lint:
ifeq ($(CLIPPY), 1)
cargo clippy
else
$(warning clippy not installed, skipping...)
endif
ipc_latency: build
sudo ./target/debug/ipc_latency -i 10
bench: cargo_bench ipc_latency
clean:
cargo clean
$(MAKE) -C src/ipc/test-char-dev/ccp-kernel clean
integration-test:
python integration_tests/algorithms/compare.py reference-trace
.PHONY: bindings python
bindings: python
python:
$(MAKE) -C python/