diff --git a/.gitignore b/.gitignore index 3e0b230..0025d8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *~ tcp_fallback +tcp_fallback-darwin-amd64 +tcp_fallback-linux-amd64 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5827314 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +all: build + +.PHONY: clean +clean: + rm tcp-fallback-darwin-amd64 tcp-fallback-linux-amd64 + +.PHONY: test +test: + go test + +.PHONY: build +build: + GOARCH=amd64 GOOS=darwin go build -o tcp_fallback-darwin-amd64 tcp_fallback.go + GOARCH=amd64 GOOS=linux go build -o tcp_fallback-linux-amd64 tcp_fallback.go + +.PHONY: run +run: + go run tcp_fallback.go