Compare commits

..

2 Commits

Author SHA1 Message Date
deadvey
44e4447d21 Merge branch 'master' of ssh://git.javalsai.tuxcord.net:1022/deadvey/crawos 2025-10-20 16:47:13 +01:00
deadvey
959c90a054 makefile with cdrom 2025-10-20 16:45:30 +01:00
5 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
*.swp *.swp
disk-images/*

View File

@@ -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.

Binary file not shown.

Binary file not shown.