diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-03-24 19:02:14 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-03-24 19:02:14 +0100 |
commit | bf102f6036b9291f0494b253b1558f2dab9ec001 (patch) | |
tree | 875101861b0b9434419a5875e4301a3bd5d34af0 /Makefile | |
parent | fix PASSPHRASE_TEXT (diff) | |
download | libpassphrase-ba40cb8d1efb1f8e3fa16838355f8d9a936c6fd9.tar.gz libpassphrase-ba40cb8d1efb1f8e3fa16838355f8d9a936c6fd9.tar.bz2 libpassphrase-ba40cb8d1efb1f8e3fa16838355f8d9a936c6fd9.tar.xz |
m + doc PASSPHRASE_STAR_CHAR, PASSPHRASE_TEXT_EMPTY and PASSPHRASE_TEXT_NOT_EMPTY1427220157
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -31,8 +31,8 @@ PKGNAME ?= libpassphrase # Options with which to compile the library OPTIONS ?= # PASSPHRASE_ECHO: Do not hide the passphrase -# PASSPHRASE_STAR: Use '*' for each character instead of no echo -# PASSPHRASE_TEXT: Use '(empty)' and '(not empty)' instead of no echo +# PASSPHRASE_STAR: Use "*" for each character instead of no echo +# PASSPHRASE_TEXT: Use "(empty)" and "(not empty)" instead of no echo # PASSPHRASE_REALLOC: Soften security by using `realloc` # PASSPHRASE_MOVE: Enable move of point # PASSPHRASE_INSERT: Enable insert mode @@ -43,6 +43,15 @@ OPTIONS ?= # DEFAULT_INSERT: Use insert mode as default # PASSPHRASE_INVALID: Prevent duplication of non-initialised memory +# Text to use instead of "*" +PASSPHRASE_STAR_CHAR ?= \* +# Text to use instead of "(empty)" +PASSPHRASE_TEXT_EMPTY ?= (empty) +# Text to use instead of "(not empty)" +PASSPHRASE_TEXT_NOT_EMPTY ?= (not empty) + +QUOTED_OPTIONS = PASSPHRASE_STAR_CHAR PASSPHRASE_TEXT_EMPTY PASSPHRASE_TEXT_NOT_EMPTY + # Optimisation settings for C code compilation OPTIMISE ?= -Os @@ -61,7 +70,7 @@ WARN = -Wall -Wextra -Wdouble-promotion -Wformat=2 -Winit-self -Wmissing-include # The C standard for C code compilation STD = gnu99 # C preprocessor flags -CPPFLAGS_ = $(foreach D, $(OPTIONS), -D'$(D)=1') +CPPFLAGS_ = $(foreach D, $(OPTIONS), -D'$(D)=1') $(foreach D, $(QUOTED_OPTIONS), -D'$(D)="$($(D))"') # C compiling flags CFLAGS_ = -std=$(STD) $(WARN) # Linking flags |