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