diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-18 12:35:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-18 12:39:24 +0100 |
| commit | 4c714f2c24c5df78bae2f35c42c73107de4c8c71 (patch) | |
| tree | b36d2498b8387909dac45c98097b8169636ad25a /Private/NewBoot/Source/makefile | |
| parent | a4bfc396a78ddd553de519ab927d8479d0c3c45d (diff) | |
unstable, unrelated: See below.
- :boom: Breaking changes in System.Core.dll
- Framebuffer, moved operator bool into c++ source file.
- Remove zlib in favor of our own Zip API.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/NewBoot/Source/makefile')
| -rw-r--r-- | Private/NewBoot/Source/makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index eaaac592..801e7699 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -6,6 +6,10 @@ CC_GNU=x86_64-w64-mingw32-g++ LD_GNU=x86_64-w64-mingw32-ld +ADD_FILE=touch +COPY=cp +HTTP_GET=wget + ifeq ($(shell uname), Darwin) EMU=qemu-system-x86_64 else @@ -26,12 +30,15 @@ invalid-recipe: @echo "invalid-recipe: Use make bootloader-<arch> all instead." .PHONY: bootloader-amd64 -bootloader-amd64: - $(CC_GNU) $(FLAG_GNU) HEL/AMD64/*.cxx *.cxx - $(LD_GNU) $(OBJ) $(LD_FLAGS) -o HCoreLdr.exe - cp HCoreLdr.exe CDROM/EFI/BOOT/BOOTX64.EFI - cp HCoreLdr.exe CDROM/EFI/BOOT/HCORELDR.EFI - cp ../../HCoreKrnl.exe CDROM/HCOREKRNL.EXE +bootloader-amd64: compile-amd64 + $(LD_GNU) $(OBJ) $(LD_FLAGS) -o NewBoot.exe + $(COPY) NewBoot.exe CDROM/EFI/BOOT/BOOTX64.EFI + $(COPY) NewBoot.exe CDROM/EFI/BOOT/HCORELDR.EFI + $(ADD_FILE) CDROM/.HCORE + +.PHONY: compile-amd64 +compile-amd64: + $(CC_GNU) $(FLAG_GNU) $(wildcard HEL/AMD64/*.cxx) $(wildcard *.cxx) .PHONY: run-efi-amd64 run-efi-amd64: @@ -39,8 +46,8 @@ run-efi-amd64: .PHONY: download-edk download-edk: - wget https://retrage.github.io/edk2-nightly/bin/DEBUGX64_OVMF.fd -O OVMF.fd + $(HTTP_GET) https://retrage.github.io/edk2-nightly/bin/DEBUGX64_OVMF.fd -O OVMF.fd .PHONY: clean clean: - $(REM) $(REM_FLAG) $(OBJ) HCoreLdr.exe HCoreKrnl.exe OVMF.fd + $(REM) $(REM_FLAG) $(OBJ) NewBoot.exe HCoreKrnl.exe OVMF.fd |
