From e0756a714d882a43b76f7b15720fe675885d5e48 Mon Sep 17 00:00:00 2001 From: AustrianToast Date: Wed, 28 May 2025 20:15:56 +0200 Subject: [PATCH] Portable Makefile --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7f471e9..6243270 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,11 @@ -yt_download: - gcc -ansi -I . -L. -ggdb -o yt_download yt_download.c -Wl,-Bstatic -lstrops -Wl,-Bdynamic +.POSIX: +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