Files
mop3/generic/flags.mk
kamkow1 55d9b1fcd5
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m30s
No warnings
2026-03-07 17:41:22 +01:00

29 lines
467 B
Makefile

cflags += -nostdinc \
-nostdlib \
-ffreestanding \
-fno-builtin \
-std=c11 \
-pedantic \
-pedantic-errors \
-Wall \
-Wextra
ifeq ($(buildtype),debug)
cflags += -O0 -g
endif
ifeq ($(buildtype),release)
cflags += -ffunction-sections -fdata-sections -Oz
endif
cflags += -isystem ../include
ldflags += --nostdlib \
--static
ifeq ($(buildtype),release)
ldflags += --gc-sections \
--strip-all \
-O3
endif