unqlitego/Makefile

26 lines
380 B
Makefile
Raw Normal View History

2013-11-26 14:04:27 +00:00
# for GNU make
2013-11-28 12:24:46 +00:00
.PHONY: all build install test clean
2013-11-26 14:04:27 +00:00
2013-11-28 12:18:59 +00:00
all: build
build: libunqlite.a
go build
2013-11-28 12:24:46 +00:00
install: libunqlite.a
2013-11-28 12:08:19 +00:00
go install
2013-11-27 00:25:59 +00:00
2013-11-28 12:18:59 +00:00
clean:
rm -f libunqlite.a
rm -rf src/*
test:
go test ./
2013-11-27 00:25:59 +00:00
src/unqlite.c:
git submodule init
git submodule update
2013-11-26 14:04:27 +00:00
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