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