From b6d1796be78b1156d835f8a81efbf8cc24750520 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 6 Dec 2019 09:45:54 -0500 Subject: improve build scripts --- scripts/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/Makefile (limited to 'scripts/Makefile') diff --git a/scripts/Makefile b/scripts/Makefile new file mode 100644 index 0000000..6cabb03 --- /dev/null +++ b/scripts/Makefile @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2