diff options
| author | Carlos Maiolino <[email protected]> | 2025-07-26 15:32:32 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-08-01 13:07:38 +0200 |
| commit | 57d8e2b236c7a185bdd941c247ef0dcc5961a24e (patch) | |
| tree | 1d1f496510c77422647f1513c3ca6f85e0110689 /Makefile | |
| parent | 80ac430366d65ef89a078832380a021308bbbfdf (diff) | |
Implement interrupt descriptor table
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -11,7 +11,10 @@ KOBJ_LIBS = ./build/string.o KOBJ_FILES = $(KERNEL_ASM_OBJ) \ $(KERNEL_OBJ) \ - ./build/vga.o + ./build/vga.o \ + ./build/idt/idt.asm.o \ + ./build/idt/idt.o + BOOT_TGT =./bin/boot.bin KERNEL_TGT = ./bin/kernel.bin @@ -48,6 +51,13 @@ $(BUILD_DIR)/kernel.o: ./src/kernel.c ./build/vga.o $(KOBJ_LIBS) $(BUILD_DIR)/vga.o: ./src/vga.c $(KOBJ_LIBS) i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/vga.c -o $(BUILD_DIR)/vga.o +$(BUILD_DIR)/idt/idt.asm.o: ./src/idt/idt.asm + nasm -f elf -g ./src/idt/idt.asm -o $(BUILD_DIR)/idt/idt.asm.o + +$(BUILD_DIR)/idt/idt.o: ./src/idt/idt.c ./build/vga.o $(KOBJ_LIBS) + i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/idt/idt.c -o $(BUILD_DIR)/idt/idt.o + + $(KOBJ_LIBS): i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/lib/string.c -o $(BUILD_DIR)/string.o clean: @@ -58,4 +68,6 @@ clean: rm -f build/kernel.o rm -f build/vga.o rm -f build/string.o + rm -f build/idt/idt.asm.o + rm -f build/idt/idt.o rm -f bin/os.bin |
