summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
Diffstat (limited to 'Private')
-rw-r--r--Private/makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Private/makefile b/Private/makefile
index 412739ca..ffefecf2 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -5,25 +5,28 @@
CC = x86_64-w64-mingw32-gcc
LD = x86_64-w64-mingw32-ld
-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./
+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
ifneq ($(ATA_PIO_SUPPORT), )
-DISKDRIVER = -D__ATA_PIO__
+DISKDRIVER = -D__ATA_PIO__
endif
ifneq ($(ATA_DMA_SUPPORT), )
-DISKDRIVER = -D__ATA_DMA__
+DISKDRIVER = -D__ATA_DMA__
endif
ifneq ($(AHCI_SUPPORT), )
-DISKDRIVER = -D__AHCI__
+DISKDRIVER = -D__AHCI__
endif
ifneq ($(DEBUG_SUPPORT), )
-DEBUG = -D__DEBUG__
+DEBUG = -D__DEBUG__
endif
+SLEEP = sleep 1
+COPY = cp
+
# Add assembler, linker, and object files variables.
ASMFLAGS = -f win64
LDFLAGS = -e Main --subsystem=17
@@ -50,14 +53,16 @@ newos-amd64-epm: clean
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalSMPCoreManager.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalNewBoot.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalInstallTIB.asm
+ $(SLEEP)
$(MOVEALL)
-OBJCOPY=x86_64-w64-mingw32-objcopy
+OBJCOPY=x86_64-w64-mingw32-objcopy
.PHONY: link-amd64-epm
link-amd64-epm:
+ $(SLEEP)
$(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL)
- cp $(KERNEL) Root/Boot
+ $(COPY) $(KERNEL) Root/Boot
.PHONY: all
all: newos-amd64-epm link-amd64-epm