mirror of
https://gitlab.com/cznic/sqlite.git
synced 2025-05-02 23:11:33 +00:00
29 lines
688 B
Makefile
29 lines
688 B
Makefile
# 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.
|
|
|
|
.PHONY: clean edit editor tmp x
|
|
|
|
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:
|
|
ccgo3 -o vfs.go vfs.c -I../testdata/sqlite-amalgamation-3380500 \
|
|
-lmodernc.org/sqlite/lib -pkgname vfs -nocapi \
|
|
-export-externs X -D SQLITE_OS_UNIX \
|
|
-hide=vfsFullPathname \
|
|
-hide=vfsOpen \
|
|
-hide=vfsRead \
|
|
-hide=vfsAccess \
|
|
-hide=vfsFileSize \
|
|
-hide=vfsClose
|
|
go build -v
|
|
gofmt -l -s -w *.go
|
|
go test -o /dev/null -c
|
|
|