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