X-Git-Url: https://git.ladys.computer/CGirls/blobdiff_plain/c5fea4a6454aad2b461e23fdae9d2fd54aff4ce2..091679702255610d868b06af26ffa0ba5a6bf6d7:/make/config-sample.mak diff --git a/make/config-sample.mak b/make/config-sample.mak new file mode 100644 index 0000000..be9b21f --- /dev/null +++ b/make/config-sample.mak @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: 2025 Lady +# SPDX-License-Identifier: CC0-1.0 + +# Sample code to generate a more optimized build, assuming Clang as the +# compiler. +# +# • `-DNDEBUG´ drops `assert()´ functionality. +# +# • `-O3´ sets the level of optimization to maximum. +# +# • `-flto´ enables link‐time optimization. +# +# • `-g0´ drops debugging information. +CFLAGS := $(filter-out -O% -g -g%,$(CFLAGS)) \ + -DNDEBUG -O3 -flto -g0