-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 2 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Go Modules ON:
compilerFlag=-gcflags=-trimpath=$(shell pwd) -asmflags=-trimpath=$(shell pwd)
goFilesU=tcpscan.go digicert.go format.go setFilesLinux.go tcpCheck.go subnetcalc.go
goFilesW=tcpscan.go digicert.go format.go setFilesWindows.go tcpCheckw.go subnetcalc.go
#all: mac pi bsd32 bsd64 linux64 linux32 netbsd32 netbsd64 openbsd32 openbsd64 win32 win64 solaris;
all: mac pi linux64 netbsd64 openbsd64 freebsd64 win64 solaris;
linux32: $(goFilesU)
GOOS=linux GOARCH=386 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-l32 $(goFilesU)
linux64: $(goFilesU)
GO111MODULE=on GOOS=linux GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-l64 $(goFilesU)
mac: $(goFilesU)
GO111MODULE=on GOOS=darwin GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-mac $(goFilesU)
win64: $(goFilesW)
GO111MODULE=on GOOS=windows GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-w64.exe $(goFilesW)
win32: $(goFilesW)
GOOS=windows GOARCH=386 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-w32.exe $(goFilesW)
pi: $(goFilesU)
GO111MODULE=on GOOS=linux GOARCH=arm GOARM=6 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-pi $(goFilesU)
openbsd32: $(goFilesU)
GO111MODULE=on GOOS=openbsd GOARCH=386 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-ob32 $(goFilesU)
openbsd64: $(goFilesU)
GO111MODULE=on GOOS=openbsd GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-ob64 $(goFilesU)
netbsd32: $(goFilesU)
GO111MODULE=on OOS=netbsd GOARCH=386 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-netbsd32 $(goFilesU)
netbsd64: $(goFilesU)
GO111MODULE=on GOOS=netbsd GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-net64 $(goFilesU)
freebsd64: $(goFilesU)
GO111MODULE=on GOOS=freebsd GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-free64 $(goFilesU)
solaris: $(goFilesU)
GO111MODULE=on GOOS=solaris GOARCH=amd64 go build $(compilerFlag) -o ../tcpscan-release/tcpscan-sol $(goFilesU)