summaryrefslogtreecommitdiffstats
path: root/udev/Makefile
blob: b2b8994a4e45aaba605c1e09d796c977ced224f8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# commands
CC	:= gcc
INSTALL	:= install
RM	:= rm
# flags
CFLAGS	+= -std=c11 -O2 -fpic -pie -Wall -Werror

all: ykfde

ykfde: ykfde.c ../config.h
	$(CC) $(CFLAGS) -lykpers-1 -lyubikey -liniparser $(LDFLAGS) -o ykfde ykfde.c

install: ykfde
	$(INSTALL) -D -m0755 ykfde $(DESTDIR)/usr/lib/udev/ykfde

clean:
	$(RM) -f ykfde