Use pkg-config instead of specifying libs manually

This commit is contained in:
zvon 2020-06-29 01:22:05 +02:00
parent 5df1129707
commit d37449ec4c

View File

@ -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