From 3eca6cc27d295414e355d5ba08412f8eb385f7e2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 23 Aug 2025 18:21:04 -0400 Subject: Use config file with default fallbacks for tomo defs --- src/config.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/config.h diff --git a/src/config.h b/src/config.h new file mode 100644 index 00000000..f7fa63a0 --- /dev/null +++ b/src/config.h @@ -0,0 +1,27 @@ +// Configuration of values that will be baked into the executable: + +#ifndef TOMO_VERSION +# define TOMO_VERSION "v???" +#endif + +#ifndef GIT_VERSION +# define GIT_VERSION "???" +#endif + +#ifndef TOMO_PREFIX +# define TOMO_PREFIX "/usr/local" +#endif + +#ifndef DEFAULT_C_COMPILER +# define DEFAULT_C_COMPILER "cc" +#endif + +#ifndef SUDO +# if defined(__OpenBSD__) +# define SUDO "doas" +# else +# define SUDO "sudo" +# endif +#endif + +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 -- cgit v1.2.3