From bb84fa725e23c5ab5e5cb907a849ec83ccfe73a8 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 22 Mar 2018 04:48:50 +0000 Subject: [PATCH] Makefile: Allow component cflags to override global CWARNS for clang-tools rule. git-svn-id: https://svn.eduke32.com/eduke32@6781 1a8010ca-5511-0410-912e-c29ae57300e0 --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 3561db628..328f29fe8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1001,7 +1001,7 @@ $(foreach i,$(components),$($i_obj)): ### Phonies clang-tools: $(filter %.c %.cpp,$(foreach i,$(call getdeps,duke3d,game),$(call expandsrcs,$i))) - echo $^ -- -x c++ $(CXXONLYFLAGS) $(COMPILERFLAGS) $(foreach i,$(components),$($i_cflags)) $(CWARNS) + echo $^ -- -x c++ $(CXXONLYFLAGS) $(COMPILERFLAGS) $(CWARNS) $(foreach i,$(components),$($i_cflags)) $(addprefix clean,$(games)): -$(call RM,$(foreach i,$(roles),$($(subst clean,,$@)_$i)$(EXESUFFIX)))