From 665cc326ae1edcc5ea11b0508fa899ea2865c09c Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 24 Mar 2025 23:58:18 +0000 Subject: [PATCH] add makefile --- .gitignore | 1 + Makefile | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index e058d00..ebc3ca4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.exe **/.DS_Store bin/ +melody-allocator diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8054e0c --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +EXEC = "melody-allocator" + +$(EXEC): + gcc -o ./$(EXEC) -O2 ./main.c + +install: $(EXEC) + cp $(EXEC) /usr/local/bin/ + chmod +x /usr/local/bin/$(EXEC) + +clean: + rm ./$(EXEC)