aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-01-05 16:45:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-01-05 16:45:01 +0100
commited8b18dbe85d4d1915101d2ee5a0e9c0263f1971 (patch)
tree64735a8e526a4d0b4013240063aa0255ccfd8b11 /Makefile
parent6cf832b9b4407bac42c9233fa4b2d376ea10e777 (diff)
downloadnetlink-notify-ed8b18dbe85d4d1915101d2ee5a0e9c0263f1971.tar.gz
netlink-notify-ed8b18dbe85d4d1915101d2ee5a0e9c0263f1971.tar.zst
use systemd service manager notification
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37c1e85..9f4e38d 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,10 @@ RM := rm
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
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