grumble/pkg/sqlite/Makefile
2011-05-16 22:13:19 +02:00

23 lines
422 B
Makefile

# Copyright 2010 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
include $(GOROOT)/src/Make.inc
TARG=sqlite
CGOFILES=sqlite.go
ifneq ($(SQLITE),dll)
CGO_OFILES=sqlite3.o
endif
ifeq ($(GOOS),linux)
CGO_LDFLAGS=-lpthread -ldl
endif
ifeq ($(GOOS),windows)
CGO_LDFLAGS=-Lc:/sqlite -lsqlite3
endif
include $(GOROOT)/src/Make.pkg