BUILD: makefile: also define cmd_CXX to pretty-print C++ build commands

Device Atlas' dummy lib will use a C++ file when built with cache
support, so for completeness we'll have to pretty-print it as well.
Let's define cmd_CXX.
This commit is contained in:
Willy Tarreau 2024-01-26 18:48:45 +01:00
parent 413aa6e2e9
commit e5ac9fc98b
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ endif
# or to themselves depending on the verbosity level. # or to themselves depending on the verbosity level.
ifeq ($V,1) ifeq ($V,1)
cmd_CC = $(CC) cmd_CC = $(CC)
cmd_CXX = $(CXX)
cmd_LD = $(LD) cmd_LD = $(LD)
cmd_AR = $(AR) cmd_AR = $(AR)
cmd_MAKE = +$(MAKE) cmd_MAKE = +$(MAKE)
@ -17,12 +18,14 @@ else
ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81))) ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81)))
# 3.81 or above # 3.81 or above
cmd_CC = $(info $ CC $@) $(Q)$(CC) cmd_CC = $(info $ CC $@) $(Q)$(CC)
cmd_CXX = $(info $ CXX $@) $(Q)$(CXX)
cmd_LD = $(info $ LD $@) $(Q)$(LD) cmd_LD = $(info $ LD $@) $(Q)$(LD)
cmd_AR = $(info $ AR $@) $(Q)$(AR) cmd_AR = $(info $ AR $@) $(Q)$(AR)
cmd_MAKE = $(info $ MAKE $@) $(Q)+$(MAKE) cmd_MAKE = $(info $ MAKE $@) $(Q)+$(MAKE)
else else
# 3.80 or older # 3.80 or older
cmd_CC = $(Q)echo " CC $@";$(CC) cmd_CC = $(Q)echo " CC $@";$(CC)
cmd_CXX = $(Q)echo " CXX $@";$(CXX)
cmd_LD = $(Q)echo " LD $@";$(LD) cmd_LD = $(Q)echo " LD $@";$(LD)
cmd_AR = $(Q)echo " AR $@";$(AR) cmd_AR = $(Q)echo " AR $@";$(AR)
cmd_MAKE = $(Q)echo " MAKE $@";$(MAKE) cmd_MAKE = $(Q)echo " MAKE $@";$(MAKE)