From 665cc326ae1edcc5ea11b0508fa899ea2865c09c Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 24 Mar 2025 23:58:18 +0000 Subject: [PATCH 1/2] 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) From 3a6e764c0b654ea68087d1ff67f558b3ee1ef09b Mon Sep 17 00:00:00 2001 From: ari melody Date: Tue, 25 Mar 2025 00:07:21 +0000 Subject: [PATCH 2/2] update readme --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f235539..69e6af0 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,9 @@ OPTIONS ## how to compile -- get a c compiler (i use gcc or clang) -- `gcc -o ./allocatememory -O2 ./main.c` -- ??? -- profit +- `make` +- (optional) `sudo make install` +- yeag ## why