From d37449ec4cd8b7c7f211df31bd10484324cc1a2d Mon Sep 17 00:00:00 2001 From: zvon Date: Mon, 29 Jun 2020 01:22:05 +0200 Subject: [PATCH] Use pkg-config instead of specifying libs manually --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eef2a94..964ff0c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC ?= clang -CFLAGS ?= -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include/ -Wall -Wextra +CFLAGS ?= -O2 `pkg-config --cflags dbus-1` `pkg-config --libs dbus-1` -Wall -Wextra PREFIX ?= /usr/local/bin LDFLAGS ?= -ldbus-1 -lmpdclient