OPENSSL_NO_xxx cleanup: DEC-CBCM removed
[openssl.git] / crypto / des / Makefile
1 #
2 # OpenSSL/crypto/des/Makefile
3 #
4
5 DIR=    des
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=-I$(TOP) -I../../include
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13 RANLIB=         ranlib
14 DES_ENC=        des_enc.o fcrypt_b.o
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21 TEST=destest.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
26         ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
27         fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
28         qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
29         des_enc.c fcrypt_b.c \
30         xcbc_enc.c \
31         str2key.c  cfb64ede.c ofb64ede.c des_old.c des_old2.c \
32         read2pwd.c
33
34 LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
35         ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
36         enc_read.o enc_writ.o ofb64enc.o \
37         ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
38         ${DES_ENC} \
39         fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
40         des_old.o des_old2.o read2pwd.o
41
42 SRC= $(LIBSRC)
43
44 EXHEADER= des.h des_old.h
45 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
46
47 ALL=    $(GENERAL) $(SRC) $(HEADER)
48
49 top:
50         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
51
52 all:    lib
53
54 lib:    $(LIBOBJ)
55         $(AR) $(LIB) $(LIBOBJ)
56         $(RANLIB) $(LIB) || echo Never mind.
57         @touch lib
58
59 des_enc-sparc.S:        asm/des_enc.m4
60         m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
61 dest4-sparcv9.s:        asm/dest4-sparcv9.pl
62         $(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@
63
64 des-586.s:      asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
65         $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
66 crypt586.s:     asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
67         $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
68
69 files:
70         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
71
72 links:
73         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
74         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
75         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
76
77 # We need to use force because 'install' matches 'INSTALL' on case
78 # insensitive systems
79 FRC.install:
80 install: FRC.install
81         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
82         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
83         do  \
84         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
85         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
86         done;
87
88 tags:
89         ctags $(SRC)
90
91 tests:
92
93 lint:
94         lint -DLINT $(INCLUDES) $(SRC)>fluff
95
96 depend:
97         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
98         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
99
100 dclean:
101         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
102         mv -f Makefile.new $(MAKEFILE)
103
104 clean:
105         rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
106
107 # DO NOT DELETE THIS LINE -- make depend depends on it.
108
109 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
110 cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
111 cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
112 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
113 cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
114 cbc_cksm.o: cbc_cksm.c des_locl.h
115 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
116 cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
117 cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
118 cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
119 cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
120 cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
121 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
122 cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
123 cfb64ede.o: ../../include/openssl/opensslconf.h
124 cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
125 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
126 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
127 cfb64ede.o: cfb64ede.c des_locl.h
128 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
129 cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
130 cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
131 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
132 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
133 cfb64enc.o: cfb64enc.c des_locl.h
134 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
135 cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
136 cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
137 cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
138 cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
139 cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
140 des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
141 des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
142 des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
143 des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
144 des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
145 des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
146 des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
147 des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
148 des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
149 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
150 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
151 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
152 des_old.o: ../../include/openssl/ui_compat.h des_old.c
153 des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
154 des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
155 des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
156 des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
157 des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
158 des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
159 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
160 ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
161 ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
162 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
163 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
164 ecb3_enc.o: des_locl.h ecb3_enc.c
165 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
166 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
167 ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
168 ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
169 ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
170 ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
171 ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
172 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
173 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
174 enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
175 enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
176 enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
177 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
178 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
179 enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
180 enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
181 enc_read.o: enc_read.c
182 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
183 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
184 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
185 enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
186 enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
187 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
188 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
189 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
190 enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
191 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
192 fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
193 fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
194 fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
195 fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
196 fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
197 fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
198 fcrypt.o: des_locl.h fcrypt.c
199 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
200 fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
201 fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
202 fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
203 fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
204 fcrypt_b.o: des_locl.h fcrypt_b.c
205 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
206 ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
207 ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
208 ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
209 ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
210 ofb64ede.o: des_locl.h ofb64ede.c
211 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
212 ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
213 ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
214 ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
215 ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
216 ofb64enc.o: des_locl.h ofb64enc.c
217 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
218 ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
219 ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
220 ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
221 ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
222 ofb_enc.o: des_locl.h ofb_enc.c
223 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
224 pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
225 pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
226 pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
227 pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
228 pcbc_enc.o: des_locl.h pcbc_enc.c
229 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
230 qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
231 qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
232 qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
233 qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
234 qud_cksm.o: des_locl.h qud_cksm.c
235 rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
236 rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
237 rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
238 rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
239 rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
240 rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
241 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
242 read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
243 read2pwd.o: ../../include/openssl/opensslconf.h
244 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
245 read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
246 read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
247 read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
248 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
249 rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
250 rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
251 rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
252 rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
253 rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
254 set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
255 set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
256 set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
257 set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
258 set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
259 set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
260 set_key.o: des_locl.h set_key.c
261 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
262 str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
263 str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
264 str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
265 str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
266 str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
267 str2key.o: des_locl.h str2key.c
268 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
269 xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
270 xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
271 xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
272 xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
273 xcbc_enc.o: des_locl.h xcbc_enc.c