aboutsummaryrefslogtreecommitdiff
path: root/scripts/Makefile
blob: 6cabb0338034517a3e6dc9d5dfa520ccc1525733 (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
# NOTE: do NOT use the Makefile directly, please run `./build.sh` instead

.PHONY: all clean

all: build/test_msgnet build/test_p2p_stress build/test_msgnet_tls build/bench_network

build/libsalticidae.a: build
	rm -f $@
	ln -sv "${GOPATH}/src/github.com/Determinant/salticidae-go/salticidae/libsalticidae.a" $@

build:
	mkdir -p build

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

clean:
	rm -rf build/
	cd salticidae/; make clean
	rm salticidae/CMakeCache.txt