diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-02-09 12:41:26 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-02-09 12:41:26 -0500 |
commit | f577efbbab625dbc9a0346ac3820944b6bab2b2d (patch) | |
tree | bb196c51e59ddbbaac576881b6665cfa0f927f13 | |
parent | f4772fe4c13eb8b9b3c199d4e1703c242babcfd7 (diff) | |
download | bfs-f577efbbab625dbc9a0346ac3820944b6bab2b2d.tar.xz |
Makefile: Allow extra flags to be passed with EXTRA_*FLAGS variables
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -137,10 +137,10 @@ ifneq ($(filter release,$(MAKECMDGOALS)),) CFLAGS := $(DEFAULT_CFLAGS) -O3 -flto -DNDEBUG endif -ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS) -ALL_CFLAGS = $(ALL_CPPFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) $(DEPFLAGS) -ALL_LDFLAGS = $(ALL_CFLAGS) $(LOCAL_LDFLAGS) $(LDFLAGS) -ALL_LDLIBS = $(LOCAL_LDLIBS) $(LDLIBS) +ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS) $(EXTRA_CPPFLAGS) +ALL_CFLAGS = $(ALL_CPPFLAGS) $(LOCAL_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) $(DEPFLAGS) +ALL_LDFLAGS = $(ALL_CFLAGS) $(LOCAL_LDFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) +ALL_LDLIBS = $(LOCAL_LDLIBS) $(LDLIBS) $(EXTRA_LDLIBS) # Save the full set of flags to rebuild everything when they change ALL_FLAGS := $(CC) : $(ALL_CFLAGS) : $(ALL_LDFLAGS) : $(ALL_LDLIBS) |