aboutsummaryrefslogtreecommitdiff
path: root/.local/src/rainfall/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '.local/src/rainfall/Makefile')
-rw-r--r--.local/src/rainfall/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/src/rainfall/Makefile b/.local/src/rainfall/Makefile
new file mode 100644
index 0000000..c7cdd98
--- /dev/null
+++ b/.local/src/rainfall/Makefile
@@ -0,0 +1,4 @@
+compile:
+ cython3 --embed -o rainfall.c -X language_level=3 rainfall.py
+ PYTHON_VERSION=`ls --sort version /usr/include | grep -o 'python[3-9]\+\.[0-9]\+' | tail -1` ; \
+ gcc -march=native -O2 -pipe -fno-plt -I /usr/include/$$PYTHON_VERSION -o rainfall rainfall.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl