From f66608aa9ce989c91f744bb2f3f34d2e01aedc87 Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Tue, 14 May 2019 13:11:34 -0700 Subject: 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. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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. -- cgit v1.2.1