]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/go/pkg/Makefile
Initial import of Go bindings for notmuch
[notmuch] / bindings / go / pkg / Makefile
diff --git a/bindings/go/pkg/Makefile b/bindings/go/pkg/Makefile
new file mode 100644 (file)
index 0000000..de89dbc
--- /dev/null
@@ -0,0 +1,17 @@
+# Copyright 2009 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=notmuch
+CGOFILES=notmuch.go
+CGO_LDFLAGS=-lnotmuch
+
+CLEANFILES+=notmuch_test
+
+include $(GOROOT)/src/Make.pkg
+
+%: install %.go
+       $(GC) $*.go
+       $(LD) -o $@ $*.$O