about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorRory Bradford <roryrjb@gmail.com>2020-02-22 16:15:05 +0000
committerRory Bradford <roryrjb@gmail.com>2020-02-22 16:15:05 +0000
commit1e726e662d1e90157029d77534ee6ebea3f90212 (patch)
tree13c94eef5efd551886f892ffc7ce0a96a17f6fe2 /Makefile
parentc4fc1439a88916edba6fd1f5ead05105d9ad1299 (diff)
downloadrf-1e726e662d1e90157029d77534ee6ebea3f90212.tar.gz
Add dirname option
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
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)