aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 243ed4067b1d0477ae029c9791799e843c5e964a (plain) (blame)
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
.PHONY: all clean cdep examples

all: cdep examples

examples: build/test_msgnet build/test_p2p_stress build/test_msgnet_tls build/bench_network

cdep: build/libsalticidae.a

build/libsalticidae.a: build
	scripts/build.sh

build:
	mkdir -p build

build/test_msgnet: build/libsalticidae.a test_msgnet/main.go
	source scripts/env.sh && go build -o $@ github.com/Determinant/salticidae-go/test_msgnet
build/test_msgnet_tls: build/libsalticidae.a test_msgnet_tls/main.go
	source scripts/env.sh && go build -o $@ github.com/Determinant/salticidae-go/test_msgnet_tls
build/test_p2p_stress: build/libsalticidae.a test_p2p_stress/main.go
	source scripts/env.sh && go build -o $@ github.com/Determinant/salticidae-go/test_p2p_stress
build/bench_network: build/libsalticidae.a bench_network/main.go
	source scripts/env.sh && go build -o $@ github.com/Determinant/salticidae-go/bench_network

clean:
	rm -rf build/
	scripts/clean.sh