1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)
all: example notification notification-glib
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)
|