Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cephes.asd
Comment thread
snunez1 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
(defmethod perform ((o load-op) (c makefile)) t)
(defmethod perform ((o compile-op) (c makefile))
(let* ((lib-dir (system-relative-pathname "cephes" "scipy-cephes/"))
(make-executable #+bsd "gmake"
#+(not bsd) "make")
(lib (make-pathname :directory (pathname-directory lib-dir)
:name #+(or (and unix (not darwin)) windows win32) "libmd"
#+(and darwin arm64) "libmd-arm64"
Expand All @@ -31,7 +33,7 @@
(format *compile-verbose* "Building ~S~%" lib))
(unless built
(chdir (native-namestring lib-dir))
(run-program "make" :output *compile-verbose*)))))
(run-program make-executable :output *compile-verbose*)))))

(defsystem "cephes"
:description "Wrapper for the Cephes Mathematical Library"
Expand Down
4 changes: 3 additions & 1 deletion scipy-cephes/Makefile
Comment thread
snunez1 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ ifeq ($(OS),Windows_NT)
else # UNIX, use uname to determine which one
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_S), Linux)
LNX_BSD := Linux FreeBSD OpenBSD
IS_LNX_OR_BSD := $(filter $(UNAME_S),$(LNX_BSD))
ifneq ($(IS_LNX_OR_BSD),)
LDFLAGS = -lm
OUTPUT = libmd.so
endif
Expand Down
Loading