makefile with cdrom
This commit is contained in:
6
Makefile
6
Makefile
@@ -4,6 +4,11 @@ SRC_DIR=source
|
|||||||
BUILD_DIR=disk_images
|
BUILD_DIR=disk_images
|
||||||
DATA_DIR=data
|
DATA_DIR=data
|
||||||
|
|
||||||
|
# CD image
|
||||||
|
cdrom: $(BUILD_DIR)/crawos.iso
|
||||||
|
$(BUILD_DIR)/crawos.iso: floppy_image
|
||||||
|
mkisofs -quiet -V 'CRAWOS' -input-charset iso8859-1 -o disk_images/crawos.iso -b crawos.img disk_images/
|
||||||
|
|
||||||
# Floppy image
|
# Floppy image
|
||||||
# Fat12
|
# Fat12
|
||||||
floppy_image: $(BUILD_DIR)/crawos.img
|
floppy_image: $(BUILD_DIR)/crawos.img
|
||||||
@@ -14,6 +19,7 @@ $(BUILD_DIR)/crawos.img: bootloader kernel
|
|||||||
mcopy -i $(BUILD_DIR)/crawos.img $(BUILD_DIR)/kernel.bin "::kernel.bin" # Put kernel.bin inside the disk image
|
mcopy -i $(BUILD_DIR)/crawos.img $(BUILD_DIR)/kernel.bin "::kernel.bin" # Put kernel.bin inside the disk image
|
||||||
for filename in $(DATA_DIR)/*; do mcopy -i $(BUILD_DIR)/crawos.img $$filename "::/$$(echo $$filename | xargs -n 1 basename)"; done
|
for filename in $(DATA_DIR)/*; do mcopy -i $(BUILD_DIR)/crawos.img $$filename "::/$$(echo $$filename | xargs -n 1 basename)"; done
|
||||||
|
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
bootloader: $(BUILD_DIR)/boot.bin
|
bootloader: $(BUILD_DIR)/boot.bin
|
||||||
$(BUILD_DIR)/boot.bin:
|
$(BUILD_DIR)/boot.bin:
|
||||||
|
|||||||
Binary file not shown.
BIN
disk_images/crawos.iso
Normal file
BIN
disk_images/crawos.iso
Normal file
Binary file not shown.
Reference in New Issue
Block a user