Makefile: split release/debug targets, add more compile flags #3

Merged
frero merged 1 commits from makefile-extra-flags-and-targets into hovudgren 2026-02-09 11:07:45 +01:00
Owner

This PR splits the compilation target into a release and a debug variant, and adds more specific flags for both.

In the release binary's case, it adds some hardening flags
In the debug binaries case, it adds debug symbols for gdb, enable's the address sanitizer, and defines DEBUG.

Also added release and debug aliases for the targets, since it was a bit painful to write out make output/wamf-debug every time.

This PR splits the compilation target into a release and a debug variant, and adds more specific flags for both. In the release binary's case, it adds some hardening flags In the debug binaries case, it adds debug symbols for gdb, enable's the address sanitizer, and defines `DEBUG`. Also added `release` and `debug` aliases for the targets, since it was a bit painful to write out `make output/wamf-debug` every time.
oysteikt added 1 commit 2026-02-09 04:11:00 +01:00
oysteikt requested review from frero 2026-02-09 04:11:00 +01:00
frero approved these changes 2026-02-09 11:06:56 +01:00
frero left a comment
Owner

very nice!

very nice!
frero merged commit 071d511e89 into hovudgren 2026-02-09 11:07:45 +01:00
frero deleted branch makefile-extra-flags-and-targets 2026-02-09 11:07:46 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/where-are-my-friends#3