organize source files into separate directories

This commit is contained in:
2025-04-04 14:28:33 +03:00
parent f660beb3a7
commit b7b33fefca
16 changed files with 16 additions and 16 deletions
+16 -16
View File
@@ -6,7 +6,7 @@ CC = gcc -D__is_katauos
AS = nasm
# Define the compiler flags
CFLAGS = -std=gnu99 -ffreestanding -O0 -Wall -Wextra -m32 -g
CFLAGS = -I./include/ -std=gnu99 -ffreestanding -O0 -Wall -Wextra -m32 -g
ASFLAGS = -f elf32
# Define the linker flags
@@ -57,49 +57,49 @@ $(OUTPUT): $(OBJS)
bin/boot.o: src/boot.asm
$(AS) $(ASFLAGS) $< -o $@
bin/kernel.o: src/kernel.c
bin/kernel.o: src/kernel/kernel.c
$(CC) $(CFLAGS) -c $< -o $@
bin/screen.o: src/screen.c
bin/screen.o: src/drivers/screen.c
$(CC) $(CFLAGS) -c $< -o $@
bin/isr.o: src/isr.c
bin/isr.o: src/kernel/isr.c
$(CC) $(CFLAGS) -mgeneral-regs-only -c $< -o $@
bin/idt.o: src/idt.c
bin/idt.o: src/kernel/idt.c
$(CC) $(CFLAGS) -c $< -o $@
bin/utils.o: src/utils.c
bin/utils.o: src/utils/utils.c
$(CC) $(CFLAGS) -c $< -o $@
bin/string.o: src/string.c
bin/string.o: src/utils/string.c
$(CC) $(CFLAGS) -c $< -o $@
bin/stdio.o: src/stdio.c
bin/stdio.o: src/utils/stdio.c
$(CC) $(CFLAGS) -c $< -o $@
bin/disk.o: src/disk.c
bin/disk.o: src/drivers/disk.c
$(CC) $(CFLAGS) -c $< -o $@
bin/pic.o: src/pic.c
bin/pic.o: src/kernel/pic.c
$(CC) $(CFLAGS) -c $< -o $@
bin/pit.o: src/pit.c
bin/pit.o: src/kernel/pit.c
$(CC) $(CFLAGS) -c $< -o $@
bin/keyboard.o: src/keyboard.c
bin/keyboard.o: src/drivers/keyboard.c
$(CC) $(CFLAGS) -c $< -o $@
bin/paging.o: src/paging.c
bin/paging.o: src/mm/paging.c
$(CC) $(CFLAGS) -c $< -o $@
bin/fat.o: src/fat.c
bin/fat.o: src/drivers/fat.c
$(CC) $(CFLAGS) -c $< -o $@
bin/switch.o: src/switch.asm
bin/switch.o: src/tasking/switch.asm
$(AS) $(ASFLAGS) $< -o $@
bin/task.o: src/task.c
bin/task.o: src/tasking/task.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File