diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-10 00:03:35 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-10 00:03:35 +0200 |
| commit | 92af2056d51e56b12702c439c82ef335420c9d83 (patch) | |
| tree | ffd526964a59afbe054a7303686e214c05a7417a | |
| parent | 33b4094ad5057eb085b1e23593b348a2103240a4 (diff) | |
makefile: Add WINDRES variable, use .exe extension by default.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
| -rw-r--r-- | Private/makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Private/makefile b/Private/makefile index 08eeed4e..781da4e8 100644 --- a/Private/makefile +++ b/Private/makefile @@ -3,10 +3,10 @@ # This is the microkernel makefile. ################################################## -CC = x86_64-w64-mingw32-gcc -LD = x86_64-w64-mingw32-ld +CC = x86_64-w64-mingw32-gcc.exe +LD = x86_64-w64-mingw32-ld.exe CCFLAGS = -c -ffreestanding -D__NEWOS_AMD64__ -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__KERNEL__ -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -I../ -I./ -ASM = nasm +ASM = nasm.exe ifneq ($(ATA_PIO_SUPPORT), ) DISKDRIVER = -D__ATA_PIO__ @@ -40,10 +40,11 @@ error: @echo "Use a specific target." MOVEALL=./MoveAll.sh +WINDRES=x86_64-w64-mingw32-windres.exe .PHONY: newos-amd64-epm newos-amd64-epm: clean - windres KernelRsrc.rsrc -O coff -o KernelRsrc.obj + $(WINDRES) KernelRsrc.rsrc -O coff -o KernelRsrc.obj $(CC) $(CCFLAGS) $(DISKDRIVER) $(DEBUG) $(wildcard Source/*.cxx) $(wildcard Source/FS/*.cxx) $(wildcard HALKit/AMD64/Storage/*.cxx) $(wildcard HALKit/AMD64/PCI/*.cxx) $(wildcard Source/Network/*.cxx) $(wildcard Source/Storage/*.cxx) $(wildcard HALKit/AMD64/*.cxx) $(wildcard HALKit/AMD64/*.cpp) $(wildcard HALKit/AMD64/*.s) $(ASM) $(ASMFLAGS) HALKit/AMD64/HalInterruptAPI.asm $(ASM) $(ASMFLAGS) HALKit/AMD64/HalSMPCoreManager.asm |
