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