Makefile
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:1k
- #FIRST MAKEFILE
- export C_INCLUDE_PATH=./include/
- DIRS = boot kernel extra
- all:
- for dir in $(DIRS); do make -C $$dir; done
- ld -T linkVM.ld -o kernel.bin
- i686-pc-linux-gnu-ld -T linkVM.ld
- -umount mount
- #-mount -t msdos /dev/disk1 mount
- -mount -o loop ./floppy.dmg mount
- cp kernel.bin mount/BOOT/
- -chown esteve:users * -R &> /dev/null
- chmod 0660 floppy.dmg
- sync
- #cp ./boot/boot.bin ./
- #cat ./kernel/kernel.bin >> boot.bin
- cp floppy.dmg /home/esteve/TizOz/disk2.img
- clean:
- for dir in $(DIRS); do make -C $$dir clean; done
- -rm build/*.o
- -rm kernel.bin