summaryrefslogtreecommitdiff
path: root/vendor/github.com/zeebo/xxh3/Makefile
blob: 8bd78c48246ea6b37b3403e03c9890723bd0ec77 (plain)
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
.PHONY: all vet
all: genasm _compat

genasm: avo/avx.go avo/sse.go
	cd ./avo; go generate gen.go

clean:
	rm accum_vector_avx_amd64.s
	rm accum_vector_sse_amd64.s
	rm _compat

upstream/xxhash.o: upstream/xxhash.h
	( cd upstream && make )

_compat: _compat.c upstream/xxhash.o
	gcc -o _compat _compat.c ./upstream/xxhash.o

vet:
	GOOS=linux   GOARCH=386   GO386=softfloat go vet ./...
	GOOS=windows GOARCH=386   GO386=softfloat go vet ./...
	GOOS=linux   GOARCH=amd64 go vet ./...
	GOOS=windows GOARCH=amd64 go vet ./...
	GOOS=darwin  GOARCH=amd64 go vet ./...
	GOOS=linux   GOARCH=arm   go vet ./...
	GOOS=linux   GOARCH=arm64 go vet ./...
	GOOS=windows GOARCH=arm64 go vet ./...
	GOOS=darwin  GOARCH=arm64 go vet ./...