From 4d7a7ea9026a370657dabc304a1888615f7aa12b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 16 May 2018 12:18:56 +0200 Subject: build with iniparser headers in subdir Fixes #20 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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),) -- cgit v1.2.3-70-g09d2