aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/Makefile')
-rw-r--r--com32/sysdump/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/sysdump/Makefile b/com32/sysdump/Makefile
index a64414ad..4ac235a8 100644
--- a/com32/sysdump/Makefile
+++ b/com32/sysdump/Makefile
@@ -26,6 +26,15 @@ TESTFILES =
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
+# The DATE is set on the make command line when building binaries for
+# official release. Otherwise, substitute a hex string that is pretty much
+# guaranteed to be unique to be unique from build to build.
+ifndef DATE
+DATE := $(shell sh ../gen-id.sh $(VERSION) $(HEXDATE))
+endif
+
+CFLAGS += -DDATE='"$(DATE)"'
+
all: $(MODULES) $(TESTFILES)
sysdump.elf : $(OBJS) $(LIBS) $(C_LIBS)