-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.mk
143 lines (137 loc) · 4.25 KB
/
config.mk
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
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
# includes
INCS = -Iupgrade -Icrypto -Icrypto/libtom
# flags
CFLAGS = -Wall -Wextra -pedantic -std=c99 -O2 -g $(INCS)
# C compiler
CC = cc
# crypto
CRYPTO = crypto/md5.c crypto/ticrypto.c
# libtom
LIBTOM =\
crypto/libtom/bncore.c\
crypto/libtom/bn_error.c\
crypto/libtom/bn_fast_mp_invmod.c\
crypto/libtom/bn_fast_mp_montgomery_reduce.c\
crypto/libtom/bn_fast_s_mp_mul_digs.c\
crypto/libtom/bn_fast_s_mp_mul_high_digs.c\
crypto/libtom/bn_fast_s_mp_sqr.c\
crypto/libtom/bn_mp_2expt.c\
crypto/libtom/bn_mp_abs.c\
crypto/libtom/bn_mp_add.c\
crypto/libtom/bn_mp_add_d.c\
crypto/libtom/bn_mp_addmod.c\
crypto/libtom/bn_mp_and.c\
crypto/libtom/bn_mp_clamp.c\
crypto/libtom/bn_mp_clear.c\
crypto/libtom/bn_mp_clear_multi.c\
crypto/libtom/bn_mp_cmp.c\
crypto/libtom/bn_mp_cmp_d.c\
crypto/libtom/bn_mp_cmp_mag.c\
crypto/libtom/bn_mp_cnt_lsb.c\
crypto/libtom/bn_mp_copy.c\
crypto/libtom/bn_mp_count_bits.c\
crypto/libtom/bn_mp_div_2.c\
crypto/libtom/bn_mp_div_2d.c\
crypto/libtom/bn_mp_div_3.c\
crypto/libtom/bn_mp_div.c\
crypto/libtom/bn_mp_div_d.c\
crypto/libtom/bn_mp_dr_is_modulus.c\
crypto/libtom/bn_mp_dr_reduce.c\
crypto/libtom/bn_mp_dr_setup.c\
crypto/libtom/bn_mp_exch.c\
crypto/libtom/bn_mp_expt_d.c\
crypto/libtom/bn_mp_exptmod.c\
crypto/libtom/bn_mp_exptmod_fast.c\
crypto/libtom/bn_mp_exteuclid.c\
crypto/libtom/bn_mp_fread.c\
crypto/libtom/bn_mp_fwrite.c\
crypto/libtom/bn_mp_gcd.c\
crypto/libtom/bn_mp_get_int.c\
crypto/libtom/bn_mp_grow.c\
crypto/libtom/bn_mp_init.c\
crypto/libtom/bn_mp_init_copy.c\
crypto/libtom/bn_mp_init_multi.c\
crypto/libtom/bn_mp_init_set.c\
crypto/libtom/bn_mp_init_set_int.c\
crypto/libtom/bn_mp_init_size.c\
crypto/libtom/bn_mp_invmod.c\
crypto/libtom/bn_mp_invmod_slow.c\
crypto/libtom/bn_mp_is_square.c\
crypto/libtom/bn_mp_jacobi.c\
crypto/libtom/bn_mp_karatsuba_mul.c\
crypto/libtom/bn_mp_karatsuba_sqr.c\
crypto/libtom/bn_mp_lcm.c\
crypto/libtom/bn_mp_lshd.c\
crypto/libtom/bn_mp_mod_2d.c\
crypto/libtom/bn_mp_mod.c\
crypto/libtom/bn_mp_mod_d.c\
crypto/libtom/bn_mp_montgomery_calc_normalization.c\
crypto/libtom/bn_mp_montgomery_reduce.c\
crypto/libtom/bn_mp_montgomery_setup.c\
crypto/libtom/bn_mp_mul_2.c\
crypto/libtom/bn_mp_mul_2d.c\
crypto/libtom/bn_mp_mul.c\
crypto/libtom/bn_mp_mul_d.c\
crypto/libtom/bn_mp_mulmod.c\
crypto/libtom/bn_mp_neg.c\
crypto/libtom/bn_mp_n_root.c\
crypto/libtom/bn_mp_or.c\
crypto/libtom/bn_mp_prime_fermat.c\
crypto/libtom/bn_mp_prime_is_divisible.c\
crypto/libtom/bn_mp_prime_is_prime.c\
crypto/libtom/bn_mp_prime_miller_rabin.c\
crypto/libtom/bn_mp_prime_next_prime.c\
crypto/libtom/bn_mp_prime_rabin_miller_trials.c\
crypto/libtom/bn_mp_prime_random_ex.c\
crypto/libtom/bn_mp_radix_size.c\
crypto/libtom/bn_mp_radix_smap.c\
crypto/libtom/bn_mp_rand.c\
crypto/libtom/bn_mp_read_radix.c\
crypto/libtom/bn_mp_read_signed_bin.c\
crypto/libtom/bn_mp_read_unsigned_bin.c\
crypto/libtom/bn_mp_reduce_2k.c\
crypto/libtom/bn_mp_reduce_2k_l.c\
crypto/libtom/bn_mp_reduce_2k_setup.c\
crypto/libtom/bn_mp_reduce_2k_setup_l.c\
crypto/libtom/bn_mp_reduce.c\
crypto/libtom/bn_mp_reduce_is_2k.c\
crypto/libtom/bn_mp_reduce_is_2k_l.c\
crypto/libtom/bn_mp_reduce_setup.c\
crypto/libtom/bn_mp_rshd.c\
crypto/libtom/bn_mp_set.c\
crypto/libtom/bn_mp_set_int.c\
crypto/libtom/bn_mp_shrink.c\
crypto/libtom/bn_mp_signed_bin_size.c\
crypto/libtom/bn_mp_sqr.c\
crypto/libtom/bn_mp_sqrmod.c\
crypto/libtom/bn_mp_sqrt.c\
crypto/libtom/bn_mp_sub.c\
crypto/libtom/bn_mp_sub_d.c\
crypto/libtom/bn_mp_submod.c\
crypto/libtom/bn_mp_toom_mul.c\
crypto/libtom/bn_mp_toom_sqr.c\
crypto/libtom/bn_mp_toradix.c\
crypto/libtom/bn_mp_toradix_n.c\
crypto/libtom/bn_mp_to_signed_bin.c\
crypto/libtom/bn_mp_to_signed_bin_n.c\
crypto/libtom/bn_mp_to_unsigned_bin.c\
crypto/libtom/bn_mp_to_unsigned_bin_n.c\
crypto/libtom/bn_mp_unsigned_bin_size.c\
crypto/libtom/bn_mp_xor.c\
crypto/libtom/bn_mp_zero.c\
crypto/libtom/bn_prime_tab.c\
crypto/libtom/bn_reverse.c\
crypto/libtom/bn_s_mp_add.c\
crypto/libtom/bn_s_mp_exptmod.c\
crypto/libtom/bn_s_mp_mul_digs.c\
crypto/libtom/bn_s_mp_mul_high_digs.c\
crypto/libtom/bn_s_mp_sqr.c\
crypto/libtom/bn_s_mp_sub.c\
# upgrade
UPGRADE=\
upgrade/devices.c\
upgrade/intelhex.c\
upgrade/upgrade.c\