diff options
author | Mattias Andrée <maandree@kth.se> | 2023-07-02 20:02:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-07-02 20:02:04 +0200 |
commit | c2d241eed42c85e58df18889165d3802c84a8ed7 (patch) | |
tree | c8d317633ff5de2bdd1f1a23c09c89002217fa8b /config.mk | |
parent | Change license to ISC, change style, improve makefile (diff) | |
download | pylibgamma-1.1.3.1.tar.gz pylibgamma-1.1.3.1.tar.bz2 pylibgamma-1.1.3.1.tar.xz |
Improve makefile1.1.3.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | config.mk | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,10 +1,17 @@ PREFIX = /usr -PYTHON_MAJOR = $$(python --version 2>&1 | cut -d . -f 1 | cut -d ' ' -f 2) +PYTHON_MAJOR = $$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1) PYTHON_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1 | cut -d . -f 2) -CC = c99 +PYTHON_VERSION = $(PYTHON_MAJOR).$(PYTHON_MINOR) +PYTHON_VER = $(PYTHON_MAJOR)$(PYTHON_MINOR) +PYTHON_DIR = $(PREFIX)/lib/python$(python_version)/site-packages +PYTHON_CACHE = $(python_dir)/__pycache__ + +CC = c99 +CYTHON = cython$(PYTHON_MAJOR) +PYTHON = python$(PYTHON_MAJOR) CPPFLAGS = -CFLAGS = -LDFLAGS = -lgamma +CFLAGS = +LDFLAGS = -lgamma |