-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
32 lines (30 loc) · 866 Bytes
/
Makefile.in
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
include ../compiler
VPATH = ../../src/base:../../src/keystore:../../src/tinyscheme-1.40
IOPTS = -I../include
LOPTS = -L../lib -lnacl
OBJS = ../lib/randombytes.o
COPTS = -std=c99 -g
%.o : %.c
$(compiler) $(COPTS) $(IOPTS) -c $? -o $@
% : %.o
$(compiler) $(IOPTS) $(LOPTS) $^ $(OBJS) -o $@
% : %.scm
csc $^ -o $@
all: base keystore
base : keygen sign verify encrypt decrypt sign-detached verify-detached \
encrypt-passphrase decrypt-passphrase
keystore: hex unhex lookup
hex : hex.o
unhex : unhex.o
keygen : keygen.o slurp.o
sign : sign.o slurp.o
verify: verify.o slurp.o
encrypt: encrypt.o slurp.o
decrypt: decrypt.o slurp.o
sign-detached: sign-detached.o slurp.o
verify-detached: verify-detached.o slurp.o
encrypt-passphrase: encrypt-passphrase.o slurp.o romix.o
decrypt-passphrase: decrypt-passphrase.o slurp.o romix.o
lookup : lookup.scm
.PHONY clean:
rm *