summaryrefslogtreecommitdiffhomepage
path: root/Private/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
commitf77a876e0ac2611079ee188933f0f3de222dd08a (patch)
treec8230499b03f8ad2cbdddbb6e06607163a176149 /Private/makefile
parent2cf9f370d40a5c6512530c600292c5fac0410e11 (diff)
HCoreKrnl\HAL\IDT: Work in progress patch(fix) of HCore interrupt system
on x86. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/makefile')
-rw-r--r--Private/makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Private/makefile b/Private/makefile
index c1f32c59..37245e2c 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -5,21 +5,18 @@
CC = x86_64-w64-mingw32-g++
LD = x86_64-w64-mingw32-ld
-CCFLAGS = -c -ffreestanding -D__DEBUG__ -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/
+CCFLAGS = -c -ffreestanding -O0 -fPIC -D__DEBUG__ -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/
ASM = nasm
ASMFLAGS = -f win64
-LDFLAGS = -e Main -shared --subsystem=17 -ffreestanding
+LDFLAGS = -e Main --subsystem=17
LDOBJ = $(wildcard Obj/*.obj)
# This file is the kernel, responsible of task management, memory, drivers and more.
-KERNEL = HCoreKrnl.dll
+KERNEL = HCoreKrnl.exe
# The kernel entrypoint
SCRIPT = --script=Linker/Platforms/PC.lds
-# we want a flat binary
-FMT = elf64
-
.PHONY: invalid-recipe
invalid-recipe:
@echo "[HCoreKrnl] invalid-recipe: Use make all instead."
@@ -37,7 +34,6 @@ h-core-amd64:
$(MOVEALL)
OBJCOPY=x86_64-w64-mingw32-objcopy
-FONTFLAGS=-b binary
.PHONY: link-amd64
link-amd64: