From 1daa4c5ca699080b5cfa544fae4522e3ac9ceccc Mon Sep 17 00:00:00 2001 From: Ansa89 Date: Mon, 23 Jun 2014 22:32:10 +0200 Subject: [PATCH] Makefile: add toxic version --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 7a25215..30d5a7b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,10 @@ +TOXIC_VERSION = 0.4.1 +REV = $(shell git rev-list HEAD --count) +VERSION = $(TOXIC_VERSION)_r$(REV) + LIBS = libtoxcore ncurses -CFLAGS = -std=gnu99 -pthread +CFLAGS = -DTOXICVER="\"$(VERSION)\"" -std=gnu99 -pthread LDFLAGS = -ldl -lresolv DESTDIR ?= /usr/local