2007-04-02 14:52:01 +02:00
|
|
|
all: makall
|
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
makall: lib/libs.o system/system.sys final/harddisk.img.final
|
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-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
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
test: all harddisk qemu
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
retest: littleclean test
|
2018-07-24 04:04:07 +02:00
|
|
|
|
2018-09-27 07:55:24 +02:00
|
|
|
floppytest: 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 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)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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 &)
|
|
|
|
|
|
|
|
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:
|
|
|
|
(cd system; make)
|
|
|
|
|
|
|
|
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:
|
|
|
|
(cd final; make harddisk.img.final)
|
|
|
|
|
2007-04-02 14:52:01 +02:00
|
|
|
lib/libs.o:
|
2007-04-02 15:48:46 +02:00
|
|
|
(cd lib; make)
|