ec17b3f36a44add0faf8b1abdafdea42553ada2e
[openssl.git] / crypto / ec / Makefile
1 #
2 # crypto/ec/Makefile
3 #
4
5 DIR=    ec
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../include -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14 ASFLAGS= $(INCLUDES) $(ASFLAG)
15 AFLAGS= $(ASFLAGS)
16
17 GENERAL=Makefile
18
19 LIB=$(TOP)/libcrypto.a
20 LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c\
21         ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c\
22         ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c \
23         ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c \
24         ecp_oct.c ec2_oct.c ec_oct.c
25
26 LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_nist.o ec_cvt.o ec_mult.o\
27         ec_err.o ec_curve.o ec_check.o ec_print.o ec_asn1.o ec_key.o\
28         ec2_smpl.o ec2_mult.o ec_ameth.o ec_pmeth.o eck_prn.o \
29         ecp_nistp224.o ecp_nistp256.o ecp_nistp521.o ecp_nistputil.o \
30         ecp_oct.o ec2_oct.o ec_oct.o $(EC_ASM)
31
32 SRC= $(LIBSRC)
33
34 HEADER= ec_lcl.h
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 all:    lib
42
43 lib:    $(LIBOBJ)
44         $(AR) $(LIB) $(LIBOBJ)
45         $(RANLIB) $(LIB) || echo Never mind.
46         @touch lib
47
48 ecp_nistz256-x86.s:     asm/ecp_nistz256-x86.pl
49         $(PERL) asm/ecp_nistz256-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
50
51 ecp_nistz256-x86_64.s: asm/ecp_nistz256-x86_64.pl
52         $(PERL) asm/ecp_nistz256-x86_64.pl $(PERLASM_SCHEME) > $@
53
54 ecp_nistz256-avx2.s:   asm/ecp_nistz256-avx2.pl
55         $(PERL) asm/ecp_nistz256-avx2.pl $(PERLASM_SCHEME) > $@
56
57 ecp_nistz256-sparcv9.S: asm/ecp_nistz256-sparcv9.pl
58         $(PERL) asm/ecp_nistz256-sparcv9.pl $(CFLAGS) > $@
59
60 ecp_nistz256-%.S:       asm/ecp_nistz256-%.pl;  $(PERL) $< $(PERLASM_SCHEME) $@
61 ecp_nistz256-armv4.o:   ecp_nistz256-armv4.S
62 ecp_nistz256-armv8.o:   ecp_nistz256-armv8.S
63
64 files:
65         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
66
67 tags:
68         ctags $(SRC)
69
70 tests:
71
72 lint:
73         lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75 depend:
76         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
77         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
78
79 dclean:
80         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
81         mv -f Makefile.new $(MAKEFILE)
82
83 clean:
84         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85
86 # DO NOT DELETE THIS LINE -- make depend depends on it.
87
88 ec2_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
89 ec2_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
90 ec2_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
91 ec2_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
92 ec2_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
93 ec2_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
94 ec2_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
95 ec2_mult.o: ../../include/openssl/symhacks.h ../include/internal/bn_int.h
96 ec2_mult.o: ec2_mult.c ec_lcl.h
97 ec2_oct.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
98 ec2_oct.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
99 ec2_oct.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
100 ec2_oct.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
101 ec2_oct.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
102 ec2_oct.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
103 ec2_oct.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
104 ec2_oct.o: ../../include/openssl/symhacks.h ec2_oct.c ec_lcl.h
105 ec2_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
106 ec2_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
107 ec2_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
108 ec2_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
109 ec2_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
110 ec2_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
111 ec2_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
112 ec2_smpl.o: ../../include/openssl/symhacks.h ../include/internal/bn_int.h
113 ec2_smpl.o: ec2_smpl.c ec_lcl.h
114 ec_ameth.o: ../../e_os.h ../../include/openssl/asn1.h
115 ec_ameth.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
116 ec_ameth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
117 ec_ameth.o: ../../include/openssl/cms.h ../../include/openssl/crypto.h
118 ec_ameth.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
119 ec_ameth.o: ../../include/openssl/ecdh.h ../../include/openssl/ecdsa.h
120 ec_ameth.o: ../../include/openssl/err.h ../../include/openssl/evp.h
121 ec_ameth.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
122 ec_ameth.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
123 ec_ameth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
124 ec_ameth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
125 ec_ameth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
126 ec_ameth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
127 ec_ameth.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
128 ec_ameth.o: ../include/internal/asn1_int.h ec_ameth.c
129 ec_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
130 ec_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
131 ec_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
132 ec_asn1.o: ../../include/openssl/ec.h ../../include/openssl/err.h
133 ec_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
134 ec_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
135 ec_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
136 ec_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
137 ec_asn1.o: ../../include/openssl/symhacks.h ec_asn1.c ec_lcl.h
138 ec_check.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
139 ec_check.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
140 ec_check.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
141 ec_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
142 ec_check.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
143 ec_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
144 ec_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
145 ec_check.o: ../../include/openssl/symhacks.h ec_check.c ec_lcl.h
146 ec_curve.o: ../../e_os.h ../../include/openssl/asn1.h
147 ec_curve.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
148 ec_curve.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
149 ec_curve.o: ../../include/openssl/ec.h ../../include/openssl/err.h
150 ec_curve.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
151 ec_curve.o: ../../include/openssl/opensslconf.h
152 ec_curve.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
153 ec_curve.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
154 ec_curve.o: ../../include/openssl/symhacks.h ec_curve.c ec_lcl.h
155 ec_cvt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
156 ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
157 ec_cvt.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
158 ec_cvt.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
159 ec_cvt.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
160 ec_cvt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
161 ec_cvt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
162 ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h
163 ec_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
164 ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
165 ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h
166 ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
167 ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
168 ec_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
169 ec_err.o: ../../include/openssl/symhacks.h ec_err.c
170 ec_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
171 ec_key.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
172 ec_key.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
173 ec_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
174 ec_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
175 ec_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
176 ec_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
177 ec_key.o: ../../include/openssl/symhacks.h ec_key.c ec_lcl.h
178 ec_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
179 ec_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
180 ec_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
181 ec_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
182 ec_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
183 ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
184 ec_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
185 ec_lib.o: ../../include/openssl/symhacks.h ec_lcl.h ec_lib.c
186 ec_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
187 ec_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
188 ec_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
189 ec_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
190 ec_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
191 ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
192 ec_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
193 ec_mult.o: ../../include/openssl/symhacks.h ../include/internal/bn_int.h
194 ec_mult.o: ec_lcl.h ec_mult.c
195 ec_oct.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
196 ec_oct.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
197 ec_oct.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
198 ec_oct.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
199 ec_oct.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
200 ec_oct.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
201 ec_oct.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
202 ec_oct.o: ../../include/openssl/symhacks.h ec_lcl.h ec_oct.c
203 ec_pmeth.o: ../../e_os.h ../../include/openssl/asn1.h
204 ec_pmeth.o: ../../include/openssl/asn1t.h ../../include/openssl/bio.h
205 ec_pmeth.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
206 ec_pmeth.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
207 ec_pmeth.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
208 ec_pmeth.o: ../../include/openssl/ecdsa.h ../../include/openssl/err.h
209 ec_pmeth.o: ../../include/openssl/evp.h ../../include/openssl/lhash.h
210 ec_pmeth.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h
211 ec_pmeth.o: ../../include/openssl/opensslconf.h
212 ec_pmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
213 ec_pmeth.o: ../../include/openssl/pkcs7.h ../../include/openssl/safestack.h
214 ec_pmeth.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
215 ec_pmeth.o: ../../include/openssl/symhacks.h ../../include/openssl/x509.h
216 ec_pmeth.o: ../../include/openssl/x509_vfy.h ../cryptlib.h
217 ec_pmeth.o: ../include/internal/evp_int.h ec_lcl.h ec_pmeth.c
218 ec_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
219 ec_print.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
220 ec_print.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
221 ec_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
222 ec_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
223 ec_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
224 ec_print.o: ../../include/openssl/symhacks.h ec_lcl.h ec_print.c
225 eck_prn.o: ../../e_os.h ../../include/openssl/asn1.h
226 eck_prn.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
227 eck_prn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
228 eck_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
229 eck_prn.o: ../../include/openssl/err.h ../../include/openssl/evp.h
230 eck_prn.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
231 eck_prn.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
232 eck_prn.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
233 eck_prn.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
234 eck_prn.o: ../../include/openssl/symhacks.h ../cryptlib.h eck_prn.c
235 ecp_mont.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
236 ecp_mont.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
237 ecp_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
238 ecp_mont.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
239 ecp_mont.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
240 ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
241 ecp_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
242 ecp_mont.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_mont.c
243 ecp_nist.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
244 ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
245 ecp_nist.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
246 ecp_nist.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
247 ecp_nist.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
248 ecp_nist.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
249 ecp_nist.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
250 ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c
251 ecp_nistp224.o: ../../include/openssl/opensslconf.h ecp_nistp224.c
252 ecp_nistp256.o: ../../include/openssl/opensslconf.h ecp_nistp256.c
253 ecp_nistp521.o: ../../include/openssl/opensslconf.h ecp_nistp521.c
254 ecp_nistputil.o: ../../include/openssl/opensslconf.h ecp_nistputil.c
255 ecp_oct.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
256 ecp_oct.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
257 ecp_oct.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
258 ecp_oct.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
259 ecp_oct.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
260 ecp_oct.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
261 ecp_oct.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
262 ecp_oct.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_oct.c
263 ecp_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
264 ecp_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
265 ecp_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
266 ecp_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
267 ecp_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
268 ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
269 ecp_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
270 ecp_smpl.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_smpl.c