81dbf0e3ef8ff1c3f8c74c41087168c3087fe494
[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 des-586.s:      asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
68         $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
69 crypt586.s:     asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
70         $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
71
72 files:
73         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
74
75 links:
76         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
77         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
78         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
79
80 # We need to use force because 'install' matches 'INSTALL' on case
81 # insensitive systems
82 FRC.install:
83 install: FRC.install
84         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
85         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
86         do  \
87         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
88         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
89         done;
90
91 tags:
92         ctags $(SRC)
93
94 tests:
95
96 lint:
97         lint -DLINT $(INCLUDES) $(SRC)>fluff
98
99 depend:
100         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
101         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
102
103 dclean:
104         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
105         mv -f Makefile.new $(MAKEFILE)
106
107 clean:
108         rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
109
110 # DO NOT DELETE THIS LINE -- make depend depends on it.
111
112 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
113 cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
114 cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
115 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116 cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
117 cbc_cksm.o: cbc_cksm.c des_locl.h
118 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
119 cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
120 cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
121 cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
122 cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
123 cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
124 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
125 cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
126 cfb64ede.o: ../../include/openssl/opensslconf.h
127 cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
128 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
129 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
130 cfb64ede.o: cfb64ede.c des_locl.h
131 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
132 cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
133 cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
134 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
135 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
136 cfb64enc.o: cfb64enc.c des_locl.h
137 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
138 cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
139 cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
140 cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
141 cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
142 cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
143 des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
144 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
145 des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
146 des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
147 des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
148 des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h
149 des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
150 des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
151 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
152 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
153 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
154 des_old.o: ../../include/openssl/ui_compat.h des_old.c
155 des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
156 des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
157 des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
158 des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
159 des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
160 des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
161 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
162 ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
163 ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
164 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
165 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
166 ecb3_enc.o: des_locl.h ecb3_enc.c
167 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
168 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
169 ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
170 ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
171 ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
172 ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
173 ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
174 ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
175 ede_cbcm_enc.o: ../../include/openssl/e_os2.h
176 ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
177 ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
178 ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
179 ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
180 ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
181 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
182 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
183 enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
184 enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
185 enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
186 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
187 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
188 enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
189 enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
190 enc_read.o: enc_read.c
191 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
192 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
193 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
194 enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
195 enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
196 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
197 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
198 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
199 enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
200 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
201 fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
202 fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.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/des.h ../../include/openssl/des_old.h
263 set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
264 set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
265 set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
266 set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
267 set_key.o: des_locl.h set_key.c
268 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
269 str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
270 str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
271 str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
272 str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
273 str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
274 str2key.o: des_locl.h str2key.c
275 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
276 xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
277 xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
278 xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
279 xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
280 xcbc_enc.o: des_locl.h xcbc_enc.c