aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-05-16 12:18:56 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-05-16 12:18:56 +0200
commit4d7a7ea9026a370657dabc304a1888615f7aa12b (patch)
tree862a8eb7755907dcf3d7b374d424c60c6f71548f
parent06d4b9b7a160ee1fbdc419f16dd6b8c9277288a8 (diff)
downloadmpd-notification-4d7a7ea9026a370657dabc304a1888615f7aa12b.tar.gz
mpd-notification-4d7a7ea9026a370657dabc304a1888615f7aa12b.tar.zst
build with iniparser headers in subdir
Fixes #20
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4c2cd46..c56a3e9 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,9 @@ RM := rm
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
+ifneq ($(wildcard /usr/include/iniparser),)
+CFLAGS += -I/usr/include/iniparser
+endif
CFLAGS += -liniparser
CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null)
ifneq ($(CFLAGS_SYSTEMD),)