summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-12-23 18:25:17 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-12-23 18:25:17 +0100
commit11bd572adf4a861e4c42123c2dadbacd3349af93 (patch)
tree995a932a7c13b463ec46c1b096012bc999561fd1 /bin/Makefile
parentc96ab47092b799c274a4021b19b7f9cb3ddbb98d (diff)
downloadmkinitcpio-ykfde-11bd572adf4a861e4c42123c2dadbacd3349af93.tar.gz
mkinitcpio-ykfde-11bd572adf4a861e4c42123c2dadbacd3349af93.tar.zst
support updating the challenge on boot
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/Makefile b/bin/Makefile
index daa77f2..4fcd6fb 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -5,13 +5,17 @@ RM := rm
# flags
CFLAGS += -std=c11 -O2 -fpic -pie -Wall -Werror
-all: ykfde
+all: ykfde ykfde-cpio
ykfde: ykfde.c
$(CC) $(CFLAGS) -lykpers-1 -lyubikey -liniparser -lcryptsetup $(LDFLAGS) -o ykfde ykfde.c
-install: ykfde
+ykfde-cpio: ykfde-cpio.c
+ $(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
+ $(RM) -f ykfde ykfde-cpio