summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-06-22 10:47:39 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-06-22 10:52:11 +0200
commit886412f29ed7ea23f98d6cf9016603fb1a71a114 (patch)
treecdff8d510517a969cd38d9c15f399bf3270440d5 /bin/Makefile
parent64919b3fdaa41fbdb857cc2b1f4680dd30f14727 (diff)
downloadmkinitcpio-ykfde-886412f29ed7ea23f98d6cf9016603fb1a71a114.tar.gz
mkinitcpio-ykfde-886412f29ed7ea23f98d6cf9016603fb1a71a114.tar.zst
rename the worker program
This is no longer just udev... So rename and move.
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 8cfb3a5..a7c1efe 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -6,7 +6,10 @@ RM := rm
CFLAGS += -std=gnu11 -O2 -fPIC -Wall -Werror
LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
-all: ykfde ykfde-cpio
+all: worker ykfde ykfde-cpio
+
+worker: worker.c ../config.h
+ $(CC) $(CFLAGS) -liniparser -lkeyutils -lykpers-1 -lyubikey $(LDFLAGS) -o worker worker.c
ykfde: ykfde.c ../config.h ../version.h
$(CC) $(CFLAGS) -lcryptsetup -liniparser -lkeyutils -lykpers-1 -lyubikey $(LDFLAGS) -o ykfde ykfde.c
@@ -14,9 +17,10 @@ ykfde: ykfde.c ../config.h ../version.h
ykfde-cpio: ykfde-cpio.c ../config.h ../version.h
$(CC) $(CFLAGS) -larchive $(LDFLAGS) -o ykfde-cpio ykfde-cpio.c
-install: ykfde ykfde-cpio
+install: worker ykfde ykfde-cpio
+ $(INSTALL) -D -m0755 worker $(DESTDIR)/usr/lib/ykfde/worker
$(INSTALL) -D -m0755 ykfde $(DESTDIR)/usr/bin/ykfde
$(INSTALL) -D -m0755 ykfde-cpio $(DESTDIR)/usr/bin/ykfde-cpio
clean:
- $(RM) -f ykfde ykfde-cpio
+ $(RM) -f worker ykfde ykfde-cpio