From c2d241eed42c85e58df18889165d3802c84a8ed7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 2 Jul 2023 20:02:04 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 51eba37..c404ee7 100644 --- a/config.mk +++ b/config.mk @@ -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 -- cgit v1.2.3-70-g09d2