summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/Source/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 21:43:49 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 21:44:02 +0100
commitdbe7795edd9c814a5c993941c961f6b26e249e43 (patch)
treef13e408f22a6f0beb2721004717af70973ea4424 /Private/NewBoot/Source/makefile
parentf06d0703a5813841f5a6dacd294c5cfbe9394037 (diff)
Kernel: Replace gnu-efi with EFIKit.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source/makefile')
-rw-r--r--Private/NewBoot/Source/makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 25eb7983..e0ee861d 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -1,15 +1,17 @@
-# (C) Mahrouss Logic, 2024, all rights reserved.
+##################################################
+# ; (C) Mahrouss Logic, 2024, all rights reserved.
+##################################################
CC_GNU=x86_64-w64-mingw32-g++
LD_GNU=x86_64-w64-mingw32-ld
-FLAG_GNU=-I../ -I../../ -I../../efiSDK/inc -I./ -c -fPIC -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I./ -I$(HOME)/
+FLAG_GNU=-fshort-wchar -fPIC -D__DBG__ -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I../../efiSDK/inc -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I./ -I$(HOME)/
.PHONY: arch-amd64
arch-amd64:
- $(CC_GNU) $(FLAG_GNU) -D__DBG__ HEL/AMD64/*.cxx
- $(LD_GNU) *.o --script=../../efiSDK/gnuefi/coff_x86_64_efi.lds ../../efiSDK/x86_64/gnuefi/crt0-efi-x86_64.o \
- --subsystem=10 ../../efiSDK/x86_64/gnuefi/reloc_x86_64.o -L../../efiSDK/x86_64/gnuefi/ -lgnuefi -o HCORELDR.EXE
+ $(CC_GNU) $(FLAG_GNU) HEL/AMD64/*.cxx
+ $(LD_GNU) *.o -filealign:16 --subsystem=10 -ffreestanding -shared -o HCORELDR.EXE
+
.PHONY: clean
clean: