Added build system and some core boot files

This commit is contained in:
2022-12-13 20:21:28 +00:00
parent a54e2eaabc
commit 3402207602
10 changed files with 472 additions and 40 deletions

View File

@@ -0,0 +1,5 @@
LD := ld.lld
CC := clang
CFLAGS := -fuse-ld=$(LD) -target x86_64-linux-elf -nostdlib -nostdinc -ffreestanding -Wl,-nostdlib -Wno-unused-command-line-argument
LDFLAGS := -nostdlib

View File

@@ -0,0 +1,8 @@
LD := $(ARCH)-elf-gcc
CC := $(ARCH)-elf-gcc
ASM := $(ARCH)-elf-gcc
CFLAGS := -nostdlib -nostdinc -ffreestanding -Wl,-nostdlib
ASMFLAGS := $(CFLAGS)
LDFLAGS := -nostdlib