Fixed errors and documented everything
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Makefile for the nibbles lab.
|
||||
# ---> Compile with gamke on BSD systems! <---
|
||||
|
||||
all: nibbles_asm nibbles_asm_start
|
||||
all: nibbles_c nibbles_asm nibbles_asm_start
|
||||
|
||||
# Rule for compiling C source
|
||||
.c.o:
|
||||
@@ -25,7 +25,10 @@ nibbles_asm: main.o nibbles.o helpers.o
|
||||
nibbles_asm_start: start.o nibbles.o helpers.o
|
||||
gcc -m32 -lcurses -lc -nostdlib $^ -o $@
|
||||
|
||||
# Documentation
|
||||
docs: cnibbles.c nibbles.S start.S
|
||||
docco --languages=docco-languages.json $^
|
||||
|
||||
clean:
|
||||
rm -f *~
|
||||
rm -f *.o
|
||||
rm -f nibbles_c nibbles_asm nibbles_asm_start
|
||||
|
||||
Reference in New Issue
Block a user