-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
25 lines (20 loc) · 1.14 KB
/
Makefile
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
all:
# 1. server
# mac, arm64
GOOS=darwin GOARCH=arm64 go build -o autobahn-server-darwin-arm64.out ./autobahn/server/autobahn-server.go
GOOS=darwin GOARCH=arm64 go build -race -o autobahn-server-darwin-arm64-race.out ./autobahn/server/autobahn-server.go
# linux amd64
CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o autobahn-server-linux-amd64.out ./autobahn/server/autobahn-server.go
go build -race -o autobahn-server-linux-amd64-race.out ./autobahn/server/autobahn-server.go
# windows amd64
#GOOS=windows GOARCH=amd64 go build -o autobahn-server-windows-amd64.exe ./autobahn/server/autobahn-server.go
# freebsd amd64
GOOS=freebsd GOARCH=amd64 go build -o autobahn-server-windows-amd64.exe ./autobahn/server/autobahn-server.go
# mac, arm64
GOOS=darwin GOARCH=arm64 go build -o autobahn-client-darwin-arm64 ./autobahn/client/autobahn-client.go
# linux amd64
GOOS=linux GOARCH=amd64 go build -o autobahn-client-linux-amd64 ./autobahn/client/autobahn-client.go
key:
openssl genrsa 2048 > privatekey.pem
openssl req -new -key privatekey.pem -out csr.pem
openssl x509 -req -days 36500 -in csr.pem -signkey privatekey.pem -out public.crt