From 501a706643a056863b6ea214882a2be270966f87 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Tue, 16 Aug 2022 18:03:58 +0200 Subject: libk/list.h; reading mmap from multiboot2 --- Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd64db1..af294e8 100644 --- a/Makefile +++ b/Makefile @@ -7,16 +7,17 @@ LD = $(ARCH)ld OBJDUMP = $(ARCH)objcopy OBJCOPY = $(ARCH)objdump -WARNINGS := -Wall -Werror -Wextra -pedantic -Wshadow -Wpointer-arith \ - -Wcast-align -Wwrite-strings -Wmissing-prototypes \ - -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline \ - -Wno-long-long -Wconversion -Wstrict-prototypes - -CFLAGS = $(WARNINGS) -Wno-error=infinite-recursion -O -fno-omit-frame-pointer -# -mgeneral-regs-only disables SIMD instructions -CFLAGS += -MD -O3 -mgeneral-regs-only -mcmodel=large -CFLAGS += -ffreestanding -fno-common -nostdlib -CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) +W := -Wall -Werror -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align +W += -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations +W += -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wconversion +W += -Wstrict-prototypes +WNO := -Wno-error=unused-parameter -Wno-error=unused-variable +WNO += -Wno-error=infinite-recursion + +CFLAGS = $(W) $(WNO) -fno-omit-frame-pointer -mcmodel=large +CFLAGS += -mgeneral-regs-only # disables SIMD instructions +CFLAGS += -MD -O3 -ffreestanding -nostdlib +CFLAGS += -fno-common -fno-stack-protector CFLAGS += -fno-pie -no-pie -fno-pic LDFLAGS = -z max-page-size=4096 -- cgit v1.2.3