forked from PoliEcho-holding-org/kern
Did stuff...
This commit is contained in:
+9
-22
@@ -1,30 +1,17 @@
|
||||
#
|
||||
# kern. makefile defaults
|
||||
#
|
||||
|
||||
# Tools
|
||||
HOSTCC = cc
|
||||
CC = i686-elf-gcc
|
||||
LD = i686-elf-ld
|
||||
AS = nasm
|
||||
MAKE = make
|
||||
AR = i686-elf-ar
|
||||
OBJCOPY = i686-elf-objcopy
|
||||
|
||||
# Flags
|
||||
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
|
||||
LDFLAGS = -melf_i386
|
||||
ASFLAGS =
|
||||
|
||||
# Directories
|
||||
KERNEL_DIR = ./kernel
|
||||
BOOT_DIR = ./boot
|
||||
LIBC_DIR = ./libc
|
||||
USER_DIR = ./user
|
||||
|
||||
# Modules
|
||||
MODULES = $(KERNEL_DIR) \
|
||||
$(BOOT_DIR) \
|
||||
$(LIBC_DIR) \
|
||||
$(USER_DIR)
|
||||
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 =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user