summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-02-19 00:36:11 +0100
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-02-19 00:36:11 +0100
commitc7e0264a71d3101cf660a9da354a33792914fd76 (patch)
treeee6440187db3dd2747f73e4f6eaa5e05b7c96599 /Makefile
parent39c5a5e929efc7c3b89a4e316dfd02b1734848d6 (diff)
Makefile: Support NO_XATTR variable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dfbacac..364825c 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,12 @@ endif
endif
endif
+ifneq (,$(NO_XATTR))
+ifneq (0,$(NO_XATTR))
+ADDITIONAL_FLAGS += -DNO_XATTR
+endif
+endif
+
PVER := $(PROJ_DIR)Makefile.ver
SDEP := Makefile.dep
@@ -90,6 +96,7 @@ MUSTHAVE_FLAGS := \
-D_FILE_OFFSET_BITS=64 \
-Wall -Wextra -pedantic \
-g \
+ $(ADDITIONAL_FLAGS) \
MUSTHAVE_CFLAGS := -std=c99
MUSTHAVE_CXXFLAGS := -std=c++11