summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/amd64-desktop.make
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-23 21:06:27 -0500
committerGitHub <noreply@github.com>2025-11-23 21:06:27 -0500
commit23040fad647634c08697451fc22ee2ca999629c8 (patch)
tree72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/kernel/amd64-desktop.make
parente5cc7351f0577b54c528fb827a7c7e6306c3e843 (diff)
parent83d870e58457a1d335a1d9b9966a6a1887cc297b (diff)
Merge pull request #81 from nekernel-org/dev
feat! breaking changes on kernel sources.
Diffstat (limited to 'dev/kernel/amd64-desktop.make')
-rw-r--r--dev/kernel/amd64-desktop.make79
1 files changed, 0 insertions, 79 deletions
diff --git a/dev/kernel/amd64-desktop.make b/dev/kernel/amd64-desktop.make
deleted file mode 100644
index 081bf75b..00000000
--- a/dev/kernel/amd64-desktop.make
+++ /dev/null
@@ -1,79 +0,0 @@
-##################################################
-# (c) Amlal El Mahrouss, licensed under the Apache 2.0 license.
-# This is the NeKernel's makefile.
-##################################################
-
-CXX = x86_64-w64-mingw32-g++
-LD = x86_64-w64-mingw32-ld
-CCFLAGS = -fshort-wchar -c -D__NE_AMD64__ -D__NEOSKRNL__ -D__NE_VEPM__ -Wall -Wpedantic -Wextra -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_INCLUDES_OPENHEFS__ -D__FSKIT_INCLUDES_EXT2__ -D__NE_SUPPORT_NX__ -O0 -I../vendor -D__NEKERNEL__ -D__HAVE_NE_APIS__ -D__FREESTANDING__ -D__NE_VIRTUAL_MEMORY_SUPPORT__ -D__NE_AUTO_FORMAT__ -D__NE__ -I./ -I../ -I../boot
-
-ASM = nasm
-
-DISK_DRV =
-
-ifneq ($(ATA_PIO_SUPPORT), )
-DISK_DRV = -D__ATA_PIO__
-endif
-
-ifneq ($(ATA_DMA_SUPPORT), )
-DISK_DRV = -D__ATA_DMA__
-endif
-
-ifneq ($(AHCI_SUPPORT), )
-DISK_DRV = -D__AHCI__
-endif
-
-ifneq ($(DEBUG_SUPPORT), )
-DEBUG_MACRO = -D__DEBUG__
-endif
-
-COPY = cp
-
-# Add assembler, linker, and object files variables.
-ASMFLAGS = -f win64
-
-# Kernel subsystem is 17 and entrypoint is hal_init_platform
-LDFLAGS = -e hal_init_platform --subsystem=17 --image-base 0x10000000
-LDOBJ = obj/*.obj
-
-# This file is the Kernel, responsible of task, memory, driver, sci, disk and device management.
-KERNEL_IMG = ne_kernel
-
-.PHONY: error
-error:
- @echo "=== ERROR ==="
- @echo "=> Use a specific target."
-
-MOVEALL=./move-all-x64.sh
-WINDRES=x86_64-w64-mingw32-windres
-
-.PHONY: nekernel-amd64-epm
-nekernel-amd64-epm: clean
- $(WINDRES) kernel_rsrc.rsrc -O coff -o kernel_rsrc.obj
- $(CXX) $(CCFLAGS) $(DISK_DRV) $(DEBUG_MACRO) $(wildcard src/*.cc) $(wildcard src/Gfx/*.cc) $(wildcard HALKit/AMD64/Network/*.cc) $(wildcard HALKit/AMD64/PCI/*.cc) $(wildcard src/Network/*.cc) $(wildcard src/Storage/*.cc) $(wildcard src/FS/*.cc) $(wildcard HALKit/AMD64/Storage/*.cc) $(wildcard HALKit/AMD64/*.cc) $(wildcard src/Swap/*.cc) $(wildcard HALKit/AMD64/*.s)
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalInterruptAPI.asm
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalCommonAPI.asm
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalHandoverStub.asm
- $(ASM) $(ASMFLAGS) HALKit/AMD64/HalUtilsAPI.asm
- $(MOVEALL)
-
-OBJCOPY=x86_64-w64-mingw32-objcopy
-
-.PHONY: link-amd64-epm
-link-amd64-epm:
- $(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL_IMG)
-
-.PHONY: all
-all: nekernel-amd64-epm link-amd64-epm
- @echo "Kernel => OK."
-
-.PHONY: help
-help:
- @echo "=== HELP ==="
- @echo "all: Build Kernel and link it."
- @echo "link-amd64-epm: Link Kernel for EPM based disks."
- @echo "nekernel-amd64-epm: Build Kernel for EPM based disks."
-
-.PHONY: clean
-clean:
- rm -f $(LDOBJ) $(wildcard *.o) $(KERNEL_IMG)