commit ea3dd11b971262fdc221b8d485b6b3c40127e12e parent c9fa0fad4039c26f96ce8b091a984be776164ba8 Author: citbl <citbl@citbl.org> Date: Wed, 13 May 2026 19:20:38 +1000 makefile impr Diffstat:
| M | makefile | | | 13 | +++++++++---- |
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/makefile b/makefile @@ -1,9 +1,10 @@ cmp = clang warn = -Wall -Wextra pedantic = -Wpedantic -Werror -release = -02 -std = -std=c99 -Wdeclaration-after-statement -Werror=declaration-after-statement -sane = -fsanitize=address +debug = -O1 -g +release = -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong +std = -std=c99 -Werror=declaration-after-statement +sane = -fsanitize=address,undefined -fno-omit-frame-pointer cfiles = src/**.c includes = -i src/**.h bin = sicc @@ -12,7 +13,11 @@ out = -o $(bin) export ASAN_OPTIONS := allocator_may_return_null=1 default: - $(cmp) $(warn) $(std) $(sane) $(out) $(cfiles) + $(cmp) $(warn) $(std) $(debug) $(sane) $(out) $(cfiles) clean: rm -rf $(bin) $(bin).* + +release: clean + $(cmp) $(warn) $(pedantic) $(std) $(release) $(out) $(cfiles) +