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