blob: 1da4ce55f0e03e97f785561b9f2ae0bb59436c61 (
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
49
50
51
52
|
.PHONY: clean, mrproper, Init.rfs, floppy, commit
Projects = kernel library modules/test
QemuCmd = qemu-system-i386
Floppy = Grapes.fl.img
all:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Building $$p"; \
make -C src/$$p; \
done
rebuild: mrproper all
clean:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Cleaning $$p"; \
make -C src/$$p clean -s; \
done
mrproper:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Cleaning $$p"; \
make -C src/$$p mrproper -s; \
done
commit: mrproper
git add .
git commit -a; exit 0
git push origin
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
$(QemuCmd) -fda $(Floppy) -m 16
qemu-gdb: all floppy
$(QemuCmd) -fda $(Floppy) -m 16 -s -S & gdb src/kernel/kernel.elf -x gdb-cmd
|