diff options
author | Alexis211 <alexis211@gmail.com> | 2009-08-21 21:16:48 +0200 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-08-21 21:16:48 +0200 |
commit | ae803baa4e0ec584c7afd3f6d55f2e6b32010b46 (patch) | |
tree | a8d39cdeff28d2ce08ff7485736fef8119669547 /Makefile | |
parent | f93a269f41659d9a33ea6f24411ca691978986cf (diff) | |
download | Melon-ae803baa4e0ec584c7afd3f6d55f2e6b32010b46.tar.gz Melon-ae803baa4e0ec584c7afd3f6d55f2e6b32010b46.zip |
System boots up and shows a nice ASCII art logo.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ad9408 --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +.PHONY: clean, mrproper, Init.img + +Files = Source/Kernel/Melon.ke +Floppy = Melon.img + +Projects = Kernel + + +all: + for p in $(Projects); do \ + make -C Source/$$p -s; \ + done + +rebuild: + for p in $(Projects); do \ + make -C Source/$$p rebuild -s; \ + done + +clean: + for p in $(Projects); do \ + make -C Source/$$p clean -s; \ + done + +mproper: + for p in $(Projects); do \ + make -C Source mrproper -s; \ + done + +floppy: + sudo mount $(Floppy) Mount -o loop + for f in $(Files); do \ + sudo cp $$f Mount; \ + done + sleep 0.4 + sudo umount Mount + +bochs: + bochs -f Bochs.cfg + +qemu: + qemu -fda $(Floppy) -m 16 + +stats: + echo; echo " ** Statistics for project O3S ** "; \ + echo -n "Lines of code : "; \ + cat src/{*,*/*,*/*/*}.{c,asm,cpp,h} 2> /dev/null | wc -l; \ + echo "TODOs : "; \ + cat src/{*,*/*,*/*/*}.{c,asm,cpp,h} 2> /dev/null | grep TODO; |