From 3a3f779487fc45ad7890c4fba7e3735a721e51f4 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 7 Mar 2012 01:34:42 +0000 Subject: Add compile time version numbers Uses git tags as version number --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7659c27..d2accc5 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,10 @@ FTPHELPERDIR=/usr/bin PHPSDIR=php WWWDIR=/var/www +GITTAGFLAG := -D'VERSION_STRING="$(shell LC_ALL=C git describe --tags)"' +MODBUSLOGCFLAGS += $(GITTAGFLAG) +FTPHELPERCFLAGS += $(GITTAGFLAG) + all: modbuslog ftphelper modbuslog: $(SDIR)/modbuslog.c -- cgit v1.2.3