forked from PoliEcho-holding-org/kern
* We did loose tasking and only have a paging skeleton, but hey it took like 4 months so i'm happy that there's something :p
39 lines
625 B
Makefile
39 lines
625 B
Makefile
# Tools
|
|
HOSTCC = cc
|
|
CC = cc
|
|
LD = ld
|
|
AS = nasm
|
|
AR = ar
|
|
OBJCOPY = objcopy
|
|
MAKE = make
|
|
|
|
# Flags
|
|
HOSTCCFLAGS = -Wall -Wextra -O2
|
|
CCFLAGS = -Wall -Wextra -m64 -ffreestanding -fcommon -Iinclude \
|
|
-mcmodel=kernel \
|
|
-fno-pie \
|
|
-fno-stack-protector \
|
|
-mno-mmx \
|
|
-mno-80387 \
|
|
-mno-sse \
|
|
-mno-sse2 \
|
|
-mno-red-zone \
|
|
-nostartfiles \
|
|
-nostdlib \
|
|
-nostdinc \
|
|
-fno-lto
|
|
ASFLAGS = -felf64
|
|
LDFLAGS = -melf_x86_64 -nostdlib -static \
|
|
--no-dynamic-linker \
|
|
-z text -z max-page-size=0x1000
|
|
ARFLAGS =
|
|
|
|
# Disk image
|
|
IMG_NAME = disk.img
|
|
IMG_SIZE = 256 # 256MB
|
|
|
|
# Qemu
|
|
Q_MEMORY = 256M
|
|
Q_AUDIODEV = pipewire
|
|
|