summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 312ff7ca4850a082f2b4ad3c77594a16ccf9be54 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# netlink-notify - Notify about netlink changes

CC	:= gcc
CFLAGS	+= $(shell pkg-config --cflags --libs libmnl) \
	   $(shell pkg-config --cflags --libs libnotify)
VERSION	= $(shell git describe --tags --long)

all: netlink-notify.c
	$(CC) $(CFLAGS) -o netlink-notify netlink-notify.c \
		-DVERSION="\"$(VERSION)\""

clean:
	/bin/rm -f *.o *~ netlink-notify