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