From 6025b2d8322caea124582fb9292780382466d660 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 18 Feb 2025 14:29:09 -0600 Subject: Add -e flag to explain what the previous smiley face means. This requires us to also know what the previous return signal is, so if XD is given a return code, it passes it through when finishing execution. --- config.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index af2d55e..d1c7728 100644 --- a/config.mk +++ b/config.mk @@ -16,6 +16,10 @@ ERR = # uncomment to enable errors # ERR = -DERR +EXPLAIN = +# comment to disable explinations +EXPLAIN = -DEXPLAIN + # add compilation details to VERSION variable ifneq ($(GIT),) VERSION := $(VERSION)"\\nlibgit2 "`$(PKG_CONFIG) --modversion $(GITLIB)` @@ -25,5 +29,10 @@ ifeq ($(ERR),) else VERSION := $(VERSION)"\\nerrors enabled" endif +ifeq ($(EXPLAIN),) + VERSION := $(VERSION)"\\nexplinations disabled" +else + VERSION := $(VERSION)"\\nexplinations enabled" +endif CC = cc -- cgit v1.2.1