blob: 6e77de82537f8255b107ddea83a14e88d601e85e (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# commands
CC := gcc
INSTALL := install
RM := rm
# flags
CFLAGS += -std=c11 -O2 -fpic -pie -Wall -Werror
all: ykfde ykfde-cpio
ykfde: ykfde.c ../config.h
$(CC) $(CFLAGS) -lykpers-1 -lyubikey -liniparser -lcryptsetup $(LDFLAGS) -o ykfde ykfde.c
ykfde-cpio: ykfde-cpio.c ../config.h
$(CC) $(CFLAGS) -larchive $(LDFLAGS) -o ykfde-cpio ykfde-cpio.c
install: ykfde ykfde-cpio
$(INSTALL) -D -m0755 ykfde $(DESTDIR)/usr/bin/ykfde
$(INSTALL) -D -m0755 ykfde-cpio $(DESTDIR)/usr/bin/ykfde-cpio
clean:
$(RM) -f ykfde ykfde-cpio
|