--- /dev/null
+# SPDX-FileCopyrightText: 2025 Lady <https://www.ladys.computer/about/#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