2018-09-27 17:12:12 +02:00
|
|
|
all: bits32 bits64 floppy harddisk uefi
|
|
|
|
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-09-27 07:55:24 +02:00
|
|
|
floppy: boot/boot12.bin final/floppy.img.final
|
|
|
|
|
|
|
|
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-09-27 07:55:24 +02:00
|
|
|
(sudo apt-get install nasm gcc qemu fusefat fuseext2 cgdb)
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
clean:
|
|
|
|
(cd system; make clean)
|
|
|
|
(cd boot; make clean)
|
|
|
|
(cd lib;make clean)
|
2018-07-24 04:04:07 +02:00
|
|
|
(cd final;make clean)
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
littleclean:
|
|
|
|
(cd system; make clean)
|
|
|
|
(cd boot; make clean)
|
|
|
|
(cd lib;make clean)
|
|
|
|
(cd final;make littleclean)
|
|
|
|
sync
|
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
indent:
|
|
|
|
(cd system; make indent)
|
|
|
|
(cd lib;make indent)
|
|
|
|
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-09-27 17:12:12 +02:00
|
|
|
test: bits32 harddisk qemu
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-09-27 17:12:12 +02:00
|
|
|
test64: 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-09-27 17:32:25 +02:00
|
|
|
floppytest: bits32 floppy qemu-floppy
|
2018-08-22 18:39:06 +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-09-27 11:13:27 +02:00
|
|
|
debug64: debug-system64
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
debug-boot: all harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/boot.txt)
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
debug-loader: all harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/loader.txt)
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
debug-system: all harddisk qemu-debug
|
2018-07-24 04:04:07 +02:00
|
|
|
(sleep 2;cgdb -x ./debug/system.txt)
|
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
debug-system64: all uefi qemu-debug64
|
|
|
|
(sleep 2;cgdb -x ./debug/system.txt)
|
|
|
|
|
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:
|
|
|
|
(killall qemu-system-x86_64;qemu-system-x86_64 -m 1G -drive format=raw,file=./final/harddiskuefi.img.final --bios /usr/share/qemu/OVMF.fd -s -S &)
|
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
qemu:
|
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 --enable-kvm -cpu host -s &)
|
|
|
|
|
2018-09-27 11:13:27 +02:00
|
|
|
qemu64:
|
|
|
|
(killall qemu-system-x86_64;qemu-system-x86_64 -m 1G -drive format=raw,file=./final/harddiskuefi.img.final --bios /usr/share/qemu/OVMF.fd --enable-kvm -cpu host -s &)
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
qemu-floppy:
|
|
|
|
(killall qemu-system-i386;qemu-system-i386 -m 1G -fda ./final/floppy.img.final --enable-kvm -cpu host -s &)
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
system/system.sys:
|
2018-09-27 17:12:12 +02:00
|
|
|
(cd system; make ARCH=$(ARCH))
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
boot/boot12.bin:
|
|
|
|
(cd boot; make)
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
final/floppy.img.final:
|
|
|
|
(cd final; make floppy.img.final)
|
|
|
|
|
|
|
|
final/harddisk.img.final:
|
2018-09-27 11:13:27 +02:00
|
|
|
(cd final; make harddisk.img.final)
|
|
|
|
|
|
|
|
final/harddiskuefi.img.final:
|
|
|
|
(cd final; make harddiskuefi.img.final)
|
2018-09-27 07:55:24 +02:00
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
lib/libs.o:
|
2007-04-02 15:48:46 +02:00
|
|
|
(cd lib; make)
|