aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 8d0314b8a4db0b4bcf6f4ac60f3707ed8fa640b8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# udev-block-notify - Notify about udev block events

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

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

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