add makefile
This commit is contained in:
parent
cda29dd317
commit
665cc326ae
2 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
*.exe
|
||||
**/.DS_Store
|
||||
bin/
|
||||
melody-allocator
|
||||
|
|
11
Makefile
Normal file
11
Makefile
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue