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
all: example notification
9
gcc -Wall -g $(GTK_CFLAGS) -o example example.c $(GTK_LIBS)
11
notification: notification.c
12
gcc -Wall -g $(DBUS_CFLAGS) -o notification notification.c $(DBUS_LIBS)