diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-17 18:00:40 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-17 18:00:40 +0100 |
commit | 09e957eec11ac38a4c6dcef9012aa4ab8de9fb5b (patch) | |
tree | 31a15764863eb4f85501f1156ba29e0f7799bb9b /Makefile | |
parent | dca3fbc189503465d5720b487533c6a5a8e6996e (diff) |
all: Add version information
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,6 +2,8 @@ # # Copyright (C) 2014-2015 Tobias Klauser <tklauser@distanz.ch> +VERSION = 0.1-rc1 + # llmnrd binary D_P = llmnrd D_OBJS = llmnr.o iface.o socket.o util.o llmnrd.o @@ -18,12 +20,15 @@ INSTALL = install CFLAGS ?= -W -Wall -O2 LDFLAGS ?= +CFLAGS += -DVERSION_STRING=\"v$(VERSION)\" + ifeq ($(DEBUG), 1) CFLAGS += -g -DDEBUG endif -CCQ = @echo " CC $<" && $(CC) -LDQ = @echo " LD $@" && $(CC) +Q ?= @ +CCQ = $(Q)echo " CC $<" && $(CC) +LDQ = $(Q)echo " LD $@" && $(CC) prefix ?= /usr/local |