aboutsummaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
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