-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (35 loc) · 1.82 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# inject a random key at compile time
CC = gcc -Dpepper=\"`head -c32 /dev/urandom | base64 -i | tr -d '\n'`\"
src = $(wildcard *.c)
obj = $(src:.c=.o)
LDFLAGS = -lbsd
getpin: $(obj)
$(CC) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(obj) getpin
install:
install -t /usr/local/sbin -m 700 -o root -g root getpin
install -t /usr/local/sbin -m 744 -o root -g root util/addsecret
install -t /usr/local/sbin -m 744 -o root -g root util/blockpin
install -t /usr/local/sbin -m 744 -o root -g root util/counter-inc
install -t /usr/local/sbin -m 744 -o root -g root util/counter-read
install -t /usr/local/sbin -m 700 -o root -g root util/dice5
install -t /usr/local/sbin -m 700 -o root -g root util/autopin
install -t /usr/local/sbin -m 744 -o root -g root util/checkpin
install -t /usr/local/sbin -m 744 -o root -g root util/clearkeyring
install -t /usr/local/sbin -m 744 -o root -g root util/dumpkeyring
install -t /usr/local/sbin -m 744 -o root -g root util/forgetpin
install -t /usr/local/sbin -m 744 -o root -g root util/forgetsecret
install -t /usr/local/sbin -m 744 -o root -g root util/gennonce
install -t /usr/local/sbin -m 744 -o root -g root util/gensecret
install -t /usr/local/sbin -m 744 -o root -g root util/getsecret
install -t /usr/local/sbin -m 744 -o root -g root util/getcardkeyid
install -t /usr/local/sbin -m 744 -o root -g root util/getcardserial
install -t /usr/local/sbin -m 744 -o root -g root util/gpg2ssh
install -t /usr/local/sbin -m 700 -o root -g root util/loadkeyring
install -t /usr/local/sbin -m 744 -o root -g root util/forgetpin
install -t /usr/local/sbin -m 700 -o root -g root util/pinentry-fake
install -t /usr/local/sbin -m 700 -o root -g root util/reload-gpgagent
install -t /usr/local/sbin -m 700 -o root -g root util/sealdata
install -t /usr/local/sbin -m 700 -o root -g root util/unsealdata