aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
blob: fd755603d3ca090ad64c17f890ba4adf5be8f781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PREFIX = /usr

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)
PYTHON_VER     = $(PYTHON_MAJOR)$(PYTHON_MINOR)
PYTHON_VERSION = $(PYTHON_MAJOR).$(PYTHON_MINOR)

PYTHONDIR = $(PREFIX)/lib/python$(PYTHON_VERSION)

CYTHON    = cython$(PYTHON_MAJOR)
PKGCONFIG = pkg-config
PYTHON    = python$(PYTHON_MAJOR)

CC = c99

CPPFLAGS =
CFLAGS   = -Wall $$($(PKGCONFIG) --cflags python$(PYTHON_MAJOR)) -O2
LDFLAGS  = $$($(PKGCONFIG) --libs python$(PYTHON_MAJOR)) -lcoopgamma