diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-08-28 21:33:28 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-08-28 21:33:28 +0000 |
commit | b75e036cf14bb6caceb6f76bbda06659619f1f41 (patch) | |
tree | 8d76c032c238d9ad14b93d94b3d0115031d00de4 /infrastructure/makebuildenv.pl.in | |
parent | 8738a529ddeb5fc2d2ec56a9b722c1ef56dc684c (diff) |
Fix quiet-build makefiles to work on BSDs
Diffstat (limited to 'infrastructure/makebuildenv.pl.in')
-rwxr-xr-x | infrastructure/makebuildenv.pl.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in index c990c900..b5d462d9 100755 --- a/infrastructure/makebuildenv.pl.in +++ b/infrastructure/makebuildenv.pl.in @@ -544,6 +544,32 @@ DEPENDMAKEFLAGS = VARIENT = DEBUG .endif +__E + + if ($bsd_make) + { + print MAKE <<__E; +.ifdef V +HIDE = +_CXX = \$(CXX) +_LINK = \$(CXX) +_WINDRES = \$(WINDRES) +_AR = \$(AR) +_RANLIB = \$(RANLIB) +.else +HIDE = @ +_CXX = @ echo "[CXX] " \$(*F) && \$(CXX) +_LINK = @ echo "[LINK] " \$(*F) && \$(CXX) +_WINDRES = @ echo "[WINDRES]" \$(*F) && \$(WINDRES) +_AR = @ echo "[AR] " \$(*F) && \$(AR) +_RANLIB = @ echo "[RANLIB] " \$(*F) && \$(RANLIB) +.endif + +__E + } + else + { + print MAKE <<__E; HIDE = \$(if \$(V),,@) _CXX = \$(if \$(V),\$(CXX), @ echo "[CXX] \$<" && \$(CXX)) _LINK = \$(if \$(V),\$(CXX), @ echo "[LINK] \$@" && \$(CXX)) @@ -552,6 +578,7 @@ _AR = \$(if \$(V),\$(AR), @ echo "[AR] \$@" && \$(AR)) _RANLIB = \$(if \$(V),\$(RANLIB), @ echo "[RANLIB] \$@" && \$(RANLIB)) __E + } # read directory opendir DIR,$mod; |