diff options
author | Rory Bradford <roryrjb@gmail.com> | 2020-02-22 16:15:05 +0000 |
---|---|---|
committer | Rory Bradford <roryrjb@gmail.com> | 2020-02-22 16:15:05 +0000 |
commit | 1e726e662d1e90157029d77534ee6ebea3f90212 (patch) | |
tree | 13c94eef5efd551886f892ffc7ce0a96a17f6fe2 /Makefile | |
parent | c4fc1439a88916edba6fd1f5ead05105d9ad1299 (diff) | |
download | rf-1e726e662d1e90157029d77534ee6ebea3f90212.tar.gz |
Add dirname option
Signed-off-by: Rory Bradford <roryrjb@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
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) |