move ECC ASN1 that is not specific to ECDSA into crypto/ec/,
[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
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
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) $(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_check.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
86 ec_check.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
87 ec_check.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
88 ec_check.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
89 ec_check.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
90 ec_check.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
91 ec_check.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
92 ec_check.o: ../../include/openssl/symhacks.h ec_check.c ec_lcl.h
93 ec_curve.o: ../../include/openssl/asn1.h ../../include/openssl/asn1t.h
94 ec_curve.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
95 ec_curve.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
96 ec_curve.o: ../../include/openssl/ec.h ../../include/openssl/err.h
97 ec_curve.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
98 ec_curve.o: ../../include/openssl/opensslconf.h
99 ec_curve.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
100 ec_curve.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
101 ec_curve.o: ../../include/openssl/symhacks.h ec_curve.c ec_lcl.h
102 ec_cvt.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
103 ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
104 ec_cvt.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
105 ec_cvt.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
106 ec_cvt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
107 ec_cvt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
108 ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h
109 ec_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
110 ec_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
111 ec_err.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
112 ec_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
113 ec_err.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
114 ec_err.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
115 ec_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116 ec_err.o: ec_err.c
117 ec_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
118 ec_lib.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
119 ec_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
120 ec_lib.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
121 ec_lib.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
122 ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
123 ec_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
124 ec_lib.o: ../../include/openssl/symhacks.h ec_lcl.h ec_lib.c
125 ec_mult.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
126 ec_mult.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
127 ec_mult.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
128 ec_mult.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
129 ec_mult.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
130 ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
131 ec_mult.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
132 ec_mult.o: ../../include/openssl/symhacks.h ec_lcl.h ec_mult.c
133 ec_print.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
134 ec_print.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
135 ec_print.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
136 ec_print.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
137 ec_print.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
138 ec_print.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
139 ec_print.o: ../../include/openssl/symhacks.h ec_lcl.h ec_print.c
140 ecp_mont.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
141 ecp_mont.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
142 ecp_mont.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
143 ecp_mont.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
144 ecp_mont.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
145 ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
146 ecp_mont.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
147 ecp_mont.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_mont.c
148 ecp_nist.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
149 ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
150 ecp_nist.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
151 ecp_nist.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
152 ecp_nist.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
153 ecp_nist.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
154 ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c
155 ecp_recp.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
156 ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
157 ecp_recp.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
158 ecp_recp.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
159 ecp_recp.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
160 ecp_recp.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
161 ecp_recp.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_recp.c
162 ecp_smpl.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
163 ecp_smpl.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h
164 ecp_smpl.o: ../../include/openssl/e_os2.h ../../include/openssl/ec.h
165 ecp_smpl.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
166 ecp_smpl.o: ../../include/openssl/obj_mac.h ../../include/openssl/opensslconf.h
167 ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
168 ecp_smpl.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
169 ecp_smpl.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_smpl.c