1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
DBUS_LIBS = $(shell pkg-config --libs dbus-1)
GTK_CFLAGS = $(shell pkg-config --cflags gtk+-2.0)
GTK_LIBS = $(shell pkg-config --libs gtk+-2.0)
PROGRAMS = example notification notification-glib test-notify-monitor
all: $(PROGRAMS)
example: example.c message-menuitem.c
gcc -Wall -g $(GTK_CFLAGS) -o example example.c message-menuitem.c $(GTK_LIBS)
notification: notification.c
gcc -Wall -g $(DBUS_CFLAGS) -o notification notification.c $(DBUS_LIBS)
notification-glib: notification-glib.c
gcc -Wall -g $(GTK_CFLAGS) -o notification-glib notification-glib.c $(GTK_LIBS)
test-notify-monitor: test-notify-monitor.c notify-monitor.c
gcc -Wall -g $(GTK_CFLAGS) -o test-notify-monitor test-notify-monitor.c notify-monitor.c $(GTK_LIBS)
clean:
rm $(PROGRAMS)
|