Fixed errors and documented everything

This commit is contained in:
2014-12-05 03:04:46 +01:00
parent 340aa29d4a
commit a659c072da
22 changed files with 3958 additions and 153 deletions
+5 -2
View File
@@ -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