]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/des/Makefile.ssl
Use double dashes so makedepend doesn't misunderstand the flags we
[thirdparty/openssl.git] / crypto / des / Makefile.ssl
CommitLineData
d02b48c6
RE
1#
2# SSLeay/crypto/des/Makefile
3#
4
5DIR= des
6TOP= ../..
7CC= cc
8CPP= $(CC) -E
41d2a336 9INCLUDES=-I$(TOP) -I../../include
d02b48c6 10CFLAG=-g
e5f3045f
BM
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
d02b48c6
RE
13INSTALLTOP=/usr/local/ssl
14MAKE= make -f Makefile.ssl
cf1b7d96
RL
15MAKEDEPPROG= makedepend
16MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
d02b48c6
RE
17MAKEFILE= Makefile.ssl
18AR= ar r
27ad06a6 19RANLIB= ranlib
d02b48c6
RE
20DES_ENC= des_enc.o fcrypt_b.o
21# or use
58964a49 22#DES_ENC= dx86-elf.o yx86-elf.o
d02b48c6
RE
23
24CFLAGS= $(INCLUDES) $(CFLAG)
25
169cc7a1 26GENERAL=Makefile
d02b48c6
RE
27TEST=destest.c
28APPS=
29
30LIB=$(TOP)/libcrypto.a
58964a49
RE
31LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
32 ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \
33 fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \
9a310a5d
RL
34 qud_cksm.c rand_key.c rpc_enc.c set_key.c \
35 des_enc.c fcrypt_b.c \
edb93ae6 36 xcbc_enc.c \
401cd0af
RL
37 str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
38 read2pwd.c
d02b48c6 39
58964a49 40LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \
d02b48c6 41 ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \
58964a49 42 enc_read.o enc_writ.o ofb64enc.o \
d02b48c6 43 ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \
a63d5eaa
RL
44 ${DES_ENC} \
45 fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \
401cd0af 46 ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
d02b48c6
RE
47
48SRC= $(LIBSRC)
49
c2e4f17c 50EXHEADER= des.h des_old.h
48b83a25 51HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
d02b48c6
RE
52
53ALL= $(GENERAL) $(SRC) $(HEADER)
54
55top:
56 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
57
b357e95c 58all: lib
d02b48c6
RE
59
60lib: $(LIBOBJ)
61 $(AR) $(LIB) $(LIBOBJ)
4e20b1a6 62 $(RANLIB) $(LIB) || echo Never mind.
d02b48c6
RE
63 @touch lib
64
bebf2787
UM
65des: des.o cbc3_enc.o lib
66 $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
67
d02b48c6 68# elf
58964a49 69asm/dx86-elf.o: asm/dx86unix.cpp
3a6a39c3 70 $(CPP) -DELF -x c asm/dx86unix.cpp | as -o asm/dx86-elf.o
d02b48c6 71
58964a49 72asm/yx86-elf.o: asm/yx86unix.cpp
3a6a39c3 73 $(CPP) -DELF -x c asm/yx86unix.cpp | as -o asm/yx86-elf.o
d02b48c6
RE
74
75# solaris
58964a49 76asm/dx86-sol.o: asm/dx86unix.cpp
d02b48c6
RE
77 $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s
78 as -o asm/dx86-sol.o asm/dx86-sol.s
79 rm -f asm/dx86-sol.s
80
58964a49
RE
81asm/yx86-sol.o: asm/yx86unix.cpp
82 $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s
83 as -o asm/yx86-sol.o asm/yx86-sol.s
84 rm -f asm/yx86-sol.s
d02b48c6
RE
85
86# a.out
58964a49 87asm/dx86-out.o: asm/dx86unix.cpp
d02b48c6
RE
88 $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o
89
58964a49
RE
90asm/yx86-out.o: asm/yx86unix.cpp
91 $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o
d02b48c6
RE
92
93# bsdi
58964a49 94asm/dx86bsdi.o: asm/dx86unix.cpp
dfeab068 95 $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o
d02b48c6 96
58964a49 97asm/yx86bsdi.o: asm/yx86unix.cpp
dfeab068 98 $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o
58964a49 99
743e7be9 100asm/dx86unix.cpp: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
99aab161 101 (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp)
58964a49 102
743e7be9 103asm/yx86unix.cpp: asm/crypt586.pl ../perlasm/x86asm.pl
99aab161 104 (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp)
d02b48c6
RE
105
106files:
99aab161 107 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
d02b48c6
RE
108
109links:
bb8f3c58 110 @$(TOP)/util/point.sh Makefile.ssl Makefile
1314c344
BM
111 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
112 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
113 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
d02b48c6
RE
114
115install: installs
116
117installs:
118 @for i in $(EXHEADER) ; \
119 do \
e5f3045f
BM
120 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
121 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
122 done;
123
124tags:
125 ctags $(SRC)
126
127tests:
128
129lint:
130 lint -DLINT $(INCLUDES) $(SRC)>fluff
131
132depend:
001ab3ab 133 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
d02b48c6
RE
134
135dclean:
99aab161 136 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
137 mv -f Makefile.new $(MAKEFILE)
138
139clean:
9fe6729b 140 rm -f asm/dx86unix.cpp asm/yx86unix.cpp *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
d02b48c6 141
d02b48c6 142# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 143
de2f6e4d
RL
144cbc_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
145cbc_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
146cbc_cksm.o: ../../include/openssl/opensslconf.h
147cbc_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
148cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
149cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
150cbc_cksm.o: cbc_cksm.c des_locl.h
151cbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
152cbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
153cbc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
154cbc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
155cbc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
156cbc_enc.o: ../../include/openssl/ui_compat.h cbc_enc.c des_locl.h ncbc_enc.c
157cfb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
158cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
159cfb64ede.o: ../../include/openssl/opensslconf.h
160cfb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
161cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
162cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
163cfb64ede.o: cfb64ede.c des_locl.h
164cfb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
165cfb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
166cfb64enc.o: ../../include/openssl/opensslconf.h
167cfb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
168cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
169cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
170cfb64enc.o: cfb64enc.c des_locl.h
171cfb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
172cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
173cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
174cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
175cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
176cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
177des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
178des_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
179des_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
180des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
181des_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
182des_enc.o: ../../include/openssl/ui_compat.h des_enc.c des_locl.h ncbc_enc.c
183des_old.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
184des_old.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
185des_old.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
b476df64 186des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
de2f6e4d
RL
187des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
188des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
189des_old.o: ../../include/openssl/ui_compat.h des_old.c
a18894d1
RL
190des_old2.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
191des_old2.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
192des_old2.o: ../../include/openssl/opensslconf.h
193des_old2.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
194des_old2.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
195des_old2.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
196des_old2.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
197des_old2.o: des_old2.c
de2f6e4d
RL
198ecb3_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
199ecb3_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
200ecb3_enc.o: ../../include/openssl/opensslconf.h
201ecb3_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
202ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
203ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
204ecb3_enc.o: des_locl.h ecb3_enc.c
205ecb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
206ecb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
207ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
208ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
209ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
456bc309
RL
210ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
211ecb_enc.o: spr.h
de2f6e4d
RL
212ede_cbcm_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
213ede_cbcm_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
fe19c448 214ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
de2f6e4d
RL
215ede_cbcm_enc.o: ../../include/openssl/opensslv.h
216ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
217ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
218ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
41d2a336
RL
219enc_read.o: ../../e_os.h ../../include/openssl/bio.h
220enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448
RL
221enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
222enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
223enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
dd9d233e 224enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
62ab514e 225enc_read.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
de2f6e4d 226enc_read.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
710e5d56 227enc_read.o: ../cryptlib.h des_locl.h enc_read.c
41d2a336
RL
228enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
229enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448
RL
230enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
231enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
232enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
f8000b93
RL
233enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
234enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
235enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
de2f6e4d 236enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
534aaf37 237enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
de2f6e4d
RL
238fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
239fcrypt.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
240fcrypt.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
241fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
242fcrypt.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
243fcrypt.o: ../../include/openssl/ui_compat.h des_locl.h fcrypt.c
244fcrypt_b.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
245fcrypt_b.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
246fcrypt_b.o: ../../include/openssl/opensslconf.h
247fcrypt_b.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
248fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
249fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
250fcrypt_b.o: des_locl.h fcrypt_b.c
251ofb64ede.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
252ofb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
253ofb64ede.o: ../../include/openssl/opensslconf.h
254ofb64ede.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
255ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
256ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
257ofb64ede.o: des_locl.h ofb64ede.c
258ofb64enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
259ofb64enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
260ofb64enc.o: ../../include/openssl/opensslconf.h
261ofb64enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
262ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
263ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
264ofb64enc.o: des_locl.h ofb64enc.c
265ofb_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
266ofb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
267ofb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
268ofb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
269ofb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
270ofb_enc.o: ../../include/openssl/ui_compat.h des_locl.h ofb_enc.c
271pcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
272pcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
273pcbc_enc.o: ../../include/openssl/opensslconf.h
274pcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
275pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
276pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
277pcbc_enc.o: des_locl.h pcbc_enc.c
278qud_cksm.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
279qud_cksm.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
280qud_cksm.o: ../../include/openssl/opensslconf.h
281qud_cksm.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
282qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
283qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
284qud_cksm.o: des_locl.h qud_cksm.c
285rand_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
286rand_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
287rand_key.o: ../../include/openssl/opensslconf.h
288rand_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
289rand_key.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
290rand_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291rand_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
292rand_key.o: rand_key.c
293read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
294read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
295read2pwd.o: ../../include/openssl/opensslconf.h
296read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
297read2pwd.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
298read2pwd.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
299read2pwd.o: read2pwd.c
300rpc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
301rpc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
302rpc_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
303rpc_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
304rpc_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
305rpc_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h rpc_des.h
710e5d56 306rpc_enc.o: rpc_enc.c
de2f6e4d
RL
307set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
308set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
309set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
310set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
311set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
312set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c
313str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
314str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
315str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
316str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
317str2key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
318str2key.o: ../../include/openssl/ui_compat.h des_locl.h str2key.c
319xcbc_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
320xcbc_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
321xcbc_enc.o: ../../include/openssl/opensslconf.h
322xcbc_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
323xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
324xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
325xcbc_enc.o: des_locl.h xcbc_enc.c