summaryrefslogtreecommitdiff
path: root/Configurations
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-06-25 08:25:12 +0200
committerDr. David von Oheimb <dev@ddvo.net>2022-09-30 22:25:45 +0200
commit67e0735f66971635508d9ab3f07e8b05a95491d5 (patch)
tree329a83892d4cafad73d40bc33034376c5ebeb41b /Configurations
parent8d703a045f553eeebc1a2267a6a66c580b48031f (diff)
downloadopenssl-new-67e0735f66971635508d9ab3f07e8b05a95491d5.tar.gz
Makefile: Add SRCS list of all .c (and any .cc and .cpp) files
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/15913)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/unix-Makefile.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 56ce7e98f7..c74d539f4a 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -1306,6 +1306,14 @@ errors:
}
"";
-}
+SRCS={-
+sub uniq { my %seen; grep !$seen{$_}++, @_; }
+sub flat(@) { return map { ref eq 'ARRAY' ? @$_ : $_ } @_; }
+join(" \\\n" . ' ' x 5, fill_lines(" ", $COLUMNS - 5,
+ uniq(grep /\.(c|cc|cpp)$/,
+ flat (map { $unified_info{sources}->{$_} }
+ (sort keys %{$unified_info{sources}})))))
+-}
CRYPTOHEADERS={- join(" \\\n" . ' ' x 14,
fill_lines(" ", $COLUMNS - 14, sort keys %cryptoheaders)) -}
SSLHEADERS={- join(" \\\n" . ' ' x 11,