aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.local/share/python-SysTrayMediaControls/Makefile3
-rw-r--r--.local/share/python-dateTimeSetter/Makefile3
-rw-r--r--.local/share/python-rainfall/Makefile3
3 files changed, 6 insertions, 3 deletions
diff --git a/.local/share/python-SysTrayMediaControls/Makefile b/.local/share/python-SysTrayMediaControls/Makefile
index 88dbe60..eaca7be 100644
--- a/.local/share/python-SysTrayMediaControls/Makefile
+++ b/.local/share/python-SysTrayMediaControls/Makefile
@@ -1,3 +1,4 @@
compile:
cython3 --embed -o SysTrayMediaControls.c -X language_level=3 SysTrayMediaControls.py
- gcc -march=native -O2 -pipe -fno-plt -I /usr/include/python3.12 -o SysTrayMediaControls SysTrayMediaControls.c -lpython3.12 -lpthread -lm -lutil -ldl `pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1 dbus-1 dbus-glib-1`
+ 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 SysTrayMediaControls SysTrayMediaControls.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl `pkg-config --cflags --libs gtk+-3.0 appindicator3-0.1 dbus-1 dbus-glib-1`
diff --git a/.local/share/python-dateTimeSetter/Makefile b/.local/share/python-dateTimeSetter/Makefile
index 7f19214..156d269 100644
--- a/.local/share/python-dateTimeSetter/Makefile
+++ b/.local/share/python-dateTimeSetter/Makefile
@@ -1,3 +1,4 @@
compile:
cython3 --embed -o dateTime.c -X language_level=3 dateTime.py
- gcc -march=native -O2 -pipe -fno-plt -I /usr/include/python3.12 -o dateTime dateTime.c -lpython3.12 -lpthread -lm -lutil -ldl
+ 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 dateTime dateTime.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl
diff --git a/.local/share/python-rainfall/Makefile b/.local/share/python-rainfall/Makefile
index 567100b..63c96df 100644
--- a/.local/share/python-rainfall/Makefile
+++ b/.local/share/python-rainfall/Makefile
@@ -1,3 +1,4 @@
compile:
cython3 --embed -o rainfall.c -X language_level=3 rainfall.py
- gcc -march=native -O2 -pipe -fno-plt -I /usr/include/python3.12 -o rainfall rainfall.c -lpython3.12 -lpthread -lm -lutil -ldl
+ 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 rainfall rainfall.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl