-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
31 lines (26 loc) · 830 Bytes
/
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
build:
mkdir -p bin
go build -o bin/api ./cmd/api
go build -o bin/apscan ./cmd/apscan
go build -o bin/connectap ./cmd/connectap
go build -o bin/currentap ./cmd/currentap
go build -o bin/wpalogs ./cmd/wpalogs
go build -o bin/wpaspy ./cmd/wpaspy
go build -o bin/wifistate ./cmd/wifistate
go build -o bin/ifaces ./cmd/ifaces
test:
go test ./... -race
wpapi:
GOARCH=arm64 go build -o bin/wpapi.arm64 ./cmd/wpapi
GOARCH=amd64 go build -o bin/wpapi.amd64 ./cmd/wpapi
wpapi_pkg:
mkdir -p dpkg/wpapi/usr/bin
rm -f dpkg/wpapi/usr/bin/wpapi
cp bin/wpapi.arm64 dpkg/wpapi/usr/bin/wpapi
IAN_DIR=dpkg/wpapi ian set -a arm64
IAN_DIR=dpkg/wpapi ian pkg
mkdir -p dpkg/wpapi/usr/bin
rm -f dpkg/wpapi/usr/bin/wpapi
cp bin/wpapi.amd64 dpkg/wpapi/usr/bin/wpapi
IAN_DIR=dpkg/wpapi ian set -a amd64
IAN_DIR=dpkg/wpapi ian pkg