summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/decompressor/Makefile2
-rwxr-xr-xtools/configure6
-rw-r--r--tools/make.inc2
-rw-r--r--tools/makebmp.inc2
4 files changed, 9 insertions, 3 deletions
diff --git a/firmware/decompressor/Makefile b/firmware/decompressor/Makefile
index 17ccf6d..46d7afe 100644
--- a/firmware/decompressor/Makefile
+++ b/firmware/decompressor/Makefile
@@ -10,7 +10,7 @@
ifndef V
SILENT=@
endif
-PRINTS=$(info $(1))$(SILENT)
+PRINTS=$(SILENT)$(call info,$(1))
LDS := link.lds
LINKFILE = $(OBJDIR)/linkage.lds
diff --git a/tools/configure b/tools/configure
index 66636b5..d773c5a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -1421,6 +1421,12 @@ else
VERBOSEOPT=-v
endif
+# old 'make' versions don't have the built-in 'info' function
+info=old\$(warning Consider upgrading to GNU make 3.81+ for optimum build performance.)
+ifeq (\$(call info),old)
+export info=echo "\$\$(1)";
+endif
+
export ROOTDIR=@ROOTDIR@
export FIRMDIR=@FIRMDIR@
export APPSDIR=@APPSDIR@
diff --git a/tools/make.inc b/tools/make.inc
index 8d75326..8e125c8 100644
--- a/tools/make.inc
+++ b/tools/make.inc
@@ -3,7 +3,7 @@
ifndef V
SILENT=@
endif
-PRINTS=$(info $(1))$(SILENT)
+PRINTS=$(SILENT)$(call info,$(1))
$(OBJDIR)/%.o: %.c
$(SILENT)mkdir -p $(dir $@)
diff --git a/tools/makebmp.inc b/tools/makebmp.inc
index 9c8c640..987a214 100644
--- a/tools/makebmp.inc
+++ b/tools/makebmp.inc
@@ -5,7 +5,7 @@ dep: $(DEPFILE)
ifndef V
SILENT=@
endif
-PRINTS=$(info $(1))$(SILENT)
+PRINTS=$(SILENT)$(call info,$(1))
$(OBJDIR)/%.c: %.bmp
$(SILENT)mkdir -p $(dir $@)