aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-21 16:09:02 -0500
committerDave Reisner <dreisner@archlinux.org>2013-01-22 21:05:39 -0500
commit0027e9422fa7205d0a50b995fbe172c35c9ce379 (patch)
tree6ace11eb26204dffe902bc722ee604ab94d7a67e /Makefile
parent4aa7581f9dc97e3c8b01a9411cf665158895f4c0 (diff)
downloadmirror-ponymix-0027e9422fa7205d0a50b995fbe172c35c9ce379.tar.gz
mirror-ponymix-0027e9422fa7205d0a50b995fbe172c35c9ce379.tar.bz2
mirror-ponymix-0027e9422fa7205d0a50b995fbe172c35c9ce379.zip
add support for libnotify based notifier
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 28bdaf3..951debb 100644
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,19 @@ base_LIBS = -lm
libpulse_CXXFLAGS = $(shell pkg-config --cflags libpulse)
libpulse_LIBS = $(shell pkg-config --libs libpulse)
+libnotify_CXXFLAGS = $(shell pkg-config --cflags libnotify 2>/dev/null && echo "-DHAVE_NOTIFY")
+libnotify_LIBS = $(shell pkg-config --libs libnotify 2>/dev/null)
+
+
CXXFLAGS := \
$(base_CXXFLAGS) \
+ $(libnotify_CXXFLAGS) \
$(libpulse_CXXFLAGS) \
$(CXXFLAGS)
LDLIBS := \
$(base_LIBS) \
+ $(libnotify_LIBS) \
$(libpulse_LIBS)
all: ponymix