From 1f70f5866866b03fe6c5d0bd1fea33db7bb99a0d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 21 May 2024 13:21:14 +0200 Subject: update include, use pkg-config for iniparser ... which ships required files with release 4.2.2. --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f604121..32f5172 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,7 @@ RM := rm # flags CFLAGS_EXTRA += -std=c11 -O2 -fPIC -Wall -Werror -ifneq ($(wildcard /usr/include/iniparser),) -CFLAGS_EXTRA += -I/usr/include/iniparser -endif -CFLAGS_EXTRA += -liniparser +CFLAGS_EXTRA += $(shell pkg-config --cflags --libs iniparser) CFLAGS_SYSTEMD := $(shell pkg-config --cflags --libs libsystemd 2>/dev/null) ifneq ($(CFLAGS_SYSTEMD),) CFLAGS_EXTRA += -DHAVE_SYSTEMD $(CFLAGS_SYSTEMD) -- cgit v1.2.3-70-g09d2