From edb55a09821c29ed5a3f0029a212be6b5856db67 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 3 Jul 2022 14:28:37 +0200 Subject: [PATCH] BUILD: Show file sizes in verbose build --- Makefile | 6 ++++++ Makefile.common | 1 + rules.mk | 1 + 3 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index a6d83e7d3e8..60056c87ee0 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,12 @@ RM ?= rm -f RM_REC ?= $(RM) -r ZIP ?= zip -q +ifeq ($(VERBOSE_BUILD),1) + LS := ls -l +else + LS := true +endif + ####################################################################### # Misc stuff - you should never have to edit this # ####################################################################### diff --git a/Makefile.common b/Makefile.common index bc0be7bc55e..ab4cfd8c270 100644 --- a/Makefile.common +++ b/Makefile.common @@ -125,6 +125,7 @@ endif # The build rule for the ScummVM executable $(EXECUTABLE): $(DETECT_OBJS) $(OBJS) +$(QUIET_LINK)$(LD) $(LDFLAGS) $(PRE_OBJS_FLAGS) $+ $(POST_OBJS_FLAGS) $(LIBS) -o $@ + +$(QUIET)$(LS) $@ ifdef SPLIT_DWARF $(EXECUTABLE).dwp: $(EXECUTABLE) diff --git a/rules.mk b/rules.mk index 7081489f8c9..b12999377de 100644 --- a/rules.mk +++ b/rules.mk @@ -84,6 +84,7 @@ $(MODULE_LIB-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(QUIET)-$(RM) $@ $(QUIET_AR)$(AR) $@ $+ $(QUIET_RANLIB)$(RANLIB) $@ + $(QUIET)$(LS) $@ # Pseudo target for comfort, allows for "make common", "make gui" etc. $(MODULE): $(MODULE_LIB-$(MODULE))