Files
mop3/kernel/generic/flags.mk
kamkow1 03ae17d1c9
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m33s
List PCI devices on boot
2026-03-09 23:32:25 +01:00

36 lines
644 B
Makefile

cflags += -nostdinc \
-nostdlib \
-ffreestanding \
-fno-builtin \
-std=c11 \
-pedantic \
-pedantic-errors \
-Wall \
-Wextra \
-mcmodel=kernel \
-Wno-trigraphs
cflags += -isystem . -isystem ../include
cflags += -DPRINTF_INCLUDE_CONFIG_H=1 \
-D_ALLOC_SKIP_DEFINE \
-D"FAT_PRINTF(a)" \
-DXXH_NAMESPACE=LZ4_
ifeq ($(buildtype),debug)
cflags += -O0 -g3
endif
ifeq ($(buildtype),release)
cflags += -ffunction-sections -fdata-sections -Oz
endif
ldflags += --nostdlib \
--static
ifeq ($(buildtype),release)
ldflags += --gc-sections \
--strip-all \
-O3
endif