This commit is contained in:
2024-05-21 14:38:12 +03:00
parent ebbbd92e36
commit 23fe286eec
12 changed files with 301 additions and 235 deletions

View File

@@ -1,17 +1,15 @@
CFLAGS = -ffreestanding -nostdlib -fno-builtin -fno-stack-protector -Wall -Wextra
LDFLAGS = -ffreestanding -nostdlib -lgcc
ASFLAGS =
CC = i686-elf-gcc
AS = i686-elf-as
LD = i686-elf-gcc
GRUB_FILE = grub-file
GRUB_MKRESCUE = grub-mkrescue
KERNEL = myos.bin
ISO = myos.iso
SOURCES_C = kernel.c gdt.c
SOURCES_C = kernel.c terminal.c idt.c timer.c io.c vga.c gdt.c
SOURCES_ASM = boot.s idt_load.s gdt_flush.s pit_handler.s
OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_ASM:.s=.o)