From 15cd209a581c2ac9ec63db880cac640cdea3ea04 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Fri, 6 Jun 2025 20:18:26 -0400 Subject: refactor: move directory locations --- .local/src/python-rainfall/Makefile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .local/src/python-rainfall/Makefile (limited to '.local/src/python-rainfall/Makefile') diff --git a/.local/src/python-rainfall/Makefile b/.local/src/python-rainfall/Makefile new file mode 100644 index 0000000..c7cdd98 --- /dev/null +++ b/.local/src/python-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 -- cgit v1.2.3