-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
167 lines (167 loc) · 11.8 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
default : it
load :
echo '#!/bin/sh' > load
echo 'main="$$1"; shift' >> load
echo 'exec cc -o "$$main" "$$main".o $${1+"$$@"}' >> load
chmod +x load
compile :
echo '#!/bin/sh' > compile
echo 'exec cc -c $${1+"$$@"}' >> compile
chmod +x compile
install : it
./install /usr/local/bin/ crypto-box-keypair crypto-secretbox-key crypto-box crypto-box-open crypto-secretbox crypto-secretbox-open crypto-hash-sha256 crypto-hash-sha512 nacl-key-decode nacl-key-encode
./install /usr/share/man/man1/ crypto-box-keypair.1 crypto-secretbox-key.1 crypto-box.1 crypto-box-open.1 crypto-secretbox.1 crypto-secretbox-open.1 crypto-hash-sha256.1 crypto-hash-sha512.1
test : test-box test-secretbox
test-box : crypto-box crypto-box-open pk1 pk2
echo 'testmessage' | ./crypto-box pk1 sk2 | ./crypto-box-open pk2 sk1
test-secretbox : crypto-secretbox crypto-secretbox-open k
echo 'testmessage' | ./crypto-secretbox k | ./crypto-secretbox-open k
longtest-box : crypto-box crypto-box-open zeros zerocheck pk1 pk2
./zeros | ./crypto-box pk1 sk2 | ./crypto-box-open pk2 sk1 | ./zerocheck
longtest-secretbox : crypto-secretbox crypto-secretbox-open zeros zerocheck k
./zeros | ./crypto-secretbox k | ./crypto-secretbox-open k | ./zerocheck
k : crypto-secretbox-key
./crypto-secretbox-key k
pk1 : crypto-box-keypair
./crypto-box-keypair pk1 sk1
pk2 : crypto-box-keypair
./crypto-box-keypair pk2 sk2
crypto-box : load crypto-box.o alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_afternm.o crypto_str_box_beforenm.o env.o error.o error_str.o fmt_uint.o fmt_ulong.o netstring_write.o open_read.o openreadclose.o readchunk.o readclose.o str_len.o str_start.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o
./load crypto-box alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_afternm.o crypto_str_box_beforenm.o env.o error.o error_str.o fmt_uint.o fmt_ulong.o netstring_write.o open_read.o openreadclose.o readchunk.o readclose.o str_len.o str_start.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o -lnacl
crypto-box-keypair : load crypto-box-keypair.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o open_excl.o str_len.o strerr_die.o strerr_sys.o /usr/lib/randombytes.o
./load crypto-box-keypair buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o open_excl.o str_len.o strerr_die.o strerr_sys.o /usr/lib/randombytes.o -lnacl
crypto-box-open : load crypto-box-open.o alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_beforenm.o crypto_str_box_open_afternm.o env.o error.o error_str.o netstring_read.o open_read.o openreadclose.o readchunk.o readclose.o scan_ulong.o str_len.o str_start.o stralloc_catb.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o
./load crypto-box-open alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_beforenm.o crypto_str_box_open_afternm.o env.o error.o error_str.o netstring_read.o open_read.o openreadclose.o readchunk.o readclose.o scan_ulong.o str_len.o str_start.o stralloc_catb.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o -lnacl
crypto-hash-sha256 : load crypto-hash-sha256.o alloc.o alloc_re.o appendchunk.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_puthex.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_hash_sha256.o error.o error_str.o str_diff.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o
./load crypto-hash-sha256 alloc.o alloc_re.o appendchunk.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_puthex.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_hash_sha256.o error.o error_str.o str_diff.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o -lnacl
crypto-hash-sha512 : load crypto-hash-sha512.o alloc.o alloc_re.o appendchunk.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_puthex.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_hash_sha512.o error.o error_str.o str_diff.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o
./load crypto-hash-sha512 alloc.o alloc_re.o appendchunk.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_puthex.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_hash_sha512.o error.o error_str.o str_diff.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o -lnacl
crypto-secretbox : load crypto-secretbox.o alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_afternm.o crypto_str_box_beforenm.o crypto_str_secretbox.o env.o error.o error_str.o fmt_uint.o fmt_ulong.o netstring_write.o open_read.o openreadclose.o readchunk.o readclose.o str_len.o str_start.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o
./load crypto-secretbox alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_box_afternm.o crypto_str_box_beforenm.o crypto_str_secretbox.o env.o error.o error_str.o fmt_uint.o fmt_ulong.o netstring_write.o open_read.o openreadclose.o readchunk.o readclose.o str_len.o str_start.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o surf.o /usr/lib/randombytes.o -lnacl
crypto-secretbox-key : load crypto-secretbox-key.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o open_excl.o str_len.o strerr_die.o strerr_sys.o /usr/lib/randombytes.o
./load crypto-secretbox-key buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o open_excl.o str_len.o strerr_die.o strerr_sys.o /usr/lib/randombytes.o
crypto-secretbox-open : load crypto-secretbox-open.o alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_secretbox_open.o error.o error_str.o netstring_read.o open_read.o openreadclose.o readclose.o scan_ulong.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o
./load crypto-secretbox-open alloc.o alloc_re.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o buffer_write.o byte_copy.o byte_copyr.o crypto_str_secretbox_open.o error.o error_str.o netstring_read.o open_read.o openreadclose.o readclose.o scan_ulong.o str_len.o stralloc_copyb.o stralloc_copys.o stralloc_ready.o strerr_die.o strerr_sys.o -lnacl
nacl-key-decode : load nacl-key-decode.o base32_decode.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
./load nacl-key-decode base32_decode.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
nacl-key-encode : load nacl-key-encode.o base32_encode.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
./load nacl-key-encode base32_encode.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
zerocheck : load zerocheck.o buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
./load zerocheck buffer_2.o buffer_put.o buffer_write.o byte_copy.o error.o error_str.o str_len.o strerr_die.o strerr_sys.o
zeros : load zeros.o
./load zeros
alloc.o : compile alloc.c
./compile alloc.c
alloc_re.o : compile alloc_re.c
./compile alloc_re.c
appendchunk.o : compile appendchunk.c
./compile appendchunk.c
base32_decode.o : compile base32_decode.c
./compile base32_decode.c
base32_encode.o : compile base32_encode.c
./compile base32_encode.c
buffer_0.o : compile buffer_0.c
./compile buffer_0.c
buffer_1.o : compile buffer_1.c
./compile buffer_1.c
buffer_2.o : compile buffer_2.c
./compile buffer_2.c
buffer_get.o : compile buffer_get.c
./compile buffer_get.c
buffer_put.o : compile buffer_put.c
./compile buffer_put.c
buffer_puthex.o : compile buffer_puthex.c
./compile buffer_puthex.c
buffer_write.o : compile buffer_write.c
./compile buffer_write.c
byte_copy.o : compile byte_copy.c
./compile byte_copy.c
byte_copyr.o : compile byte_copyr.c
./compile byte_copyr.c
crypto-box.o : compile crypto-box.c
./compile crypto-box.c
crypto-box-keypair.o : compile crypto-box-keypair.c
./compile crypto-box-keypair.c
crypto-box-open.o : compile crypto-box-open.c
./compile crypto-box-open.c
crypto-hash-sha256.o : compile crypto-hash-sha256.c
./compile crypto-hash-sha256.c
crypto-hash-sha512.o : compile crypto-hash-sha512.c
./compile crypto-hash-sha512.c
crypto-secretbox.o : compile crypto-secretbox.c
./compile crypto-secretbox.c
crypto-secretbox-key.o : compile crypto-secretbox-key.c
./compile crypto-secretbox-key.c
crypto-secretbox-open.o : compile crypto-secretbox-open.c
./compile crypto-secretbox-open.c
crypto_str_box_afternm.o : compile crypto_str_box_afternm.c
./compile crypto_str_box_afternm.c
crypto_str_box_beforenm.o : compile crypto_str_box_beforenm.c
./compile crypto_str_box_beforenm.c
crypto_str_box_open_afternm.o : compile crypto_str_box_open_afternm.c
./compile crypto_str_box_open_afternm.c
crypto_str_hash_sha256.o : compile crypto_str_hash_sha256.c
./compile crypto_str_hash_sha256.c
crypto_str_hash_sha512.o : compile crypto_str_hash_sha512.c
./compile crypto_str_hash_sha512.c
crypto_str_secretbox.o : compile crypto_str_secretbox.c
./compile crypto_str_secretbox.c
crypto_str_secretbox_open.o : compile crypto_str_secretbox_open.c
./compile crypto_str_secretbox_open.c
env.o : compile env.c
./compile env.c
error.o : compile error.c
./compile error.c
error_str.o : compile error_str.c
./compile error_str.c
fmt_uint.o : compile fmt_uint.c
./compile fmt_uint.c
fmt_ulong.o : compile fmt_ulong.c
./compile fmt_ulong.c
nacl-key-decode.o : compile nacl-key-decode.c
./compile nacl-key-decode.c
nacl-key-encode.o : compile nacl-key-encode.c
./compile nacl-key-encode.c
netstring_read.o : compile netstring_read.c
./compile netstring_read.c
netstring_write.o : compile netstring_write.c
./compile netstring_write.c
open_excl.o : compile open_excl.c
./compile open_excl.c
open_read.o : compile open_read.c
./compile open_read.c
openreadclose.o : compile openreadclose.c
./compile openreadclose.c
readchunk.o : compile readchunk.c
./compile readchunk.c
readclose.o : compile readclose.c
./compile readclose.c
scan_ulong.o : compile scan_ulong.c
./compile scan_ulong.c
str_diff.o : compile str_diff.c
./compile str_diff.c
str_len.o : compile str_len.c
./compile str_len.c
str_start.o : compile str_start.c
./compile str_start.c
stralloc_catb.o : compile stralloc_catb.c
./compile stralloc_catb.c
stralloc_copyb.o : compile stralloc_copyb.c
./compile stralloc_copyb.c
stralloc_copys.o : compile stralloc_copys.c
./compile stralloc_copys.c
stralloc_ready.o : compile stralloc_ready.c
./compile stralloc_ready.c
strerr_die.o : compile strerr_die.c
./compile strerr_die.c
strerr_sys.o : compile strerr_sys.c
./compile strerr_sys.c
surf.o : compile surf.c
./compile surf.c
zerocheck.o : compile zerocheck.c
./compile zerocheck.c
zeros.o : compile zeros.c
./compile zeros.c
it : crypto-box crypto-box-keypair crypto-box-open crypto-hash-sha256 crypto-hash-sha512 crypto-secretbox crypto-secretbox-key crypto-secretbox-open nacl-key-decode nacl-key-encode zerocheck zeros
clean :
rm -f *.o crypto-box crypto-box-keypair crypto-box-open crypto-hash-sha256 crypto-hash-sha512 crypto-secretbox crypto-secretbox-key crypto-secretbox-open nacl-key-decode nacl-key-encode zerocheck zeros