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