diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-16 18:03:58 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-16 18:03:58 +0200 |
| commit | 501a706643a056863b6ea214882a2be270966f87 (patch) | |
| tree | 7f1ff025e7aa37b936ce15ebfe21783ae312d7f2 /Makefile | |
| parent | 5c1c4eb0a4084b666342e6f8eb348eb80be6214b (diff) | |
libk/list.h; reading mmap from multiboot2
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -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 |
