branch: elpa/emacsql
commit 2db4a845981199436be51ff3b0b05163f4494ff7
Author: Christopher Wellons <[email protected]>
Commit: Christopher Wellons <[email protected]>
Allow os tuples to be specified as an env var.
---
sqlite/Makefile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sqlite/Makefile b/sqlite/Makefile
index 4154b99178..357d1599f0 100644
--- a/sqlite/Makefile
+++ b/sqlite/Makefile
@@ -1,12 +1,12 @@
ifeq ($(OS),Windows_NT)
- OSTUPLE = x86-windows
- BINARY = emacsql-sqlite-$(OSTUPLE).exe
+ OSTUPLE ?= x86-windows
+ BINARY = emacsql-sqlite-$(OSTUPLE).exe
else
- PART_ARCH = $(shell uname -m)
- PART_OS = $(shell uname -s | tr '[A-Z]' '[a-z]')
- OSTUPLE = $(PART_ARCH)-$(PART_OS)
- BINARY = emacsql-sqlite-$(OSTUPLE)
- LDLIBS = -ldl
+ PART_ARCH = $(shell uname -m)
+ PART_OS = $(shell uname -s | tr '[A-Z]' '[a-z]')
+ OSTUPLE ?= $(PART_ARCH)-$(PART_OS)
+ BINARY = emacsql-sqlite-$(OSTUPLE)
+ LDLIBS = -ldl
endif
CFLAGS = -O2 --std=c99 -W -Wall -Wextra