1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Show the compiler and linker invocations during the build
If the "V" environment variable is set to the value "1", show
the compiler and linker commands before running them.
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2023-01-05
--- a/Makefile
+++ b/Makefile
@@ -158,6 +158,7 @@
compile: \
warn-auto.sh conf-cc
( cat warn-auto.sh; \
+ [ '$V' != '1' ] || echo echo "`head -1 conf-cc`" '-c $${1+"$$@"}'; \
echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \
) > compile
chmod 755 compile
@@ -384,6 +385,8 @@
warn-auto.sh conf-ld
( cat warn-auto.sh; \
echo 'main="$$1"; shift'; \
+ [ '$V' != '1' ] || echo echo "`head -1 conf-ld`" \
+ '-o "$$main" "$$main".o $${1+"$$@"}'; \
echo exec "`head -1 conf-ld`" \
'-o "$$main" "$$main".o $${1+"$$@"}' \
) > load
|