blob: 0432f413673918221302cd107cf7f4bba786c0fa (
plain) (
tree)
|
|
.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 Source/*/{*,*/*,*/*/*}.{c,asm,cpp,h} 2> /dev/null | wc -l; \
echo "TODOs : "; \
cat Source/*/{*,*/*,*/*/*}.{c,asm,cpp,h} 2> /dev/null | grep TODO;
|