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