aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cb07d1cd657b62c0e297863395b9a4d0a6d468cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.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:
	scripts/build.sh
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