start adding disk things
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Define the object files
|
||||
OBJS = bin/boot.o bin/kernel.o bin/idt.o bin/isr.o bin/screen.o bin/utils.o bin/string.o bin/stdio.o bin/gdt.o
|
||||
OBJS = bin/boot.o bin/kernel.o bin/idt.o bin/isr.o bin/screen.o bin/utils.o bin/string.o bin/stdio.o bin/gdt.o bin/disk.o
|
||||
|
||||
# Define the compiler and assembler
|
||||
CC = gcc -D__is_katauos
|
||||
@@ -18,6 +18,13 @@ OUTPUT = myos.bin
|
||||
|
||||
all: $(OUTPUT)
|
||||
|
||||
image:
|
||||
cp myos.bin grubshit/boot/
|
||||
grub-mkrescue -o boot.iso grubshit
|
||||
|
||||
test:
|
||||
qemu-system-i386 -hda boot.iso -m 512M
|
||||
|
||||
$(OUTPUT): $(OBJS)
|
||||
$(CC) -T $(LDSCRIPT) -o $@ $(OBJS) $(LDFLAGS)
|
||||
|
||||
@@ -48,8 +55,12 @@ bin/stdio.o: src/stdio.c
|
||||
bin/gdt.o: src/gdt.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
bin/disk.o: src/disk.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -rf bin/
|
||||
rm -f $(OUTPUT)
|
||||
rm boot.iso
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
Reference in New Issue
Block a user