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