about summary refs log tree commit diff
path: root/vendor/modernc.org/sqlite/Makefile
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-08-16 19:50:26 +0200
committerEmile <git@emile.space>2024-08-16 19:50:26 +0200
commit1a57267a17c2fc17fb6e104846fabc3e363c326c (patch)
tree1e574e3a80622086dc3c81ff9cba65ef7049b1a9 /vendor/modernc.org/sqlite/Makefile
initial commit
Diffstat (limited to 'vendor/modernc.org/sqlite/Makefile')
-rw-r--r--vendor/modernc.org/sqlite/Makefile85
1 files changed, 85 insertions, 0 deletions
diff --git a/vendor/modernc.org/sqlite/Makefile b/vendor/modernc.org/sqlite/Makefile
new file mode 100644
index 0000000..67a56d3
--- /dev/null
+++ b/vendor/modernc.org/sqlite/Makefile
@@ -0,0 +1,85 @@
+# Copyright 2024 The Sqlite Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+.PHONY:	all build_all_targets clean edit editor test vendor work
+
+all: editor
+	golint 2>&1
+	staticcheck 2>&1
+
+build_all_targets:
+	GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
+	GOOS=darwin GOARCH=amd64 go build -v ./...
+	GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
+	GOOS=darwin GOARCH=arm64 go build -v ./...
+	GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
+	GOOS=freebsd GOARCH=amd64 go build -v ./...
+	GOOS=freebsd GOARCH=386 go test -c -o /dev/null
+	GOOS=freebsd GOARCH=386 go build -v ./...
+	GOOS=freebsd GOARCH=arm go test -c -o /dev/null
+	GOOS=freebsd GOARCH=arm go build -v ./...
+	GOOS=freebsd GOARCH=arm64 go test -c -o /dev/null
+	GOOS=freebsd GOARCH=arm64 go build -v ./...
+	GOOS=linux GOARCH=386 go test -c -o /dev/null
+	GOOS=linux GOARCH=386 go build -v ./...
+	GOOS=linux GOARCH=amd64 go test -c -o /dev/null
+	GOOS=linux GOARCH=amd64 go build -v ./...
+	GOOS=linux GOARCH=arm go test -c -o /dev/null
+	GOOS=linux GOARCH=arm go build -v ./...
+	GOOS=linux GOARCH=arm64 go test -c -o /dev/null
+	GOOS=linux GOARCH=arm64 go build -v ./...
+	GOOS=linux GOARCH=loong64 go test -c -o /dev/null
+	GOOS=linux GOARCH=loong64 go build -v ./...
+	GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
+	GOOS=linux GOARCH=ppc64le go build -v ./...
+	GOOS=linux GOARCH=riscv64 go test -c -o /dev/null
+	GOOS=linux GOARCH=riscv64 go build -v ./...
+	GOOS=linux GOARCH=s390x go test -c -o /dev/null
+	GOOS=linux GOARCH=s390x go build -v ./...
+	GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
+	GOOS=netbsd GOARCH=amd64 go build -v ./...
+	GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
+	GOOS=openbsd GOARCH=amd64 go build -v ./...
+	GOOS=openbsd GOARCH=arm64 go test -c -o /dev/null
+	GOOS=openbsd GOARCH=arm64 go build -v ./...
+	GOOS=windows GOARCH=386 go test -c -o /dev/null
+	GOOS=windows GOARCH=386 go build -v ./...
+	GOOS=windows GOARCH=amd64 go test -c -o /dev/null
+	GOOS=windows GOARCH=amd64 go build -v ./...
+	GOOS=windows GOARCH=arm64 go test -c -o /dev/null
+	GOOS=windows GOARCH=arm64 go build -v ./...
+	echo done
+
+clean:
+	rm -f log-* cpu.test mem.test *.out go.work*
+	go clean
+
+edit:
+	@touch log
+	@if [ -f "Session.vim" ]; then novim -S & else novim -p Makefile go.mod builder.json all_test.go vendor_libsqlite3.go & fi
+
+editor:
+	gofmt -l -s -w . 2>&1 | tee log-editor
+	go test -c -o /dev/null 2>&1 | tee -a log-editor
+	go build -v  -o /dev/null ./... 2>&1 | tee -a log-editor
+	go build -o /dev/null vendor_libsqlite3.go
+
+test:
+	go test -v -timeout 24h 2>&1 | tee log-test
+	
+vendor:
+	go run vendor_libsqlite3.go && make build_all_targets
+	make build_all_targets
+
+work:
+	rm -f go.work*
+	go work init
+	go work use .
+	go work use ../cc/v4
+	go work use ../ccgo/v3
+	go work use ../ccgo/v4
+	go work use ../libc
+	go work use ../libtcl8.6
+	go work use ../libsqlite3
+	go work use ../libz