dae4f88b32f6b729c5800ea815e5751874a7bf55
[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
9 CFLAG=-g
10 MAKEDEPPROG=    makedepend
11 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
12 MAKEFILE=       Makefile
13 AR=             ar r
14
15 CFLAGS= $(INCLUDES) $(CFLAG)
16
17 GENERAL=Makefile
18 TEST=ectest.c
19 APPS=
20
21 LIB=$(TOP)/libcrypto.a
22 LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c\
23         ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c\
24         ec2_smpl.c ec2_smpt.c ec2_mult.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
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= ec.h
33 HEADER= ec_lcl.h $(EXHEADER)
34
35 ALL=    $(GENERAL) $(SRC) $(HEADER)
36
37 top:
38         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         $(RANLIB) $(LIB) || echo Never mind.
45         @touch lib
46
47 files:
48         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
49
50 links:
51         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
54
55 install:
56         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
57         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
58         do  \
59         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
60         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
61         done;
62
63 tags:
64         ctags $(SRC)
65
66 tests:
67
68 lint:
69         lint -DLINT $(INCLUDES) $(SRC)>fluff
70
71 depend:
72         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
73
74 dclean:
75         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76         mv -f Makefile.new $(MAKEFILE)
77
78 clean:
79         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
80
81 # DO NOT DELETE THIS LINE -- make depend depends on it.
82
83 ec2_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
84 ec2_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
85 ec2_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
86 ec2_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
87 ec2_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
88 ec2_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
89 ec2_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
90 ec2_mult.o: ../../include/openssl/symhacks.h ec2_mult.c ec_lcl.h
91 ec2_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
92 ec2_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
93 ec2_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
94 ec2_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
95 ec2_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
96 ec2_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
97 ec2_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
98 ec2_smpl.o: ../../include/openssl/symhacks.h ec2_smpl.c ec2_smpt.c ec_lcl.h
99 ec2_smpt.o: ec2_smpt.c
100 ec_asn1.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
101 ec_asn1.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
102 ec_asn1.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
103 ec_asn1.o: ../../include/openssl/ec.h ../../include/openssl/err.h
104 ec_asn1.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
105 ec_asn1.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
106 ec_asn1.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107 ec_asn1.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108 ec_asn1.o: ../../include/openssl/symhacks.h ec_asn1.c ec_lcl.h
109 ec_check.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
110 ec_check.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
111 ec_check.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
112 ec_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
113 ec_check.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
114 ec_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
115 ec_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
116 ec_check.o: ../../include/openssl/symhacks.h ec_check.c ec_lcl.h
117 ec_curve.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
118 ec_curve.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
119 ec_curve.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
120 ec_curve.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
121 ec_curve.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
122 ec_curve.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
123 ec_curve.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
124 ec_curve.o: ../../include/openssl/symhacks.h ec_curve.c ec_lcl.h
125 ec_cvt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
126 ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
127 ec_cvt.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
128 ec_cvt.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
129 ec_cvt.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
130 ec_cvt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
131 ec_cvt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
132 ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h
133 ec_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
134 ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
135 ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h
136 ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
137 ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
138 ec_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
139 ec_err.o: ../../include/openssl/symhacks.h ec_err.c
140 ec_key.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
141 ec_key.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
142 ec_key.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
143 ec_key.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
144 ec_key.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
145 ec_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
146 ec_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
147 ec_key.o: ../../include/openssl/symhacks.h ec_key.c ec_lcl.h
148 ec_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
149 ec_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
150 ec_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
151 ec_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
152 ec_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
153 ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
154 ec_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
155 ec_lib.o: ../../include/openssl/symhacks.h ec_lcl.h ec_lib.c
156 ec_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
157 ec_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
158 ec_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
159 ec_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
160 ec_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
161 ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
162 ec_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
163 ec_mult.o: ../../include/openssl/symhacks.h ec_lcl.h ec_mult.c
164 ec_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
165 ec_print.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
166 ec_print.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
167 ec_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
168 ec_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
169 ec_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
170 ec_print.o: ../../include/openssl/symhacks.h ec_lcl.h ec_print.c
171 ecp_mont.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
172 ecp_mont.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
173 ecp_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
174 ecp_mont.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
175 ecp_mont.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
176 ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
177 ecp_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
178 ecp_mont.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_mont.c
179 ecp_nist.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
180 ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
181 ecp_nist.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
182 ecp_nist.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
183 ecp_nist.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
184 ecp_nist.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
185 ecp_nist.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
186 ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c
187 ecp_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
188 ecp_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
189 ecp_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
190 ecp_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
191 ecp_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
192 ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
193 ecp_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
194 ecp_smpl.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_smpl.c