-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile.bat
191 lines (135 loc) · 7.15 KB
/
makefile.bat
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
kyk_tx0_objs = kyk_tx0.o varint.o kyk_tx.o beej_pack.o kyk_sha.o kyk_utils.o
ec_test_objs = kyk_ecdsa_test.o kyk_ecdsa.o kyk_utils.o
addr_test_objs = kyk_address_test.o kyk_ecdsa.o kyk_utils.o kyk_sha.o kyk_base58.o
make_addr_objs = kyk_make_address_test.o kyk_ecdsa.o kyk_utils.o kyk_sha.o kyk_base58.o kyk_address.o
pem_to_addr_objs = pem_to_address.o kyk_ecdsa.o kyk_utils.o kyk_sha.o kyk_base58.o kyk_address.o
sc_pubkey_test_objs = kyk_sc_pubkey_test.o kyk_ecdsa.o kyk_utils.o kyk_sha.o kyk_base58.o kyk_script.o beej_pack.o
exe_p2pkh_sc_test_objs = kyk_exe_p2pkh_sc_test.o kyk_utils.o kyk_script.o kyk_base58.o kyk_ecdsa.o kyk_sha.o beej_pack.o kyk_ser.o varint.o
print_coinbase_objs = print_coinbase.o kyk_utils.o
sig_parse_test_objs = sig_parse_test.o kyk_utils.o
kyk_ser_test_objs = kyk_ser_test.o kyk_ser.o kyk_utils.o beej_pack.o varint.o
kyk_gens_tx_objs = kyk_gens_tx.o varint.o kyk_tx.o beej_pack.o kyk_sha.o kyk_utils.o kyk_address.o kyk_base58.o kyk_script.o kyk_ecdsa.o
parse_block_objs = parse_block.o varint.o kyk_tx.o beej_pack.o kyk_utils.o
block_hash_test_objs = block_hash_test.o varint.o kyk_block.o kyk_utils.o kyk_sha.o beej_pack.o
block_nonce_test_objs = block_nonce_test.o varint.o kyk_block.o kyk_utils.o kyk_sha.o beej_pack.o kyk_difficulty.o
bits_to_target_objs = bits_to_target.o
kyk_mkl_tree2_test_objs = kyk_mkl_tree2_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_mkl_tree1_test_objs = kyk_mkl_tree1_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_mkl_tree6_test_objs = kyk_mkl_tree6_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_mkl_tree15_test_objs = kyk_mkl_tree15_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_mkl_tree32_test_objs = kyk_mkl_tree32_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_mkl_tree777_test_objs = kyk_mkl_tree777_test.o kyk_sha.o kyk_utils.o kyk_mkl_tree.o
kyk_gens_block_objs = kyk_gens_block.o varint.o kyk_tx.o beej_pack.o kyk_sha.o kyk_utils.o kyk_address.o kyk_base58.o kyk_script.o kyk_ecdsa.o kyk_mkl_tree.o kyk_ser.o kyk_block.o kyk_difficulty.o kyk_hash_nonce.o
i_paths = /usr/local/opt/openssl/include
l_paths = /usr/local/opt/openssl/lib
CC = clang
kyk_tx0: $(kyk_tx0_objs)
$(CC) -o kyk_tx0.out $(kyk_tx0_objs) -L$(l_paths) -lcrypto
kyk_ecdsa_test: $(ec_test_objs)
$(CC) -Wall -o kyk_ecdsa_test.out $(ec_test_objs) -L$(l_paths) -lcrypto
kyk_address_test: $(addr_test_objs)
$(CC) -Wall -o kyk_address_test.out $(addr_test_objs) -L$(l_paths) -lcrypto
kyk_make_address_test: $(make_addr_objs)
$(CC) -Wall -o kyk_make_address_test.out $(make_addr_objs) -L$(l_paths) -lcrypto
pem_to_address: $(pem_to_addr_objs)
$(CC) -Wall -o pem_to_address.out $(pem_to_addr_objs) -L$(l_paths) -lcrypto
kyk_sc_pubkey_test: $(sc_pubkey_test_objs)
$(CC) -Wall -o kyk_sc_pubkey_test.out $(sc_pubkey_test_objs) -L$(l_paths) -lcrypto
kyk_exe_p2pkh_sc_test: $(exe_p2pkh_sc_test_objs)
$(CC) -Wall -o kyk_exe_p2pkh_sc_test.out $(exe_p2pkh_sc_test_objs) -L$(l_paths) -lcrypto
sig_parse_test: $(sig_parse_test_objs)
$(CC) -Wall -o sig_parse_test.out $(sig_parse_test_objs) -L$(l_paths) -lcrypto
kyk_ser_test: $(kyk_ser_test_objs)
$(CC) -Wall -o kyk_ser_test.out $(kyk_ser_test_objs) -L$(l_paths) -lcrypto
print_coinbase: $(print_coinbase_objs)
$(CC) -o print_coinbase.out $(print_coinbase_objs)
kyk_gens_tx: $(kyk_gens_tx_objs)
$(CC) -o kyk_gens_tx.out $(kyk_gens_tx_objs) -L$(l_paths) -lcrypto
kyk_gens_block: $(kyk_gens_block_objs)
$(CC) -o kyk_gens_block.out $(kyk_gens_block_objs) -L$(l_paths) -lcrypto -lgmp
parse_block: $(parse_block_objs)
$(CC) -o parse_block.out $(parse_block_objs)
block_hash_test: $(block_hash_test_objs)
$(CC) -o block_hash_test.out $(block_hash_test_objs) -L$(l_paths) -lcrypto
block_nonce_test: $(block_nonce_test_objs)
$(CC) -o block_nonce_test.out $(block_nonce_test_objs) -L$(l_paths) -lcrypto -lgmp
bits_to_target: $(bits_to_target_objs)
$(CC) -o bits_to_target.out $(bits_to_target_objs) -lgmp
kyk_mkl_tree2_test: $(kyk_mkl_tree2_test_objs)
$(CC) -o kyk_mkl_tree2_test.out $(kyk_mkl_tree2_test_objs) -L$(l_paths) -lcrypto
kyk_mkl_tree1_test: $(kyk_mkl_tree1_test_objs)
$(CC) -o kyk_mkl_tree1_test.out $(kyk_mkl_tree1_test_objs) -L$(l_paths) -lcrypto
kyk_mkl_tree6_test: $(kyk_mkl_tree6_test_objs)
$(CC) -o kyk_mkl_tree6_test.out $(kyk_mkl_tree6_test_objs) -L$(l_paths) -lcrypto
kyk_mkl_tree15_test: $(kyk_mkl_tree15_test_objs)
$(CC) -o kyk_mkl_tree15_test.out $(kyk_mkl_tree15_test_objs) -L$(l_paths) -lcrypto
kyk_mkl_tree32_test: $(kyk_mkl_tree32_test_objs)
$(CC) -o kyk_mkl_tree32_test.out $(kyk_mkl_tree32_test_objs) -L$(l_paths) -lcrypto
kyk_mkl_tree777_test: $(kyk_mkl_tree777_test_objs)
$(CC) -o kyk_mkl_tree777_test.out $(kyk_mkl_tree777_test_objs) -L$(l_paths) -lcrypto
kyk_difficulty.o: kyk_difficulty.h
kyk_mkl_tree2_test.o: kyk_mkl_tree2_test.c
$(CC) -c kyk_mkl_tree2_test.c -I$(i_paths)
kyk_mkl_tree1_test.o: kyk_mkl_tree1_test.c
$(CC) -c kyk_mkl_tree1_test.c -I$(i_paths)
kyk_mkl_tree6_test.o: kyk_mkl_tree6_test.c
$(CC) -c kyk_mkl_tree6_test.c -I$(i_paths)
kyk_mkl_tree15_test.o: kyk_mkl_tree15_test.c
$(CC) -c kyk_mkl_tree15_test.c -I$(i_paths)
kyk_mkl_tree32_test.o: kyk_mkl_tree32_test.c
$(CC) -c kyk_mkl_tree32_test.c -I$(i_paths)
kyk_mkl_tree777_test.o: kyk_mkl_tree777_test.c
$(CC) -c kyk_mkl_tree777_test.c -I$(i_paths)
kyk_mkl_tree.o: kyk_mkl_tree.c kyk_mkl_tree.h
$(CC) -c kyk_mkl_tree.c -I$(i_paths)
kyk_tx0.o: kyk_tx.h kyk_tx0.c
$(CC) -c kyk_tx0.c -I$(i_paths)
kyk_ecdsa_test.o: kyk_ecdsa_test.c kyk_ecdsa.h
$(CC) -c kyk_ecdsa_test.c -I$(i_paths)
kyk_address_test.o: kyk_address_test.c kyk_ecdsa.h kyk_utils.h
$(CC) -c kyk_address_test.c -I$(i_paths)
kyk_make_address_test.o: kyk_make_address_test.c
$(CC) -c kyk_make_address_test.c -I$(i_paths)
pem_to_address.o: pem_to_address.c
$(CC) -c pem_to_address.c -I$(i_paths)
kyk_sc_pubkey_test.o: kyk_sc_pubkey_test.c kyk_script.h
$(CC) -c kyk_sc_pubkey_test.c -I$(i_paths)
kyk_exe_p2pkh_sc_test.o: kyk_exe_p2pkh_sc_test.c kyk_script.h kyk_utils.h
$(CC) -c kyk_exe_p2pkh_sc_test.c -I$(i_paths)
sig_parse_test.o: sig_parse_test.c kyk_ecdsa.h kyk_utils.h
$(CC) -c sig_parse_test.c -I$(i_paths)
kyk_ser_test.o: kyk_ser_test.c beej_pack.h kyk_utils.h
$(CC) -c kyk_ser_test.c -I$(i_paths)
kyk_gens_tx.o: kyk_gens_tx.c
$(CC) -c kyk_gens_tx.c -I$(i_paths)
kyk_gens_block.o: kyk_gens_block.c
$(CC) -c kyk_gens_block.c -I$(i_paths)
parse_block.o: parse_block.c
$(CC) -c parse_block.c
block_hash_test.o: block_hash_test.c
$(CC) -c block_hash_test.c -I$(i_paths)
block_nonce_test.o: block_nonce_test.c
$(CC) -c block_nonce_test.c -I$(i_paths)
bits_to_target.o: bits_to_target.c
print_coinbase.o: kyk_utils.h
varint.o: varint.h
beej_pack.o: beej_pack.h
kyk_tx.o: kyk_tx.h varint.h
kyk_utils.o: kyk_utils.h
kyk_sha.o: kyk_sha.c kyk_sha.h
$(CC) -c kyk_sha.c -I$(i_paths)
kyk_ecdsa.o: kyk_ecdsa.c kyk_ecdsa.h kyk_sha.h kyk_sha.c
$(CC) -c kyk_ecdsa.c -I$(i_paths)
kyk_base58.o: kyk_base58.c kyk_base58.h
$(CC) -c kyk_base58.c -I$(i_paths)
kyk_address.o: kyk_address.c kyk_address.h
$(CC) -c kyk_address.c -I$(i_paths)
kyk_script.o: kyk_script.c kyk_script.h
$(CC) -c kyk_script.c -I$(i_paths)
kyk_ser.o: kyk_ser.c kyk_ser.h
$(CC) -c kyk_ser.c -I$(i_paths)
kyk_block.o: kyk_block.h
kyk_hash_nonce.o: kyk_hash_nonce.c
$(CC) -c kyk_hash_nonce.c -I$(i_paths)
clean:
-rm -f *.out *.o