summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorDmitrij D. Czarkoff <czarkoff@gmail.com>2015-11-01 23:18:06 +0100
committerDmitrij D. Czarkoff <czarkoff@gmail.com>2015-11-01 23:18:06 +0100
commitda59b17ace3f5551bbe4d0014c10c534befc8bdd (patch)
tree69671636aa5092b23122efa5b86acc270b25ca18 /mk
parentcb2e4c34a952d80ec1a4986e332acb878780b90b (diff)
build infrastructure: silent and verbose modes
In *silent* mode build infrastructure prints only short messages in format: TOOL filename and toolchain's warnings. In *verbose* mode it additionally echoes exact commands including all compiler and linker flags. By default baresip is built in *silent* mode (as before this commit); *verbose* mode can be set either by unsetting `HIDE` variable (running `make HIDE=`) or by setting `V` variable to any value (eg. `make V=1` or `make V=yes`).
Diffstat (limited to 'mk')
-rw-r--r--mk/mod.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/mk/mod.mk b/mk/mod.mk
index 2736946..6972a83 100644
--- a/mk/mod.mk
+++ b/mk/mod.mk
@@ -33,34 +33,34 @@ ifeq ($(STATIC),)
$(MOD)$(MOD_SUFFIX): $($(MOD)_OBJS)
@echo " LD [M] $@"
- @$(LD) $(LFLAGS) $(SH_LFLAGS) $(MOD_LFLAGS) $($(basename $@)_OBJS) \
+ $(HIDE)$(LD) $(LFLAGS) $(SH_LFLAGS) $(MOD_LFLAGS) $($(basename $@)_OBJS) \
$($(basename $@)_LFLAGS) -L$(LIBRE_SO) -lre -o $@
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.c $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " CC [M] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) -c $< -o $@ $(DFLAGS)
+ $(HIDE)$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) -c $< -o $@ $(DFLAGS)
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.m $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " OC [M] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) $(OBJCFLAGS) \
+ $(HIDE)$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) $(OBJCFLAGS) \
-c $< -o $@ $(DFLAGS)
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.cpp $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " CXX [M] $@"
@mkdir -p $(dir $@)
- @$(CXX) $(CXXFLAGS) $($(call modulename,$@)_CXXFLAGS) \
+ $(HIDE)$(CXX) $(CXXFLAGS) $($(call modulename,$@)_CXXFLAGS) \
-c $< -o $@ $(DFLAGS)
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.S $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " AS [M] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) -DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
+ $(HIDE)$(CC) $(CFLAGS) -DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
else
@@ -76,14 +76,14 @@ $(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.c $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " CC [m] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) \
+ $(HIDE)$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) \
-DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.m $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " OC [m] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) $(OBJCFLAGS) \
+ $(HIDE)$(CC) $(CFLAGS) $($(call modulename,$@)_CFLAGS) $(OBJCFLAGS) \
-DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
@@ -91,13 +91,13 @@ $(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.cpp $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " CXX [m] $@"
@mkdir -p $(dir $@)
- @$(CXX) $(CXXFLAGS) $($(call modulename,$@)_CXXFLAGS) \
+ $(HIDE)$(CXX) $(CXXFLAGS) $($(call modulename,$@)_CXXFLAGS) \
-DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
$(BUILD)/modules/$(MOD)/%.o: modules/$(MOD)/%.S $(BUILD) Makefile mk/mod.mk \
modules/$(MOD)/module.mk mk/modules.mk
@echo " AS [m] $@"
@mkdir -p $(dir $@)
- @$(CC) $(CFLAGS) -DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
+ $(HIDE)$(CC) $(CFLAGS) -DMOD_NAME=\"$(MOD)\" -c $< -o $@ $(DFLAGS)
endif