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

Open
oysteikt wants to merge 1 commits from makefile-extra-flags-and-targets into hovudgren
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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin makefile-extra-flags-and-targets:makefile-extra-flags-and-targets
git checkout makefile-extra-flags-and-targets
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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