aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-26 14:15:34 -0400
committerRob Austein <sra@hactrn.net>2015-06-26 14:15:34 -0400
commit48ec7e3996bc61fd2be4dfb04c1f71c4496ebd2f (patch)
tree7615eb3bf94acb092f6d4ece0cd4246b16e6c422
parenta39aafced02d1c52760b3e948464a8041787d36f (diff)
Support no-threads build (work around Novena gdb problem). Add copyright.
-rw-r--r--GNUmakefile42
1 files changed, 41 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 447589d..ce718f7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,8 +1,48 @@
-# Download and build SQLite3 from source with the options we want.
+# (GNU) Makefile to download and build SQLite3 from source with the
+# options we want for PKCS #11.
+#
+# Author: Rob Austein
+# Copyright (c) 2015, SUNET
+#
+# Redistribution and use in source and binary forms, with or
+# without modification, are permitted provided that the following
+# conditions are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Whether to enable threading. Main reason for being able to turn it
+# off is that gdb on the Novena goes bananas when threading is enabled.
+
+ifndef ENABLE_THREADS
+ ENABLE_THREADS := yes
+endif
URL := http://sqlite.org/2015/sqlite-autoconf-3080900.tar.gz
OPTIONS := --enable-static --disable-shared CFLAGS=-fPIC LDFLAGS=-fPIC
+ifneq "${ENABLE_THREADS}" "yes"
+ OPTIONS += --disable-threadsafe
+endif
+
TOP := $(shell pwd)
TARBALL := ${TOP}/$(notdir ${URL})
BUILD := ${TOP}/build