[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 5dcdec144d 052/166: PORT: use swipl --dump-runt
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 5dcdec144d 052/166: PORT: use swipl --dump-runtime-variables to locate SWI-Prolog.h |
Date: |
Fri, 30 Sep 2022 04:59:25 -0400 (EDT) |
branch: elpa/sweeprolog
commit 5dcdec144de1464fd21eef14bf0cec06118064bd
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
PORT: use swipl --dump-runtime-variables to locate SWI-Prolog.h
---
Makefile | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 687b1f51ca..c8470be2a2 100644
--- a/Makefile
+++ b/Makefile
@@ -10,20 +10,25 @@ ifeq ($(UNAME_S),Darwin)
SOEXT = dylib
endif
+SWIPL ?= swipl
+SWIPLBASE = $(shell $(SWIPL) --dump-runtime-variables | grep PLBASE | cut
-f 2 -d = | cut -f 1 -d ';')
+SWIPLLIBDIR = $(shell $(SWIPL) --dump-runtime-variables | grep PLLIBDIR | cut
-f 2 -d = | cut -f 1 -d ';')
+
TARGET = $(BASENAME)-module.$(SOEXT)
OBJECT = $(BASENAME).o
SOURCE = $(BASENAME).c
LDFLAGS += -shared
+LDFLAGS += -L$(SWIPLLIBDIR)
LDFLAGS += -lswipl
CFLAGS += -fPIC
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -O2
-CFLAGS += -I/usr/local/lib/swipl/include
+CFLAGS += -I$(SWIPLBASE)/include
-.PHONY: clean all swipl check
+.PHONY: clean all check
all: $(TARGET)
@@ -34,10 +39,12 @@ $(TARGET): $(OBJECT)
$(CC) -o $@ $(OBJECT) $(LDFLAGS)
clean:
- rm -f $(TARGET) $(OBJECT) $(BASENAME).info
+ rm -f $(TARGET) $(OBJECT) $(BASENAME).info $(BASENAME).texi
$(BASENAME).html
$(BASENAME).info:: README.org
- emacs -Q --batch --eval '(require (quote ox-texinfo))' --eval
"(with-current-buffer (find-file \"README.org\") (org-export-to-file (quote
texinfo) \"$@\" nil nil nil nil nil (quote org-texinfo-compile)))"
+ emacs -Q --batch --eval "(require 'ox-texinfo)" \
+ --eval "(with-current-buffer (find-file \"README.org\")
(org-export-to-file (quote texinfo) \"$@\" nil nil nil nil nil (quote
org-texinfo-compile)))"
check: $(TARGET)
- emacs -batch --eval '(add-to-list (quote load-path) (expand-file-name
"."))' -l ert -l sweep -l sweep-tests.el -f ert-run-tests-batch-and-exit
+ emacs -batch --eval '(add-to-list (quote load-path) (expand-file-name
"."))' \
+ -l ert -l sweep -l sweep-tests.el -f
ert-run-tests-batch-and-exit
- [nongnu] elpa/sweeprolog d9546b9414 025/166: ENHANCED: make the prompts used in sweep-find-* customizable, (continued)
- [nongnu] elpa/sweeprolog d9546b9414 025/166: ENHANCED: make the prompts used in sweep-find-* customizable, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog e62d23140f 019/166: FIXED: Makefile setting SOEXT to dylib on linux hosts, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 7c15ebc4f1 026/166: ENHANCED: annotate predicates with the summaries from the manual, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 59b9dde951 028/166: DOC: Document sweep-pack-install, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog b67e5b5e3d 029/166: DOC: Expand the manual section about Querying Prolog, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5455c53eaf 031/166: ENHANCED: Add optional "reverse" argument flag to sweep-open-query, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog ff13d97396 034/166: DOC: Add CUSTOM_ID properties to README.org headings where needed, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5fa0e16ee3 037/166: DOC: Document sweep_funcall/2, 3 in the manual, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 66ac977deb 045/166: Make use of the new SWI-Prolog embedded GMP handling..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8f1275f113 044/166: Remove the swipl-devel git submodule, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5dcdec144d 052/166: PORT: use swipl --dump-runtime-variables to locate SWI-Prolog.h,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog b24f66da61 051/166: Add licensing information, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 43e5cdaf91 054/166: ADDED: global keymap sweep-prefix-map, not bound by default, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 239e205add 059/166: ADDED: sweep-mode, a major mode for editing Prolog code, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog d226bbb70c 063/166: ENHANCED: set per buffer module name in sweep-mode, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog d974b0fe0a 071/166: ADDED: prepare xref backend, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 27c441ab49 068/166: PORT: don't rely on defvar-keymap available only since Emacs 29, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0b054bac88 072/166: ENHANCED: better detection of the identifier at point, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c59ead20f7 075/166: ENHANCED: redirect Prolog messages to Emacs message function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 031c07ac93 076/166: DOC: document the Prolog messages buffer, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8ac0e7afb9 065/166: ENHANCED: also complete predicate names from xref, ELPA Syncer, 2022/09/30