-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (30 loc) · 889 Bytes
/
makefile
File metadata and controls
40 lines (30 loc) · 889 Bytes
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
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
CC=gcc
CFLAGS=-Wall -O3 -march=native
all: ichi-keygen ichi-lock ichi-sign
full: clean all tests
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
ichi-keygen: ichi-keygen.o base64/base64.o monocypher/monocypher.o utils.o
$(CC) -o $@ $^
ichi-lock: ichi-lock.o base64/base64.o \
monocypher/monocypher.o utils.o lock_stream.o \
readpassphrase.o
$(CC) -o $@ $^
ichi-sign: ichi-sign.o base64/base64.o monocypher/monocypher.o utils.o
$(CC) -o $@ $^
clean:
-rm *.o */*.o
-rm -rf test
-rm ichi-lock ichi-keygen ichi-sign
tests: ichi-keygen ichi-lock ichi-sign
bats test_lock.sh test_sign.sh
# install: kurv luck
# install -d $(DESTDIR)$(PREFIX)/bin/
# install ./kurv $(DESTDIR)$(PREFIX)/bin/kurv
# install ./luck $(DESTDIR)$(PREFIX)/bin/luck
# uninstall:
# rm $(DESTDIR)$(PREFIX)/bin/kurv
# rm $(DESTDIR)$(PREFIX)/bin/luck