1
DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
2
DBUS_LIBS = $(shell pkg-config --libs dbus-1)
3
GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0)
4
GTK_LIBS = $(shell pkg-config --libs gtk+-2.0)
6
PROGRAMS = example notification notification-glib test-notify-monitor
10
example: example.c message-menuitem.c
11
gcc -Wall -g $(GTK_CFLAGS) -o example example.c message-menuitem.c $(GTK_LIBS)
13
notification: notification.c
14
gcc -Wall -g $(DBUS_CFLAGS) -o notification notification.c $(DBUS_LIBS)
16
notification-glib: notification-glib.c
17
gcc -Wall -g $(GTK_CFLAGS) -o notification-glib notification-glib.c $(GTK_LIBS)
19
test-notify-monitor: test-notify-monitor.c notify-monitor.c
20
gcc -Wall -g $(GTK_CFLAGS) -o test-notify-monitor test-notify-monitor.c notify-monitor.c $(GTK_LIBS)