summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-02-09 12:41:26 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-02-09 12:41:26 -0500
commitf577efbbab625dbc9a0346ac3820944b6bab2b2d (patch)
treebb196c51e59ddbbaac576881b6665cfa0f927f13 /Makefile
parentf4772fe4c13eb8b9b3c199d4e1703c242babcfd7 (diff)
downloadbfs-f577efbbab625dbc9a0346ac3820944b6bab2b2d.tar.xz
Makefile: Allow extra flags to be passed with EXTRA_*FLAGS variables
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 79a74ee..328b852 100644
--- a/Makefile
+++ b/Makefile
@@ -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)