summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
blob: daa77f2a4cd2d2557a48148b229eaf0f902fc39c (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
	$(CC) $(CFLAGS) -lykpers-1 -lyubikey -liniparser -lcryptsetup $(LDFLAGS) -o ykfde ykfde.c

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

clean:
	$(RM) -f ykfde