74a556b01dfcbd818da3f6b674ed7cb482e052f4
[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 # 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 dx86-macosx.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
83         (cd asm; $(PERL) des-586.pl macosx $(CFLAGS) > ../$@)
84 yx86-macosx.s:  asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
85         (cd asm; $(PERL) crypt586.pl macosx $(CFLAGS) > ../$@)
86
87 files:
88         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
89
90 links:
91         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
92         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
93         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
94
95 # We need to use force because 'install' matches 'INSTALL' on case
96 # insensitive systems
97 FRC.install:
98 install: FRC.install
99         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
100         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
101         do  \
102         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
103         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
104         done;
105
106 tags:
107         ctags $(SRC)
108
109 tests:
110
111 lint:
112         lint -DLINT $(INCLUDES) $(SRC)>fluff
113
114 depend:
115         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
116         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
117
118 dclean:
119         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
120         mv -f Makefile.new $(MAKEFILE)
121
122 clean:
123         rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
124
125 # DO NOT DELETE THIS LINE -- make depend depends on it.
126
127 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
128 cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
129 cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
130 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
131 cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
132 cbc_cksm.o: cbc_cksm.c des_locl.h
133 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
134 cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
135 cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
136 cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
137 cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
138 cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
139 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
140 cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
141 cfb64ede.o: ../../include/openssl/opensslconf.h
142 cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
143 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
144 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
145 cfb64ede.o: cfb64ede.c des_locl.h
146 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
147 cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
148 cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
149 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
150 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
151 cfb64enc.o: cfb64enc.c des_locl.h
152 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
153 cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
154 cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
155 cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
156 cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
157 cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
158 des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
159 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
160 des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
161 des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
162 des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
163 des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
164 des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
165 des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
166 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
167 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
168 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
169 des_old.o: ../../include/openssl/ui_compat.h des_old.c
170 des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
171 des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
172 des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
173 des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
174 des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
175 des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
176 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
177 ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
178 ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
179 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
180 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
181 ecb3_enc.o: des_locl.h ecb3_enc.c
182 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
183 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
184 ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
185 ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
186 ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
187 ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
188 ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
189 ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
190 ede_cbcm_enc.o: ../../include/openssl/e_os2.h
191 ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
192 ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
193 ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
194 ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
195 ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
196 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
197 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
198 enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
199 enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
200 enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
201 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
202 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
203 enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
204 enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
205 enc_read.o: enc_read.c
206 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
207 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
208 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
209 enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
210 enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
211 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
212 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
213 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
214 enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
215 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
216 fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
217 fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
218 fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
219 fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
220 fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
221 fcrypt.o: des_locl.h fcrypt.c
222 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
223 fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
224 fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
225 fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
226 fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
227 fcrypt_b.o: des_locl.h fcrypt_b.c
228 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
229 ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
230 ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
231 ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
232 ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
233 ofb64ede.o: des_locl.h ofb64ede.c
234 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
235 ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
236 ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
237 ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
238 ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
239 ofb64enc.o: des_locl.h ofb64enc.c
240 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
241 ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
242 ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
243 ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
244 ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
245 ofb_enc.o: des_locl.h ofb_enc.c
246 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
247 pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
248 pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
249 pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
250 pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
251 pcbc_enc.o: des_locl.h pcbc_enc.c
252 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
253 qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
254 qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
255 qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
256 qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
257 qud_cksm.o: des_locl.h qud_cksm.c
258 rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
259 rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
260 rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
261 rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
262 rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
263 rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
264 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
265 read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
266 read2pwd.o: ../../include/openssl/opensslconf.h
267 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
268 read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
269 read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
270 read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
271 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
272 rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
273 rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
274 rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
275 rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
276 rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
277 set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
278 set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
279 set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
280 set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
281 set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
282 set_key.o: des_locl.h set_key.c
283 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
284 str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
285 str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
286 str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
287 str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
288 str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
289 str2key.o: des_locl.h str2key.c
290 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
291 xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
292 xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
293 xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
294 xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
295 xcbc_enc.o: des_locl.h xcbc_enc.c