summaryrefslogtreecommitdiffhomepage
path: root/Private/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:17:47 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:18:59 +0100
commit65254486efff0fd1bb78a48ff90b7713a5ce539f (patch)
tree20ce02c12a74ba9e6cd382bf9c1f09a0c611cb4d /Private/makefile
parentf03986937db0b927da4b10554801e18e4dc7c43f (diff)
Kernel: Update TODO.
Src: Refactorings according to clang-format. Meta: Update specification. Public: Remove useless UIKit. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/makefile')
-rw-r--r--Private/makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/Private/makefile b/Private/makefile
index 7e6a6639..b4245f03 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -5,7 +5,7 @@
CC = x86_64-elf-gcc
LD = x86_64-elf-ld
-CCFLAGS = -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I../ -I./ -I$(HOME)/
+CCFLAGS = -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/
ASM = nasm
ASMFLAGS = -f elf64
@@ -18,12 +18,12 @@ SCRIPT = --script=Linker/Platforms/PC.lds
# we want a flat binary
FMT = elf64
-.PHONY: kernel-no
-kernel-no:
- @echo "Use make all instead."
+.PHONY: invalid-recipe
+invalid-recipe:
+ @echo "invalid-recipe: Use make all instead."
-.PHONY: kernel-build
-kernel-build:
+.PHONY: h-core
+h-core:
$(CC) $(CCFLAGS) Source/*.cxx HALKit/AMD64/PCI/*.cpp Source/Network/*.cpp\
Source/Storage/*.cxx HALKit/AMD64/*.cxx HALKit/AMD64/*.cpp HALKit/AMD64/*.s
$(ASM) -f elf64 HALKit/AMD64/DebugManager.asm
@@ -34,16 +34,16 @@ kernel-build:
OBJCOPY = x86_64-elf-objcopy
-.PHONY: kernel-link
-kernel-link:
+.PHONY: link
+link:
$(LD) $(SCRIPT) Obj/*.o -o $(KERNEL)
$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .rel.* -j .rela.* -j .reloc --target efi-app-x86_64 --subsystem=10 $(KERNEL) $(KERNEL)
cp $(KERNEL) Root/System
.PHONY: all
-all: kernel-build kernel-link
- @echo "[hKernel] Job is done."
+all: h-core link
+ @echo "[hKernel] HCore is linked."
-.PHONY: kernel-clean
-kernel-clean:
+.PHONY: clean
+clean:
rm -f Obj/*.o $(KERNEL)