Make sure int SSL_COMP_add_compression_method() checks if a certain
[openssl.git] / crypto / des / Makefile.ssl
1 #
2 # SSLeay/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 INSTALL_PREFIX=
12 OPENSSLDIR=     /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE=           make -f Makefile.ssl
15 MAKEDEPPROG=    makedepend
16 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 MAKEFILE=       Makefile.ssl
18 AR=             ar r
19 RANLIB=         ranlib
20 DES_ENC=        des_enc.o fcrypt_b.o
21 # or use
22 #DES_ENC=       dx86-elf.o yx86-elf.o
23
24 CFLAGS= $(INCLUDES) $(CFLAG)
25
26 GENERAL=Makefile
27 TEST=destest.c
28 APPS=
29
30 LIB=$(TOP)/libcrypto.a
31 LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
32         ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
33         fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
34         qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
35         des_enc.c fcrypt_b.c \
36         xcbc_enc.c \
37         str2key.c  cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
38         read2pwd.c
39
40 LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
41         ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
42         enc_read.o enc_writ.o ofb64enc.o \
43         ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
44         ${DES_ENC} \
45         fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
46         ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
47
48 SRC= $(LIBSRC)
49
50 EXHEADER= des.h des_old.h
51 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
52
53 ALL=    $(GENERAL) $(SRC) $(HEADER)
54
55 top:
56         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
57
58 all:    lib
59
60 lib:    $(LIBOBJ)
61         $(AR) $(LIB) $(LIBOBJ)
62         $(RANLIB) $(LIB) || echo Never mind.
63         @touch lib
64
65 des: des.o cbc3_enc.o lib
66         $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
67
68 asm/des_enc-sparc.S:    asm/des_enc.m4
69         m4 -B 8192 asm/des_enc.m4 > asm/des_enc-sparc.S
70
71 # elf
72 asm/dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
73         (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > dx86-elf.s)
74
75 asm/yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
76         (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > yx86-elf.s)
77
78 # a.out
79 asm/dx86-out.o: asm/dx86unix.cpp
80         $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o
81
82 asm/yx86-out.o: asm/yx86unix.cpp
83         $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o
84
85 # bsdi
86 asm/dx86bsdi.o: asm/dx86unix.cpp
87         $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o
88
89 asm/yx86bsdi.o: asm/yx86unix.cpp
90         $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o
91
92 asm/dx86unix.cpp: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
93         (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp)
94
95 asm/yx86unix.cpp: asm/crypt586.pl ../perlasm/x86asm.pl
96         (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp)
97
98 files:
99         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
100
101 links:
102         @$(TOP)/util/point.sh Makefile.ssl Makefile
103         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
104         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
105         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
106
107 install: installs
108
109 installs:
110         @for i in $(EXHEADER) ; \
111         do  \
112         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
113         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
114         done;
115
116 tags:
117         ctags $(SRC)
118
119 tests:
120
121 lint:
122         lint -DLINT $(INCLUDES) $(SRC)>fluff
123
124 depend:
125         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
126
127 dclean:
128         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
129         mv -f Makefile.new $(MAKEFILE)
130
131 clean:
132         rm -f asm/dx86unix.cpp asm/yx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
133
134 # DO NOT DELETE THIS LINE -- make depend depends on it.
135
136 cbc_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
137 cbc_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
138 cbc_cksm.o: ../../include/openssl/opensslconf.h
139 cbc_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
140 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
141 cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
142 cbc_cksm.o: cbc_cksm.c des_locl.h
143 cbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
144 cbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
145 cbc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
146 cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
147 cbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
148 cbc_enc.o: ../../include/openssl/ui_compat.h cbc_enc.c des_locl.h ncbc_enc.c
149 cfb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
150 cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
151 cfb64ede.o: ../../include/openssl/opensslconf.h
152 cfb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
153 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
154 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
155 cfb64ede.o: cfb64ede.c des_locl.h
156 cfb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
157 cfb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
158 cfb64enc.o: ../../include/openssl/opensslconf.h
159 cfb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
160 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
161 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
162 cfb64enc.o: cfb64enc.c des_locl.h
163 cfb_enc.o: ../../e_os.h ../../include/openssl/crypto.h
164 cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
165 cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
166 cfb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
167 cfb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
168 cfb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
169 cfb_enc.o: cfb_enc.c des_locl.h
170 des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
171 des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
172 des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
173 des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
174 des_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
175 des_enc.o: ../../include/openssl/ui_compat.h des_enc.c des_locl.h ncbc_enc.c
176 des_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
177 des_old.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
178 des_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
179 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
180 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
181 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
182 des_old.o: ../../include/openssl/ui_compat.h des_old.c
183 des_old2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
184 des_old2.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
185 des_old2.o: ../../include/openssl/opensslconf.h
186 des_old2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
187 des_old2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
188 des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
189 des_old2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
190 des_old2.o: des_old2.c
191 ecb3_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
192 ecb3_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
193 ecb3_enc.o: ../../include/openssl/opensslconf.h
194 ecb3_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
195 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
196 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
197 ecb3_enc.o: des_locl.h ecb3_enc.c
198 ecb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
199 ecb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
200 ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
201 ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
202 ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
203 ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
204 ecb_enc.o: spr.h
205 ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
206 ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
207 ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
208 ede_cbcm_enc.o: ../../include/openssl/opensslv.h
209 ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
210 ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
211 ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
212 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
213 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
214 enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
215 enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
216 enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
217 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
218 enc_read.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
219 enc_read.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
220 enc_read.o: ../cryptlib.h des_locl.h enc_read.c
221 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
222 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
223 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
224 enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
225 enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
226 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
227 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
228 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
229 enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
230 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
231 fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
232 fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
233 fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
234 fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
235 fcrypt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
236 fcrypt.o: ../../include/openssl/ui_compat.h des_locl.h fcrypt.c
237 fcrypt_b.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
238 fcrypt_b.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
239 fcrypt_b.o: ../../include/openssl/opensslconf.h
240 fcrypt_b.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
241 fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
242 fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
243 fcrypt_b.o: des_locl.h fcrypt_b.c
244 ofb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
245 ofb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
246 ofb64ede.o: ../../include/openssl/opensslconf.h
247 ofb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
248 ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
249 ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
250 ofb64ede.o: des_locl.h ofb64ede.c
251 ofb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
252 ofb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
253 ofb64enc.o: ../../include/openssl/opensslconf.h
254 ofb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
255 ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
256 ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
257 ofb64enc.o: des_locl.h ofb64enc.c
258 ofb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
259 ofb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
260 ofb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
261 ofb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
262 ofb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
263 ofb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ofb_enc.c
264 pcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
265 pcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
266 pcbc_enc.o: ../../include/openssl/opensslconf.h
267 pcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
268 pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
269 pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
270 pcbc_enc.o: des_locl.h pcbc_enc.c
271 qud_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
272 qud_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
273 qud_cksm.o: ../../include/openssl/opensslconf.h
274 qud_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
275 qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
276 qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
277 qud_cksm.o: des_locl.h qud_cksm.c
278 rand_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
279 rand_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
280 rand_key.o: ../../include/openssl/opensslconf.h
281 rand_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
282 rand_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
283 rand_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
284 rand_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
285 rand_key.o: rand_key.c
286 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
287 read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
288 read2pwd.o: ../../include/openssl/opensslconf.h
289 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
290 read2pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291 read2pwd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
292 read2pwd.o: read2pwd.c
293 rpc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
294 rpc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
295 rpc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
296 rpc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
297 rpc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
298 rpc_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h rpc_des.h
299 rpc_enc.o: rpc_enc.c
300 set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
301 set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
302 set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
303 set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
304 set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
305 set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c
306 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
307 str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
308 str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
309 str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
310 str2key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
311 str2key.o: ../../include/openssl/ui_compat.h des_locl.h str2key.c
312 xcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
313 xcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
314 xcbc_enc.o: ../../include/openssl/opensslconf.h
315 xcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
316 xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
317 xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
318 xcbc_enc.o: des_locl.h xcbc_enc.c