]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/des/Makefile
Further BUILDENV refinement, further fool-proofing of Makefiles and
[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
81a86fcf
AP
91install:
92 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
a2ac429d 93 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
d02b48c6 94 do \
e5f3045f
BM
95 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
96 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
d02b48c6
RE
97 done;
98
99tags:
100 ctags $(SRC)
101
102tests:
103
104lint:
105 lint -DLINT $(INCLUDES) $(SRC)>fluff
106
107depend:
ce92b6eb 108 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
001ab3ab 109 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
d02b48c6
RE
110
111dclean:
99aab161 112 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
d02b48c6
RE
113 mv -f Makefile.new $(MAKEFILE)
114
115clean:
67ea999d 116 rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
d02b48c6 117
d02b48c6 118# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 119
9c52d2cc
GT
120cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
121cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
122cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
123cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
124cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
125cbc_cksm.o: cbc_cksm.c des_locl.h
126cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
127cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
128cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
129cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
130cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
131cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c
3c97bd83
RL
132cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
133cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
134cfb64ede.o: ../../include/openssl/opensslconf.h
9c52d2cc
GT
135cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
136cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
137cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
138cfb64ede.o: cfb64ede.c des_locl.h
139cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
140cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
141cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
142cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
143cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
144cfb64enc.o: cfb64enc.c des_locl.h
145cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
146cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
147cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
c57bc2dc
GT
148cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
149cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
150cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h
9c52d2cc
GT
151des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
152des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
153des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
154des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
155des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
156des_enc.o: des_enc.c des_locl.h ncbc_enc.c
9c52d2cc
GT
157des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
158des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
b476df64 159des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
de2f6e4d
RL
160des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
161des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
162des_old.o: ../../include/openssl/ui_compat.h des_old.c
9c52d2cc
GT
163des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
164des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
165des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
166des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
167des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
168des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
169ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
170ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
171ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
172ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
173ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
174ecb3_enc.o: des_locl.h ecb3_enc.c
1fb72444
RL
175ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
176ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
177ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
178ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
179ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
180ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
181ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c
182ecb_enc.o: spr.h
9c52d2cc
GT
183ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
184ede_cbcm_enc.o: ../../include/openssl/e_os2.h
fe19c448 185ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
c57bc2dc 186ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
de2f6e4d
RL
187ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
188ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
189ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
ce92b6eb
AP
190enc_read.o: ../../e_os.h ../../include/openssl/bio.h
191enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 192enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
193enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
194enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
195enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
196enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
197enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
198enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
199enc_read.o: enc_read.c
200enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
201enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 202enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
203enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
204enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
205enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
206enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
207enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
208enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
209enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
9c52d2cc
GT
210fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
211fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
212fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
213fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
214fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
215fcrypt.o: des_locl.h fcrypt.c
9c52d2cc
GT
216fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
217fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
218fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
219fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
220fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
221fcrypt_b.o: des_locl.h fcrypt_b.c
222ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
223ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
224ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
225ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
226ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
227ofb64ede.o: des_locl.h ofb64ede.c
228ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
229ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
230ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
231ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
232ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
233ofb64enc.o: des_locl.h ofb64enc.c
234ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
235ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
236ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
237ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
238ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
239ofb_enc.o: des_locl.h ofb_enc.c
9c52d2cc
GT
240pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
241pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
242pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
243pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
244pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
245pcbc_enc.o: des_locl.h pcbc_enc.c
246qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
247qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
248qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
249qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
250qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
251qud_cksm.o: des_locl.h qud_cksm.c
252rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
253rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
254rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
255rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
256rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
257rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
de2f6e4d
RL
258read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
259read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
260read2pwd.o: ../../include/openssl/opensslconf.h
c57bc2dc
GT
261read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
262read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
263read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
264read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
9c52d2cc
GT
265rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
266rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
267rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
268rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
269rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
270rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
9c52d2cc
GT
271set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
272set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
273set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
274set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
275set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
276set_key.o: des_locl.h set_key.c
de2f6e4d
RL
277str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
278str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
279str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
c57bc2dc
GT
280str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
281str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
282str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
283str2key.o: des_locl.h str2key.c
9c52d2cc
GT
284xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
285xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
286xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
287xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
288xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
289xcbc_enc.o: des_locl.h xcbc_enc.c