qboot: add cscope/ctags/TAGS Makefile targets (#16)

Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
diff --git a/Makefile b/Makefile
index 937b277..476436c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,4 +35,21 @@
 
 clean:
 	rm -f $(obj-y) $(all-y) bios.bin.elf
+	rm -f cscope.* tags TAGS
 	rm -rf .deps
+
+.PHONY: cscope
+cscope:
+	rm -f cscope.*
+	find . -name "*.[chsS]" -print | sed 's,^\./,,' > cscope.files
+	cscope -b -i cscope.files
+
+.PHONY: ctags
+ctags:
+	rm -f tags
+	find . -name "*.[ch]" -exec ctags --append {} +
+
+.PHONY: TAGS
+TAGS:
+	rm -f TAGS
+	find . -name "*.[ch]" -exec etags --append {} +