aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/Makefile
blob: d8f7d2ef2f428cd5d398a63595bd3fe44354e7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: test
test: gcc
	# All three ways of building this must work
	go build
	go build -tags without_openssl
	go build -tags without_aegis
	go build -tags without_openssl,without_aegis
	CGO_ENABLED=0 go build -tags without_openssl,without_aegis
	# Likewise, all three ways of testing this must work
	go test -v
	go test -v -tags without_openssl
	go test -v -tags without_aegis
	go test -v -tags without_openssl,without_aegis
	CGO_ENABLED=0 go test -v -tags without_openssl,without_aegis

.PHONY: gcc
gcc:
	gcc -Wall -Wextra -Wformat-security -Wconversion -lcrypto -c *.c

.PHONY: format
format:
	clang-format --style=WebKit -i *.c *.h