2007-04-02 14:52:01 +02:00
|
|
|
all: makall
|
|
|
|
|
2007-04-02 15:48:46 +02:00
|
|
|
makall: boot/boot12.bin lib/libs.o system/system.sys
|
2007-04-02 14:52:01 +02:00
|
|
|
sync
|
|
|
|
|
2018-07-24 04:04:07 +02:00
|
|
|
install:
|
|
|
|
(sudo apt-get install nasm gcc qemu fusefat cgdb)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
backup: clean
|
2007-04-02 15:48:46 +02:00
|
|
|
(cd .. ; tar cf - cosc | gzip -f - > backup.tar.gz ; cd cosc)
|
2007-04-02 15:24:34 +02:00
|
|
|
|
2007-04-02 15:48:46 +02:00
|
|
|
copy:
|
2018-07-24 04:04:07 +02:00
|
|
|
(cd final; make)
|
|
|
|
|
|
|
|
test: all copy qemu
|
|
|
|
|
|
|
|
view:
|
|
|
|
(hexdump -C ./final/cos2000.img|head -c10000)
|
|
|
|
|
|
|
|
debug-boot: all copy qemu-debug
|
|
|
|
(sleep 2;cgdb -x ./debug/boot.txt)
|
|
|
|
|
|
|
|
debug-loader: all copy qemu-debug
|
|
|
|
(sleep 2;cgdb -x ./debug/loader.txt)
|
|
|
|
|
|
|
|
debug-system: all copy qemu-debug
|
|
|
|
(sleep 2;cgdb -x ./debug/system.txt)
|
|
|
|
|
|
|
|
qemu-debug:
|
|
|
|
(qemu-system-i386 -m 1G -fda ./final/cos2000.img -s -S &)
|
|
|
|
|
|
|
|
qemu:
|
|
|
|
(qemu-system-i386 -m 1G -fda ./final/cos2000.img -s)
|
2007-04-02 14:52:01 +02:00
|
|
|
|
|
|
|
system/system.sys:
|
|
|
|
(cd system; make)
|
|
|
|
|
|
|
|
boot/boot12.bin:
|
|
|
|
(cd boot; make)
|
|
|
|
|
|
|
|
lib/libs.o:
|
2007-04-02 15:48:46 +02:00
|
|
|
(cd lib; make)
|