summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-10-07 19:04:00 +0300
committerJoursoir <chat@joursoir.net>2022-10-13 18:58:06 +0300
commit16a538de1a643af7cb45133d1eb5fd28e58d25d1 (patch)
tree2d354ef4706528eb6e087fac5d659b7070740848 /Makefile
parentc4f8edeb0845e73a15baa513ade27df08db90248 (diff)
downloadmfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.tar.gz
mfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.tar.bz2
mfsos-16a538de1a643af7cb45133d1eb5fd28e58d25d1.zip
x86: add GDT code to the kernel
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aebce96..0db6ae4 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ KERNBIN = kernel.bin
BOOT ?= bootloader
ARCH = x86
+ARCH_PATH = arch/$(ARCH)
ARCH_INCLUDE = $(PWD)/arch/$(ARCH)/include
ARCH_BOOT = arch/$(ARCH)/boot/$(BOOT)
@@ -26,7 +27,8 @@ KERN_HEAD = $(ARCH_BOOT)/head.o
C_SOURCES = \
kernel/main.c \
kernel/string.c \
- drivers/video/console/vgacon.c
+ drivers/video/console/vgacon.c \
+ $(ARCH_PATH)/gdt.c
OBJECTS = ${C_SOURCES:.c=.o}
export CC LD AS OBJDUMP