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

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

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