summaryrefslogtreecommitdiffstats
path: root/ffi/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-03-12 17:29:09 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-03-13 15:52:18 +0100
commit80942fa56215781c38a9289261f4f7d7694891e3 (patch)
tree6e12161d772f8fb0919ed32035e0128389b8666f /ffi/Makefile
parent9ea51d170815dc0c3ee6b089265ce6aa82f8b0ae (diff)
Add a Makefile.
- This adds some convenience for building Sequoia. - It also integrates other build systems and test frameworks for the bindings. - Furthermore, it helps with creating releases.
Diffstat (limited to 'ffi/Makefile')
-rw-r--r--ffi/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/ffi/Makefile b/ffi/Makefile
new file mode 100644
index 00000000..bc0d5f79
--- /dev/null
+++ b/ffi/Makefile
@@ -0,0 +1,34 @@
+# Makefile for Sequoia's bindings.
+
+# Configuration.
+PREFIX ?= /usr/local
+DESTDIR ?=
+
+# Make sure subprocesses pick these up.
+export PREFIX
+export DESTDIR
+
+all: build
+
+.PHONY: build
+build:
+
+# Testing and examples.
+.PHONY: test check
+test check:
+
+.PHONY: examples
+examples:
+ $(MAKE) -Cexamples
+
+# Installation.
+.PHONY: build-release
+build-release:
+
+.PHONY: install
+install:
+
+# Housekeeping.
+.PHONY: clean
+clean:
+ $(MAKE) -Cexamples clean