0
0
mirror of https://gitlab.com/cznic/sqlite.git synced 2025-05-22 23:28:02 +00:00
Files

68 lines
2.4 KiB
Makefile
Raw Permalink Normal View History

2022-07-22 14:45:40 +02:00
# Copyright 2022 The CC Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
2022-07-24 17:32:15 +02:00
.PHONY: build_all_targetsclean edit editor tmp x
build_all_targets:
GOOS=darwin GOARCH=amd64 go build -v ./...
GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
GOOS=darwin GOARCH=arm64 go build -v ./...
GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
GOOS=freebsd GOARCH=amd64 go build -v ./...
GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
GOOS=freebsd GOARCH=386 go build -v ./...
GOOS=freebsd GOARCH=386 go test -c -o /dev/null
2022-09-11 22:48:46 +02:00
GOOS=freebsd GOARCH=arm go build -v ./...
GOOS=freebsd GOARCH=arm go test -c -o /dev/null
2022-07-24 17:32:15 +02:00
GOOS=linux GOARCH=386 go build -v ./...
GOOS=linux GOARCH=386 go test -c -o /dev/null
GOOS=linux GOARCH=amd64 go build -v ./...
GOOS=linux GOARCH=amd64 go test -c -o /dev/null
GOOS=linux GOARCH=arm go build -v ./...
GOOS=linux GOARCH=arm go test -c -o /dev/null
GOOS=linux GOARCH=arm64 go build -v ./...
GOOS=linux GOARCH=arm64 go test -c -o /dev/null
GOOS=linux GOARCH=ppc64le go build -v ./...
GOOS=linux GOARCH=ppc64le go test -c -o /dev/null
GOOS=linux GOARCH=riscv64 go build -v ./...
GOOS=linux GOARCH=riscv64 go test -c -o /dev/null
GOOS=linux GOARCH=s390x go build -v ./...
GOOS=linux GOARCH=s390x go test -c -o /dev/null
GOOS=netbsd GOARCH=amd64 go build -v ./...
GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
GOOS=openbsd GOARCH=amd64 go build -v ./...
GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
2022-09-20 16:09:38 +02:00
GOOS=openbsd GOARCH=arm64 go build -v ./...
GOOS=openbsd GOARCH=arm64 go test -c -o /dev/null
2022-07-24 17:32:15 +02:00
# GOOS=windows GOARCH=386 go build -v ./...
# GOOS=windows GOARCH=386 go test -c -o /dev/null
GOOS=windows GOARCH=amd64 go build -v ./...
GOOS=windows GOARCH=amd64 go test -c -o /dev/null
GOOS=windows GOARCH=arm64 go build -v ./...
GOOS=windows GOARCH=arm64 go test -c -o /dev/null
echo done
2022-07-22 14:45:40 +02:00
clean:
rm -f log-* cpu.test mem.test *.out
go clean
edit:
@touch log
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile *.c *.go & fi
editor:
2022-09-11 22:48:46 +02:00
ccgo -o vfs_$(shell go env GOOS)_$(shell go env GOARCH).go c/vfs.c -I../testdata/sqlite-amalgamation-3390300 \
2022-07-23 11:24:08 +02:00
-lmodernc.org/sqlite/lib -pkgname vfs -nocapi \
2022-07-22 14:45:40 +02:00
-export-externs X -D SQLITE_OS_UNIX \
2022-07-23 11:24:08 +02:00
-hide=vfsFullPathname \
-hide=vfsOpen \
-hide=vfsRead \
-hide=vfsAccess \
-hide=vfsFileSize \
-hide=vfsClose
2022-07-22 14:45:40 +02:00
go build -v
gofmt -l -s -w *.go
go test -o /dev/null -c