2018-12-09 13:44:32 +01:00
|
|
|
all: programs bits32 bits64 harddisk uefi
|
2018-09-27 17:12:12 +02:00
|
|
|
sync
|
|
|
|
|
|
|
|
bits32: ARCH=bits32
|
2018-09-27 17:32:25 +02:00
|
|
|
bits32: lib/libs.o system/system.sys
|
2018-09-27 17:12:12 +02:00
|
|
|
sync
|
2007-04-02 14:52:01 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
bits64: ARCH=bits64
|
2018-09-27 17:32:25 +02:00
|
|
|
bits64: lib/libs.o system/system.sys
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
2018-12-09 13:44:32 +01:00
|
|
|
programs: programs/test
|
|
|
|
|
|
|
|
programs/test:
|
|
|
|
make -C programs
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
harddisk: final/harddisk.img.final
|
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
uefi: final/harddiskuefi.img.final
|
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
install:
|
2018-12-12 15:25:04 +01:00
|
|
|
(sudo apt-get install nasm gcc qemu fusefat fuseext2 cgdb ovmf bsdmainutils tar bsdmainutils indent binutils bochs bochs-x bochsbios dos2unix)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-12-12 12:31:30 +01:00
|
|
|
togit:
|
|
|
|
make -C system togit
|
|
|
|
make -C lib togit
|
|
|
|
make -C final togit
|
|
|
|
make -C programs togit
|
|
|
|
git status
|
|
|
|
sync
|
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
clean:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C system clean
|
|
|
|
make -C lib clean
|
|
|
|
make -C final clean
|
|
|
|
make -C programs clean
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
littleclean:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C system clean
|
|
|
|
make -C lib clean
|
2018-12-10 17:03:52 +01:00
|
|
|
make -C final littleclean
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C programs clean
|
2018-09-27 07:55:24 +02:00
|
|
|
sync
|
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C system indent
|
|
|
|
make -C lib indent
|
2018-12-12 12:31:30 +01:00
|
|
|
make -C programs indent
|
2018-09-27 17:12:12 +02:00
|
|
|
sync
|
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
backup: clean
|
2018-09-27 07:55:24 +02:00
|
|
|
(cd .. ; tar cf - Source\ C | gzip -f - > backup.tar.gz)
|
|
|
|
|
2018-12-12 10:14:31 +01:00
|
|
|
test: programs bits32 harddisk qemu
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-12-12 10:14:31 +01:00
|
|
|
test64: programs bits64 uefi qemu64
|
2018-09-27 11:13:27 +02:00
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
retest: littleclean test
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
retest64: littleclean test64
|
2018-09-27 11:13:27 +02:00
|
|
|
|
2018-12-12 10:14:31 +01:00
|
|
|
testbochs: programs bits32 harddisk bochs-debug
|
2018-09-27 21:01:02 +02:00
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
view:
|
2018-09-27 07:55:24 +02:00
|
|
|
(hexdump -C ./final/harddisk.img.final|head -c10000)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-08-22 18:39:06 +02:00
|
|
|
debug: debug-system
|
|
|
|
|
2018-10-02 17:16:23 +02:00
|
|
|
redebug: littleclean debug-system
|
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
debug64: debug-system64
|
|
|
|
|
2018-10-13 17:17:40 +02:00
|
|
|
redebug64: littleclean debug-system64
|
|
|
|
|
2018-10-04 21:49:06 +02:00
|
|
|
debug-boot: bits32 harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/boot.txt)
|
|
|
|
|
2018-10-04 21:49:06 +02:00
|
|
|
debug-loader: bits32 harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/loader.txt)
|
|
|
|
|
2018-10-04 21:49:06 +02:00
|
|
|
debug-system: bits32 harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/system.txt)
|
|
|
|
|
2018-10-04 21:49:06 +02:00
|
|
|
debug-system64: bits64 uefi qemu-debug64
|
2018-09-27 11:13:27 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/system.txt)
|
|
|
|
|
2018-11-29 16:45:40 +01:00
|
|
|
bochs-debug:
|
|
|
|
(killall bochs-debug;bochs -f ./debug/config.bochs)
|
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
qemu-debug:
|
2018-09-27 07:55:24 +02:00
|
|
|
(killall qemu-system-i386;qemu-system-i386 -m 1G -drive format=raw,file=./final/harddisk.img.final -s -S &)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
qemu-debug64:
|
2018-11-16 15:57:34 +01:00
|
|
|
(killall qemu-system-x86_64;qemu-system-x86_64 -m 5G -drive format=raw,file=./final/harddiskuefi.img.final --bios /usr/share/qemu/OVMF.fd -s -S &)
|
2018-09-27 11:13:27 +02:00
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
qemu:
|
2018-09-28 00:03:45 +02:00
|
|
|
(killall qemu-system-i386;qemu-system-i386 -m 1G -drive format=raw,file=./final/harddisk.img.final --enable-kvm -cpu host -s &)
|
2018-09-27 07:55:24 +02:00
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
qemu64:
|
2018-11-16 15:57:34 +01:00
|
|
|
(killall qemu-system-x86_64;qemu-system-x86_64 -m 5G -drive format=raw,file=./final/harddiskuefi.img.final --bios /usr/share/qemu/OVMF.fd --enable-kvm -cpu host -s &)
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
system/system.sys:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C system VESA=$(VESA)
|
2018-09-27 07:55:24 +02:00
|
|
|
|
|
|
|
final/harddisk.img.final:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C final harddisk.img.final
|
2018-09-27 11:13:27 +02:00
|
|
|
|
|
|
|
final/harddiskuefi.img.final:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C final harddiskuefi.img.final
|
2018-09-27 07:55:24 +02:00
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
lib/libs.o:
|
2018-12-09 13:44:32 +01:00
|
|
|
make -C lib
|