summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Coppa <dcoppa@openbsd.org>2012-05-08 20:59:00 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-05-08 20:59:00 +0200
commiteee4424677964ddc5b0f01d120db71f160a7c9e1 (patch)
tree393c8a23f01b94cb4e4ae2610646b1b6e3ff8715
parent6b2b961db41088cea59b05a50599e5c0abea07d4 (diff)
downloadpianobar-eee4424677964ddc5b0f01d120db71f160a7c9e1.tar.gz
pianobar-eee4424677964ddc5b0f01d120db71f160a7c9e1.tar.bz2
pianobar-eee4424677964ddc5b0f01d120db71f160a7c9e1.zip
Use pkg-config for libmad and gnutls
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6c8e9e2..84d1081 100644
--- a/Makefile
+++ b/Makefile
@@ -73,11 +73,12 @@ ifeq (${DISABLE_MAD}, 1)
LIBMAD_LDFLAGS=
else
LIBMAD_CFLAGS=-DENABLE_MAD
- LIBMAD_LDFLAGS=-lmad
+ LIBMAD_CFLAGS+=$(shell pkg-config --cflags mad)
+ LIBMAD_LDFLAGS=$(shell pkg-config --libs mad)
endif
-LIBGNUTLS_CFLAGS=
-LIBGNUTLS_LDFLAGS=-lgnutls
+LIBGNUTLS_CFLAGS=$(shell pkg-config --cflags gnutls)
+LIBGNUTLS_LDFLAGS=$(shell pkg-config --libs gnutls)
LIBGCRYPT_CFLAGS=
LIBGCRYPT_LDFLAGS=-lgcrypt