summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/Source/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 18:20:31 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-28 18:20:31 +0100
commit4a789fd64c44e38ed0c3d9fb597e62afd17a337d (patch)
treedff9c68b5adacd7aaf55fcd284f2fdb4ad504f1c /Private/NewBoot/Source/makefile
parent87913aa62de0edfcbde9d9fdb938968d1b511a5f (diff)
Ongoing effort to reimplement core protocol of EFI into 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, 6 insertions, 6 deletions
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 75993507..25eb7983 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -1,16 +1,16 @@
# (C) Mahrouss Logic, 2024, all rights reserved.
-CC_GNU=x86_64-elf-g++
-LD_GNU=x86_64-elf-ld
-OBJCOPY_GNU=x86_64-elf-objcopy
+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)/
.PHONY: arch-amd64
arch-amd64:
$(CC_GNU) $(FLAG_GNU) -D__DBG__ HEL/AMD64/*.cxx
- $(LD_GNU) *.o -e Main -shared -o HCORELDR.ELF
- $(OBJCOPY_GNU) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .rel.* -j .rela.* -j .reloc --target efi-app-x86_64 --subsystem=10 HCORELDR.ELF HCORELDR.EFI
+ $(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
.PHONY: clean
clean:
- rm -f *.o
+ rm -f *.o *.EFI *.EXE