diff options
author | Christian Hesse <mail@eworm.de> | 2017-01-05 16:54:33 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-01-05 16:54:33 +0100 |
commit | dd1cf4c39cfadc74eb1f871c2f2256f4e5c764f7 (patch) | |
tree | 1d0778a8a9e61bc9117dc1c6b2b7a91bd1fc94dc /Makefile | |
parent | 61c3a6fac48056193e9a332e6144d6f2132f9dde (diff) | |
download | udev-block-notify-dd1cf4c39cfadc74eb1f871c2f2256f4e5c764f7.tar.gz udev-block-notify-dd1cf4c39cfadc74eb1f871c2f2256f4e5c764f7.tar.zst |
use systemd service manager notification
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,6 +11,10 @@ CP := cp CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libudev) CFLAGS += $(shell pkg-config --cflags --libs libnotify) +CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null) +ifneq ($(CFLAGS_SYSTEMD),) +CFLAGS += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD) +endif LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie # this is just a fallback in case you do not use git but downloaded |