aboutsummaryrefslogtreecommitdiff
path: root/.local/src/python-dateTimeSetter/Makefile
diff options
context:
space:
mode:
authorkj-sh6042025-06-06 20:18:26 -0400
committerkj-sh6042025-06-06 20:18:26 -0400
commit15cd209a581c2ac9ec63db880cac640cdea3ea04 (patch)
treef0f38b54908e5c650ee63d8c2f0abfa724e941e4 /.local/src/python-dateTimeSetter/Makefile
parentfa7425e3ca53eab2dfc255b3652a7bed8e21283d (diff)
refactor: move directory locations
Diffstat (limited to '.local/src/python-dateTimeSetter/Makefile')
-rw-r--r--.local/src/python-dateTimeSetter/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/src/python-dateTimeSetter/Makefile b/.local/src/python-dateTimeSetter/Makefile
new file mode 100644
index 0000000..91b1c6e
--- /dev/null
+++ b/.local/src/python-dateTimeSetter/Makefile
@@ -0,0 +1,4 @@
+compile:
+ cython3 --embed -o dateTime.c -X language_level=3 dateTime.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 dateTime dateTime.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl