summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-17 18:00:40 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-17 18:00:40 +0100
commit09e957eec11ac38a4c6dcef9012aa4ab8de9fb5b (patch)
tree31a15764863eb4f85501f1156ba29e0f7799bb9b /Makefile
parentdca3fbc189503465d5720b487533c6a5a8e6996e (diff)
all: Add version information
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 14c93cb..3b06b95 100644
--- a/Makefile
+++ b/Makefile
@@ -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