Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
3a6e764c0b | |||
665cc326ae |
3 changed files with 15 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
*.exe
|
*.exe
|
||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
bin/
|
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)
|
|
@ -17,10 +17,9 @@ OPTIONS
|
||||||
|
|
||||||
## how to compile
|
## how to compile
|
||||||
|
|
||||||
- get a c compiler (i use gcc or clang)
|
- `make`
|
||||||
- `gcc -o ./allocatememory -O2 ./main.c`
|
- (optional) `sudo make install`
|
||||||
- ???
|
- yeag
|
||||||
- profit
|
|
||||||
|
|
||||||
## why
|
## why
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue