summarylogtreecommitdiffstats
path: root/makefile.patch
blob: 347c8cd2daf68eddfba0141674fd8cc54bb7b2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Makefile b/Makefile
index 54482d8..014007c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 all:
-	gcc mucignore.c $(CFLAGS) -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include/ -I/usr/include/loudmouth-1.0/ -std=c99 -lglib-2.0 -shared -DMODULES_ENABLE -o libmucignore.so -fPIC
+	gcc mucignore.c $(CFLAGS) \
+		`pkg-config --cflags mcabber` -std=c99 \
+		-shared -DMODULES_ENABLE -o libmucignore.so -fPIC
 
 install: all
 	install -D libmucignore.so "$(DESTDIR)"/libmucignore.so