summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-05-27 13:58:00 -0500
committerDanny Holman <dholman@gymli.org>2024-05-27 13:58:00 -0500
commit61760f9301427ea56a62ec02af3d0d8ae4745be7 (patch)
treec63057d16075b2b411eab36424f1d481b4a8c9f1 /Makefile
parentaaf7355c5ededfcdc877c7f2989fb1ba02dfb848 (diff)
drivers: create a subdir just for driver code
Create a subdirectory branching from the project root. This directory will contain nothing but driver and device code. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a50fb6..abab3f7 100644
--- a/Makefile
+++ b/Makefile
@@ -36,15 +36,23 @@ KERNEL_OBJS=$(KERNEL_ARCH_OBJS) \
kernel/sched.o \
kernel/kthread.o \
+DRIVER_OBJS=drivers/video/framebuffer.o \
+ drivers/input/keyboard.o \
+ drivers/pci/pci.o \
+ drivers/pci/ide.o \
+ drivers/tty/tty_vga.o \
+
OBJS=$(ARCHDIR)/boot/crti.o \
$(ARCHDIR)/crtbegin.o \
$(KERNEL_OBJS) \
+ $(DRIVER_OBJS) \
$(LIBK_OBJS) \
$(ARCHDIR)/crtend.o \
$(ARCHDIR)/boot/crtn.o \
LINK_LIST=$(LDFLAGS) \
$(KERNEL_OBJS) \
+ $(DRIVER_OBJS) \
$(LIBK_OBJS) \
$(LIBS) \