about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 208c034..9f8b7ba 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 .SUFFIXES: .c .o
 
 BIN = rf
+VERSION = 0.0.2
 OBJS = rf.o
 MANPAGE = rf.1
 CC = cc
@@ -17,7 +18,10 @@ CFLAGS += -ansi \
 	  -O2 \
 	  -fstack-protector-strong \
 	  -fpie \
-	  -D_FORTIFY_SOURCE=2 $(INC) $(LIBS)
+	  -D_FORTIFY_SOURCE=2 \
+	  -DVERSION='"$(VERSION)"' \
+	  -DNAME='"$(BIN)"' \
+	  $(INC) $(LIBS)
 PREFIX ?= /usr/local
 
 build: $(BIN)