summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-08-21 21:16:48 +0200
committerAlexis211 <alexis211@gmail.com>2009-08-21 21:16:48 +0200
commitae803baa4e0ec584c7afd3f6d55f2e6b32010b46 (patch)
treea8d39cdeff28d2ce08ff7485736fef8119669547 /Makefile
parentf93a269f41659d9a33ea6f24411ca691978986cf (diff)
downloadMelon-ae803baa4e0ec584c7afd3f6d55f2e6b32010b46.tar.gz
Melon-ae803baa4e0ec584c7afd3f6d55f2e6b32010b46.zip
System boots up and shows a nice ASCII art logo.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
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;