aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 5cb488fb42a6c94f374a407d1561df6ea2a40064 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                 
 
                                                                                      
 

                            



                      







                                                                                                    

      
                     
                        
.PHONY: all clean

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

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