diff --git a/GNUmakefile b/GNUmakefile index 46f2d71..895cc8b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -177,7 +177,8 @@ define TEST_CPPFLAGS -I $(TEST_DIR)/$(HDR_DIR) endef define MCONF_CPPFLAGS - $(DISABLE_ASSERTS_OPTS) \ + $(DISABLE_ASSERTS_OPTS) \ + -D SK_VERSION=$(DIST_VERSION) \ -I $(TOOLS_DIR)/$(MCONF_NAME)/$(HDR_DIR) endef define SKAP_CPPFLAGS diff --git a/tools/mconf/src/mconf.c b/tools/mconf/src/mconf.c index b513226..4a57bae 100644 --- a/tools/mconf/src/mconf.c +++ b/tools/mconf/src/mconf.c @@ -23,11 +23,14 @@ #include #include +#define sk_xstr(s) sk_str(s) +#define sk_str(s) #s + #ifndef SK_VERSION #define SK_VERSION "v0.0-UNDEFINED" #endif #define CONFIG_FILE "config.mk" -#define TITLE "Sparky " SK_VERSION " Build Configuration" +#define TITLE "Sparky " sk_xstr(SK_VERSION) " Build Configuration" #define PADDING_HEIGHT 8 #define PADDING_WIDTH 7