]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/des/Makefile
On case insensitive systems, 'install' gets mixed up with the existing file
[thirdparty/openssl.git] / crypto / des / Makefile
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
42ba5d23 11MAKEFILE= Makefile
d02b48c6 12AR= ar r
27ad06a6 13RANLIB= ranlib
d02b48c6
RE
14DES_ENC= des_enc.o fcrypt_b.o
15# or use
58964a49 16#DES_ENC= dx86-elf.o yx86-elf.o
d02b48c6
RE
17
18CFLAGS= $(INCLUDES) $(CFLAG)
fda5e385 19ASFLAGS= $(INCLUDES) $(ASFLAG)
16760a30 20AFLAGS= $(ASFLAGS)
d02b48c6 21
169cc7a1 22GENERAL=Makefile
d02b48c6
RE
23TEST=destest.c
24APPS=
25
26LIB=$(TOP)/libcrypto.a
58964a49
RE
27LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
28 ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \
29 fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \
9a310a5d
RL
30 qud_cksm.c rand_key.c rpc_enc.c set_key.c \
31 des_enc.c fcrypt_b.c \
edb93ae6 32 xcbc_enc.c \
401cd0af
RL
33 str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \
34 read2pwd.c
d02b48c6 35
58964a49 36LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \
d02b48c6 37 ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \
58964a49 38 enc_read.o enc_writ.o ofb64enc.o \
d02b48c6 39 ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \
a63d5eaa
RL
40 ${DES_ENC} \
41 fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \
401cd0af 42 ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o
d02b48c6
RE
43
44SRC= $(LIBSRC)
45
c2e4f17c 46EXHEADER= des.h des_old.h
48b83a25 47HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
d02b48c6
RE
48
49ALL= $(GENERAL) $(SRC) $(HEADER)
50
51top:
52 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
53
b357e95c 54all: lib
d02b48c6
RE
55
56lib: $(LIBOBJ)
57 $(AR) $(LIB) $(LIBOBJ)
4e20b1a6 58 $(RANLIB) $(LIB) || echo Never mind.
d02b48c6
RE
59 @touch lib
60
bebf2787
UM
61des: des.o cbc3_enc.o lib
62 $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
63
67ea999d
AP
64des_enc-sparc.S: asm/des_enc.m4
65 m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
28e276f1 66
ec38ddc7 67# ELF
67ea999d 68dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
ec38ddc7 69 (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > ../$@)
67ea999d 70yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
ec38ddc7
AP
71 (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > ../$@)
72# COFF
67ea999d 73dx86-cof.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
ec38ddc7 74 (cd asm; $(PERL) des-586.pl coff $(CFLAGS) > ../$@)
67ea999d 75yx86-cof.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
ec38ddc7
AP
76 (cd asm; $(PERL) crypt586.pl coff $(CFLAGS) > ../$@)
77# a.out
16760a30
AP
78dx86-out.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
79 (cd asm; $(PERL) des-586.pl a.out $(CFLAGS) > ../$@)
80yx86-out.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
81 (cd asm; $(PERL) crypt586.pl a.out $(CFLAGS) > ../$@)
d02b48c6
RE
82
83files:
42ba5d23 84 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
d02b48c6
RE
85
86links:
1314c344
BM
87 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
88 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
89 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
d02b48c6 90
86a249fe
RL
91# We need to use force because 'install' matches 'INSTALL' on case
92# insensitive systems
93FRC.install:
94install: FRC.install
81a86fcf 95 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
a2ac429d 96 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
d02b48c6 97 do \
e5f3045f
BM
98 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
99 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
100 done;
101
102tags:
103 ctags $(SRC)
104
105tests:
106
107lint:
108 lint -DLINT $(INCLUDES) $(SRC)>fluff
109
110depend:
ce92b6eb 111 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
001ab3ab 112 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
d02b48c6
RE
113
114dclean:
99aab161 115 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
116 mv -f Makefile.new $(MAKEFILE)
117
118clean:
67ea999d 119 rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
d02b48c6 120
d02b48c6 121# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 122
9c52d2cc
GT
123cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
124cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
125cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
126cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
127cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
128cbc_cksm.o: cbc_cksm.c des_locl.h
129cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
130cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
131cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
132cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
133cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
134cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
3c97bd83
RL
135cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
136cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
137cfb64ede.o: ../../include/openssl/opensslconf.h
9c52d2cc
GT
138cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
139cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
140cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
141cfb64ede.o: cfb64ede.c des_locl.h
142cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
143cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
144cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
145cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
146cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
147cfb64enc.o: cfb64enc.c des_locl.h
148cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
149cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
150cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
c57bc2dc
GT
151cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
152cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
153cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
9c52d2cc
GT
154des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
155des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
156des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
157des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
158des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
159des_enc.o: des_enc.c des_locl.h ncbc_enc.c
9c52d2cc
GT
160des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
161des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
b476df64 162des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
de2f6e4d
RL
163des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
164des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
165des_old.o: ../../include/openssl/ui_compat.h des_old.c
9c52d2cc
GT
166des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
167des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
168des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
169des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
170des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
171des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
172ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
173ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
174ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
175ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
176ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
177ecb3_enc.o: des_locl.h ecb3_enc.c
1fb72444
RL
178ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
179ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
180ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
181ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
182ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
183ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
184ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
185ecb_enc.o: spr.h
9c52d2cc
GT
186ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
187ede_cbcm_enc.o: ../../include/openssl/e_os2.h
fe19c448 188ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
c57bc2dc 189ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
de2f6e4d
RL
190ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
191ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
192ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
ce92b6eb
AP
193enc_read.o: ../../e_os.h ../../include/openssl/bio.h
194enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 195enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
196enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
197enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
198enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
199enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
200enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
201enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
202enc_read.o: enc_read.c
203enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
204enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 205enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
206enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
207enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
208enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
209enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
210enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
211enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
212enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
9c52d2cc
GT
213fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
214fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
215fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
216fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
217fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
218fcrypt.o: des_locl.h fcrypt.c
9c52d2cc
GT
219fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
220fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
221fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
222fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
223fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
224fcrypt_b.o: des_locl.h fcrypt_b.c
225ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
226ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
227ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
228ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
229ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
230ofb64ede.o: des_locl.h ofb64ede.c
231ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
232ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
233ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
234ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
235ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
236ofb64enc.o: des_locl.h ofb64enc.c
237ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
238ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
239ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
240ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
241ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
242ofb_enc.o: des_locl.h ofb_enc.c
9c52d2cc
GT
243pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
244pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
245pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
246pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
247pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
248pcbc_enc.o: des_locl.h pcbc_enc.c
249qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
250qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
251qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
252qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
253qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
254qud_cksm.o: des_locl.h qud_cksm.c
255rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
256rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
257rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
258rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
259rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
260rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
de2f6e4d
RL
261read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
262read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
263read2pwd.o: ../../include/openssl/opensslconf.h
c57bc2dc
GT
264read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
265read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
266read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
267read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
9c52d2cc
GT
268rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
269rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
270rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
271rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
272rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
273rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
9c52d2cc
GT
274set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
275set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
276set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
277set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
278set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
279set_key.o: des_locl.h set_key.c
de2f6e4d
RL
280str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
281str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
282str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
c57bc2dc
GT
283str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
284str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
285str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
286str2key.o: des_locl.h str2key.c
9c52d2cc
GT
287xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
288xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
289xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
290xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
291xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
292xcbc_enc.o: des_locl.h xcbc_enc.c