add makefile

This commit is contained in:
ari melody 2025-03-24 23:58:18 +00:00
parent cda29dd317
commit 665cc326ae
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.exe
**/.DS_Store
bin/
melody-allocator

11
Makefile Normal file
View file

@ -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)