summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2019-05-14 13:11:34 -0700
committerLee Duncan <lduncan@suse.com>2019-05-14 13:11:34 -0700
commitf66608aa9ce989c91f744bb2f3f34d2e01aedc87 (patch)
tree30d171913c2b4ce082d5f9a833b14768930c081a /Makefile
parent0cf0a05ae0ff67d9b68a69b68df89f42258c3c53 (diff)
downloadopen-iscsi-f66608aa9ce989c91f744bb2f3f34d2e01aedc87.tar.gz
Make iscsid systemd usage optional
You can compile without system now by using something like: make OPTFLAGS="-DNO_SYSTEMD ..." NO_SYSTEMD=1 This will skip systemd code for iscsid and iscsiuio.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c941740..9a33774 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,11 @@ ifneq (,$(CFLAGS))
export CFLAGS
endif
+# export systemd disablement if set
+ifneq ($(NO_SYSTEMD),)
+export NO_SYSTEMD
+endif
+
# Random comments:
# using '$(MAKE)' instead of just 'make' allows make to run in parallel
# over multiple makefile.