commit
a265077155
2 changed files with 4 additions and 9 deletions
9
Makefile
9
Makefile
|
@ -3,14 +3,13 @@
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build: libunqlite.a
|
build: src/unqlite.c
|
||||||
go build
|
go build
|
||||||
|
|
||||||
install: libunqlite.a
|
install: src/unqlite.c
|
||||||
go install
|
go install
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f libunqlite.a
|
|
||||||
rm -rf src/*
|
rm -rf src/*
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -19,7 +18,3 @@ test:
|
||||||
src/unqlite.c:
|
src/unqlite.c:
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
libunqlite.a: src/unqlite.c src/unqlite.h
|
|
||||||
gcc -c src/unqlite.c -I./src -DUNQLITE_ENABLE_THREADS=1
|
|
||||||
ar rv libunqlite.a unqlite.o
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package unqlitego
|
package unqlitego
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: -L./ -lunqlite
|
#cgo CFLAGS: -DUNQLITE_ENABLE_THREADS=1 -Wno-unused-but-set-variable
|
||||||
#include "./src/unqlite.h"
|
#include "./src/unqlite.c"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
Loading…
Reference in a new issue