summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/amd64-efi.make
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-18 21:39:29 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-18 21:39:29 +0200
commitda70596895d8135e08f8caac6978117697b4c021 (patch)
tree2516785b5434df8453687f05dc8dd877438901ab /dev/Kernel/amd64-efi.make
parent005de79004c9d30e64bdee6e14e06f9d47d1f2ab (diff)
[REFACTOR]
Improved project structure. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/amd64-efi.make')
-rw-r--r--dev/Kernel/amd64-efi.make85
1 files changed, 0 insertions, 85 deletions
diff --git a/dev/Kernel/amd64-efi.make b/dev/Kernel/amd64-efi.make
deleted file mode 100644
index 55517b2f..00000000
--- a/dev/Kernel/amd64-efi.make
+++ /dev/null
@@ -1,85 +0,0 @@
-##################################################
-# (C) ZKA Technologies, all rights reserved.
-# This is the newoskrnl's makefile.
-##################################################
-
-CC = x86_64-w64-mingw32-g++
-LD = x86_64-w64-mingw32-ld
-CCFLAGS = -fshort-wchar -c -shared -D__NEWOS_AMD64__ -mno-red-zone -fno-rtti -fno-exceptions \
- -std=c++20 -D__NEWOS_SUPPORT_NX__ -I../Vendor -D__FSKIT_USE_NEWFS__ \
- -D__NEWOSKRNL__ -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -I./ -I../ -I../Boot
-
-ASM = nasm
-
-DISKDRIVER =
-
-ifneq ($(ATA_PIO_SUPPORT), )
-DISKDRIVER = -D__ATA_PIO__
-endif
-
-ifneq ($(ATA_DMA_SUPPORT), )
-DISKDRIVER = -D__ATA_DMA__
-endif
-
-ifneq ($(AHCI_SUPPORT), )
-DISKDRIVER = -D__AHCI__
-endif
-
-ifneq ($(DEBUG_SUPPORT), )
-DEBUG = -D__DEBUG__
-endif
-
-COPY = cp
-
-# Add assembler, linker, and object files variables.
-ASMFLAGS = -f win64
-
-# Kernel subsystem is 17 and entrypoint is __ImageStart
-LDFLAGS = -e hal_init_platform --subsystem=17 --image-base 0x10000000
-LDOBJ = Objects/*.obj
-
-# This file is the kernel, responsible of task management and memory.
-KERNEL = newoskrnl.dll
-
-.PHONY: error
-error:
- @echo "=== ERROR ==="
- @echo "=> Use a specific target."
-
-MOVEALL=./MoveAll.X64.sh
-WINDRES=x86_64-w64-mingw32-windres
-
-.PHONY: newos-amd64-epm
-newos-amd64-epm: clean
- $(WINDRES) KernelRsrc.rsrc -O coff -o KernelRsrc.obj
- $(CC) $(CCFLAGS) $(DISKDRIVER) $(DEBUG) $(wildcard Sources/*.cxx) \
- $(wildcard Sources/FS/*.cxx) $(wildcard HALKit/AMD64/Storage/*.cxx) \
- $(wildcard HALKit/AMD64/PCI/*.cxx) $(wildcard Sources/Network/*.cxx) $(wildcard Sources/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
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalBoot.asm
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalUtils.asm
- $(MOVEALL)
-
-OBJCOPY=x86_64-w64-mingw32-objcopy
-
-.PHONY: link-amd64-epm
-link-amd64-epm:
- $(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL)
-
-.PHONY: all
-all: newos-amd64-epm link-amd64-epm
- @echo "NewOSKrnl => OK."
-
-.PHONY: help
-help:
- @echo "=== HELP ==="
- @echo "all: Build kernel and link it."
- @echo "link-amd64-epm: Link kernel for EPM based disks."
- @echo "newos-amd64-epm: Build kernel for EPM based disks."
-
-.PHONY: clean
-clean:
- rm -f $(LDOBJ) $(wildcard *.o) $(KERNEL)