blob: 1ad94087757d8ffc6b470e965ef08a66576931f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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;
|