diff options
author | Mattias Andrée <maandree@kth.se> | 2023-07-02 17:39:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-07-02 17:39:41 +0200 |
commit | ecc600330c42c0f8c5d6a5e0dd00a315050a738f (patch) | |
tree | 0df6690e40749a88460d2e7710e08d82c79af70e | |
parent | m improvement to config.mk (diff) | |
download | pylibcoopgamma-ecc600330c42c0f8c5d6a5e0dd00a315050a738f.tar.gz pylibcoopgamma-ecc600330c42c0f8c5d6a5e0dd00a315050a738f.tar.bz2 pylibcoopgamma-ecc600330c42c0f8c5d6a5e0dd00a315050a738f.tar.xz |
Fix makefile1.1.3.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | config.mk | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1,16 +1,18 @@ PREFIX = /usr -PY_MAJOR = $$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1) -PY_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1) -PY_VER = $(PY_MAJOR)$(PY_MINOR) -PY_VERSION = $(PY_MAJOR).$(PY_MINOR) +PYTHON_MAJOR = $$(python --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1) +PYTHON_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1) +PYTHON_VER = $(PYTHON_MAJOR)$(PYTHON_MINOR) +PYTHON_VERSION = $(PYTHON_MAJOR).$(PYTHON_MINOR) -PYTHONDIR = $(PREFIX)/lib/python$(PY_VERSION) +PYTHONDIR = $(PREFIX)/lib/python$(PYTHON_VERSION) -CYTHON = cython +CYTHON = cython$(PYTHON_MAJOR) PKGCONFIG = pkg-config -PYTHON = python$(PY_MAJOR) +PYTHON = python$(PYTHON_MAJOR) + +CC = c99 CPPFLAGS = -CFLAGS = -std=c99 -Wall $$($(PKGCONFIG) --cflags python$(PY_MAJOR)) -O2 -LDFLAGS = $$($(PKGCONFIG) --libs python$(PY_MAJOR)) -lcoopgamma +CFLAGS = -Wall $$($(PKGCONFIG) --cflags python$(PYTHON_MAJOR)) -O2 +LDFLAGS = $$($(PKGCONFIG) --libs python$(PYTHON_MAJOR)) -lcoopgamma |