mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
18 lines
399 B
Makefile
18 lines
399 B
Makefile
# Tools
|
|
HOSTCC = cc
|
|
CC = i686-elf-gcc
|
|
LD = i686-elf-ld
|
|
AS = nasm
|
|
AR = i686-elf-ar
|
|
OBJCOPY = i686-elf-objcopy
|
|
|
|
# Flags
|
|
HOSTCFLAGS = -Wall -Wextra -Wpedantic -O2 -std=c17 -g
|
|
CFLAGS = -Wall -Wextra -Wpedantic -Wno-pointer-arith\
|
|
-ffreestanding -fno-stack-protector -fno-builtin -fno-pie -fcommon\
|
|
-O2 -std=c17 -nostdinc -nostdlib -z notext -march=i386 -g
|
|
LDFLAGS = -melf_i386
|
|
ASFLAGS =
|
|
ARFLAGS =
|
|
|