aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-19 20:30:41 +0100
committerMattias Andrée <maandree@kth.se>2021-02-19 20:30:49 +0100
commitc27fd70b5e4c3efe5ad034069108414d36f9bd9e (patch)
treeec0befb659ebeca4a68c45b052e713fb2ad26f05 /config.mk
parentimprove readme (diff)
downloadpython-bus-c27fd70b5e4c3efe5ad034069108414d36f9bd9e.tar.gz
python-bus-c27fd70b5e4c3efe5ad034069108414d36f9bd9e.tar.bz2
python-bus-c27fd70b5e4c3efe5ad034069108414d36f9bd9e.tar.xz
some improvments + license change3.1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.mk b/config.mk
new file mode 100644
index 0000000..e45ec85
--- /dev/null
+++ b/config.mk
@@ -0,0 +1,10 @@
+PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
+PYTHONDIR = $(PREFIX)/lib/python$(PY_MAJOR).$(PY_MINOR)
+
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOUCE -D_XOPEN_SOURCE=700
+CFLAGS = -std=c99 -O2 $$(pkg-config --cflags python$(PY_MAJOR)) $(CPPFLAGS)
+LDFLAGS = -s $$(pkg-config --libs python$(PY_MAJOR)) -lbus
+
+CYTHON = cython
+PYTHON = python$(PY_MAJOR)