summaryrefslogtreecommitdiff
path: root/modules/gtk/module.mk
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gtk/module.mk')
-rw-r--r--modules/gtk/module.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/gtk/module.mk b/modules/gtk/module.mk
index aae0145..2ed3709 100644
--- a/modules/gtk/module.mk
+++ b/modules/gtk/module.mk
@@ -8,8 +8,13 @@
MOD := gtk
$(MOD)_SRCS += gtk_mod.c call_window.c dial_dialog.c transfer_dialog.c \
uri_entry.c
-$(MOD)_LFLAGS += `pkg-config --libs gtk+-2.0 `
-$(MOD)_CFLAGS += `pkg-config --cflags gtk+-2.0 `
+$(MOD)_LFLAGS += `pkg-config --libs gtk+-2.0 $($(MOD)_EXTRA)`
+$(MOD)_CFLAGS += `pkg-config --cflags gtk+-2.0 $($(MOD)_EXTRA)`
$(MOD)_CFLAGS += -Wno-strict-prototypes
+ifneq ($(USE_LIBNOTIFY),)
+$(MOD)_EXTRA = libnotify
+$(MOD)_CFLAGS += -DUSE_LIBNOTIFY=1
+endif
+
include mk/mod.mk