summaryrefslogtreecommitdiffstats
path: root/src/version.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-29 13:19:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-06-08 12:36:30 -0400
commit34e133bd0e2d5bb4eed5d5091d14d9e6fce1ff2b (patch)
tree2abf64518759de4a84d4ac08e218021e9643d3f8 /src/version.c
parent778295321928767552ebc577f15e88c17da4c1c9 (diff)
downloadbfs-34e133bd0e2d5bb4eed5d5091d14d9e6fce1ff2b.tar.xz
Embed more configuration info in bfs --version
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c
new file mode 100644
index 0000000..e2d4c87
--- /dev/null
+++ b/src/version.c
@@ -0,0 +1,28 @@
+// Copyright © Tavian Barnes <tavianator@tavianator.com>
+// SPDX-License-Identifier: 0BSD
+
+#include "prelude.h"
+
+const char bfs_version[] = {
+#include "version.i"
+};
+
+const char bfs_config[] = {
+#include "config.i"
+};
+
+const char bfs_cppflags[] = {
+#include "cppflags.i"
+};
+
+const char bfs_cflags[] = {
+#include "cflags.i"
+};
+
+const char bfs_ldflags[] = {
+#include "ldflags.i"
+};
+
+const char bfs_ldlibs[] = {
+#include "ldlibs.i"
+};