X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=Makefile;h=9838c514d4e38d291a07c64b3486d02885c17a95;hp=b723ea1b71a9ba877f551a7b3e376824262cd1f5;hb=c7ba212093be8da9d393ad74eeaac47e11370db4;hpb=10836361b425af2fd602d4fe6adb12c8037f99d9 diff --git a/Makefile b/Makefile index b723ea1..9838c51 100644 --- a/Makefile +++ b/Makefile @@ -23,13 +23,15 @@ LDFLAGS=-lcurses +REVISION_NUMBER=$(shell git log | grep ^commit | wc -l) + ifeq ($(DEBUG),yes) OPTIMIZE_FLAG = -ggdb3 -DDEBUG else OPTIMIZE_FLAG = -ggdb3 -O3 endif -CXXFLAGS = -Wall $(OPTIMIZE_FLAG) +CXXFLAGS = -DREVISION_NUMBER=$(REVISION_NUMBER) -Wall $(OPTIMIZE_FLAG) all: selector