Don't use $(EXHEADER) directly in for loops, as most shells will break
[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 AFLAGS= $(ASFLAGS)
27
28 GENERAL=Makefile
29 TEST=destest.c
30 APPS=
31
32 LIB=$(TOP)/libcrypto.a
33 LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
34         ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
35         fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
36         qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
37         des_enc.c fcrypt_b.c \
38         xcbc_enc.c \
39         str2key.c  cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
40         read2pwd.c
41
42 LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
43         ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
44         enc_read.o enc_writ.o ofb64enc.o \
45         ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
46         ${DES_ENC} \
47         fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
48         ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
49
50 SRC= $(LIBSRC)
51
52 EXHEADER= des.h des_old.h
53 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
54
55 ALL=    $(GENERAL) $(SRC) $(HEADER)
56
57 top:
58         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
59
60 all:    lib
61
62 lib:    $(LIBOBJ)
63         $(AR) $(LIB) $(LIBOBJ)
64         $(RANLIB) $(LIB) || echo Never mind.
65         @touch lib
66
67 des: des.o cbc3_enc.o lib
68         $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
69
70 asm/des_enc-sparc.S:    asm/des_enc.m4
71         m4 -B 8192 asm/des_enc.m4 > asm/des_enc-sparc.S
72
73 # ELF
74 asm/dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
75         (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > ../$@)
76 asm/yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
77         (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > ../$@)
78 # COFF
79 asm/dx86-cof.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
80         (cd asm; $(PERL) des-586.pl coff $(CFLAGS) > ../$@)
81 asm/yx86-cof.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
82         (cd asm; $(PERL) crypt586.pl coff $(CFLAGS) > ../$@)
83 # a.out
84 dx86-out.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
85         (cd asm; $(PERL) des-586.pl a.out $(CFLAGS) > ../$@)
86 yx86-out.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
87         (cd asm; $(PERL) crypt586.pl a.out $(CFLAGS) > ../$@)
88
89 files:
90         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
91
92 links:
93         @sh $(TOP)/util/point.sh Makefile.ssl Makefile
94         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
95         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
96         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
97
98 install: installs
99
100 installs:
101         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
102         do  \
103         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
104         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
105         done;
106
107 tags:
108         ctags $(SRC)
109
110 tests:
111
112 lint:
113         lint -DLINT $(INCLUDES) $(SRC)>fluff
114
115 depend:
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 asm/dx86unix.cpp asm/yx86unix.cpp asm/*.s asm/*.o *.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: ../../include/openssl/des.h ../../include/openssl/des_old.h
140 cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
141 cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
142 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
143 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
144 cfb64ede.o: cfb64ede.c des_locl.h
145 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
146 cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
147 cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
148 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
149 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
150 cfb64enc.o: cfb64enc.c des_locl.h
151 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
152 cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
153 cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
154 cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
155 cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
156 cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
157 des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
158 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
159 des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
160 des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
161 des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
162 des_enc.o: des_enc.c des_locl.h ncbc_enc.c
163 des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
164 des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
165 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
166 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
167 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
168 des_old.o: ../../include/openssl/ui_compat.h des_old.c
169 des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
170 des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
171 des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
172 des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
173 des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
174 des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
175 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
176 ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
177 ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
178 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
179 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
180 ecb3_enc.o: des_locl.h ecb3_enc.c
181 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
182 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
183 ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
184 ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
185 ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
186 ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
187 ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
188 ecb_enc.o: spr.h
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