Portable Makefile

This commit is contained in:
2025-05-28 20:15:56 +02:00
parent a81db2b8d1
commit e0756a714d

View File

@ -1,2 +1,11 @@
yt_download: .POSIX:
gcc -ansi -I . -L. -ggdb -o yt_download yt_download.c -Wl,-Bstatic -lstrops -Wl,-Bdynamic yt_download: yt_download.c
gcc -ansi -O2 -o yt_download yt_download.c -lstrops
.PHONY: install uninstall
install: yt_download
sudo mv yt_download /usr/local/bin
uninstall:
sudo rm /usr/local/bin/yt_download