diff options
author | Alexis211 <alexis211@gmail.com> | 2010-01-25 18:38:43 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-01-25 18:38:43 +0100 |
commit | 4ae83c83f34759172e9c575c8ac875011bfaff2d (patch) | |
tree | 26ec6c665cbada6e413bd31e34c60d7c2bbb41c3 /Makefile | |
download | TCE-4ae83c83f34759172e9c575c8ac875011bfaff2d.tar.gz TCE-4ae83c83f34759172e9c575c8ac875011bfaff2d.zip |
First commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..94f5ff7 --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +.PHONY: clean, mrproper, Init.rfs, floppy, commit + +Projects = stem + +Kernel = src/stem/stem.elf +Floppy = Grapes.fl.img + +all: + for p in $(Projects); do \ + echo "=> Building $$p"; \ + make -C src/$$p -s; \ + done + +rebuild: mrproper all + +clean: + for p in $(Projects); do \ + echo "=> Building $$p"; \ + make -C src/$$p clean -s; \ + done + +mrproper: + for p in $(Projects); do \ + echo "=> Building $$p"; \ + make -C src/$$p mrproper -s; \ + done + +commit: mrproper + git add . + git commit -a; exit 0 + git push github + git push home + +floppy: + mkdir mnt; exit 0 + sudo mount $(Floppy) mnt -o loop + sudo ./copy_fdd.sh + sleep 0.3 + sudo umount mnt + + +bochs: all floppy + bochs -f bochs.cfg + +qemu: all floppy + qemu -fda $(Floppy) -m 8 |