summaryrefslogtreecommitdiff
path: root/Kernel/Makefile
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-16 14:17:43 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-16 14:17:43 +0200
commit12e515735b94972c87426d8e6039e3dfd87cf33d (patch)
treeb9791d0fd2754b498ec94d279276bf429bc7cc03 /Kernel/Makefile
parent8293a0ff36859aafb2b95835a6c2651659fa3ab9 (diff)
downloadserenity-12e515735b94972c87426d8e6039e3dfd87cf33d.zip
Add a simple IDEDiskDevice class that implements DiskDevice from VFS.
Diffstat (limited to 'Kernel/Makefile')
-rw-r--r--Kernel/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile
index ad506f2f19..856284a36d 100644
--- a/Kernel/Makefile
+++ b/Kernel/Makefile
@@ -1,4 +1,4 @@
-OBJS = \
+KERNEL_OBJS = \
_start.o \
init.o \
VGA.o \
@@ -18,7 +18,14 @@ OBJS = \
panel.o \
Disk.o \
fs.o \
- Userspace.o
+ Userspace.o \
+ IDEDiskDevice.o
+
+VFS_OBJS = \
+ ../VirtualFileSystem/DiskDevice.o
+
+OBJS = $(KERNEL_OBJS) $(VFS_OBJS)
+
NASM = nasm
KERNEL = kernel
BOOTLOADER = Boot/boot.bin
@@ -30,8 +37,11 @@ WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -falign-functions=1 -falign-jumps=1 -falign-loops=1
#FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections
OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables
-INCLUDE_FLAGS = -Iinclude/ -I.
-CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS)
+INCLUDE_FLAGS = -I.. -I.
+
+DEFINES = -DSERENITY_KERNEL -DSANITIZE_PTRS
+
+CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
#CXX = /usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-g++
#LD = /usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-ld
CXX = g++