Implemented simple Multiboot1 kernel

This commit is contained in:
2024-12-29 22:02:48 +01:00
parent 84a0d49942
commit bfe67a791e
14 changed files with 488 additions and 25 deletions
+27
View File
@@ -1,3 +1,30 @@
#
# kern. makefile defaults
#
# Tools
HOSTCC = cc
CC = i686-elf-gcc
LD = i686-elf-ld
AS = nasm
MAKE = make
# Flags
CFLAGS = -Wall -Wextra -Wpedantic -Wno-pointer-arith\
-ffreestanding -fno-stack-protector -fno-builtin -fno-pie -fcommon\
-O2 -std=c17 -nostdinc -nostdlib -z notext -march=i386
LDFLAGS = -melf_i386
ASFLAGS =
# Directories
KERNEL_DIR = ./kernel
BOOT_DIR = ./boot
LIBC_DIR = ./libc
USER_DIR = ./user
# Modules
MODULES = $(KERNEL_DIR) \
$(BOOT_DIR) \
$(LIBC_DIR) \
$(USER_DIR)