This commit is contained in:
nub31
2025-12-28 02:29:42 +01:00
parent 932ec395c5
commit 7702949534
13 changed files with 414 additions and 12 deletions

View File

@@ -1,18 +1,18 @@
CC = x86_64-elf-gcc
LD = x86_64-elf-ld
CC = i686-elf-gcc
LD = i686-elf-ld
AS = nasm
# Modify these settings here for defines and debug info
# CFLAGS = -g -D DEBUG
# LDFLAGS = -g
# ASFLAGS = -g -F dwarf
CFLAGS = -g -D DEBUG
LDFLAGS = -g
ASFLAGS = -g -F dwarf
# Do not modify
CFLAGS += -m64 -ffreestanding -nostdinc -nostdlib -Wall -Wextra -Wshadow -std=c23
CFLAGS += -m32 -ffreestanding -fno-stack-protector -nostdlib -nostdinc -Wall -Wextra -std=c23
LDFLAGS +=
ASFLAGS += -f elf64
ASFLAGS += -f elf32
SRC_C := $(shell find src -name '*.c')
SRC_C := $(shell find src -name '*.c')
SRC_ASM := $(shell find src -name '*.asm')
OBJS := $(patsubst src/%.c, .build/%.o, $(SRC_C)) $(patsubst src/%.asm, .build/%.o, $(SRC_ASM))