aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..610ba13
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,16 @@
+PREFIX = /usr
+
+PY_MAJOR = $$($(PYTHON) --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1)
+PY_MINOR = $$($(PYTHON) --version 2>&1 | cut -d ' ' -f 2 | cut -d . -f 2)
+PY_VER = $(PY_MAJOR)$(PY_MINOR)
+PY_VERSION = $(PY_MAJOR).$(PY_MINOR)
+
+PYTHONDIR = $(PREFIX)/lib/python$(PY_VERSION)
+
+CYTHON = cython
+PKGCONFIG = pkg-config
+PYTHON = python3
+
+CPPFLAGS =
+CFLAGS = -std=c99 -Wall $$($(PKGCONFIG) --cflags python$(PY_MAJOR)) -O2
+LDFLAGS = $$($(PKGCONFIG) --libs python$(PY_MAJOR)) -lcoopgamma