]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/des/Makefile
Add volatile qualifications to two blocks of inline asm to stop GCC from
[thirdparty/openssl.git] / crypto / des / Makefile
CommitLineData
d02b48c6 1#
9f85fcef 2# OpenSSL/crypto/des/Makefile
d02b48c6
RE
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
dee4d129 27LIBSRC= des_lib.c cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
58964a49
RE
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
dee4d129 36LIBOBJ= des_lib.o 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)
d83dde61 57 $(ARX) $(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
e852835d
DSH
160des_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
161des_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
162des_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
163des_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
164des_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
165des_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
166des_lib.o: ../../include/openssl/ui_compat.h des_lib.c des_locl.h des_ver.h
9c52d2cc
GT
167des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
168des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
b476df64 169des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
de2f6e4d
RL
170des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
171des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
172des_old.o: ../../include/openssl/ui_compat.h des_old.c
9c52d2cc
GT
173des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
174des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
175des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
176des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
177des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
178des_old2.o: ../../include/openssl/ui_compat.h des_old2.c
179ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
180ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
181ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
182ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
183ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
184ecb3_enc.o: des_locl.h ecb3_enc.c
1fb72444
RL
185ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
186ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
e852835d
DSH
187ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
188ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
189ecb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
190ecb_enc.o: des_locl.h ecb_enc.c spr.h
9c52d2cc
GT
191ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
192ede_cbcm_enc.o: ../../include/openssl/e_os2.h
fe19c448 193ede_cbcm_enc.o: ../../include/openssl/opensslconf.h
c57bc2dc 194ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h
de2f6e4d
RL
195ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
196ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
197ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c
ce92b6eb
AP
198enc_read.o: ../../e_os.h ../../include/openssl/bio.h
199enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 200enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
201enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
202enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
203enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
204enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
205enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
206enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h
207enc_read.o: enc_read.c
208enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
209enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
fe19c448 210enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
ce92b6eb
AP
211enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
212enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
213enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
214enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
215enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
216enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
217enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
9c52d2cc
GT
218fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
219fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
220fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
221fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
222fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
223fcrypt.o: des_locl.h fcrypt.c
9c52d2cc
GT
224fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
225fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
226fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
227fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
228fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
229fcrypt_b.o: des_locl.h fcrypt_b.c
230ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
231ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
232ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
233ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
234ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
235ofb64ede.o: des_locl.h ofb64ede.c
236ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
237ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
238ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
239ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
240ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
241ofb64enc.o: des_locl.h ofb64enc.c
242ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
243ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
244ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
245ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
246ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
247ofb_enc.o: des_locl.h ofb_enc.c
9c52d2cc
GT
248pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
249pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
250pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
251pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
252pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
253pcbc_enc.o: des_locl.h pcbc_enc.c
254qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
255qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
256qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
257qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
258qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
259qud_cksm.o: des_locl.h qud_cksm.c
260rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
261rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
262rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
263rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
264rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
265rand_key.o: ../../include/openssl/ui_compat.h rand_key.c
de2f6e4d
RL
266read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
267read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
268read2pwd.o: ../../include/openssl/opensslconf.h
c57bc2dc
GT
269read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
270read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
271read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
272read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c
9c52d2cc
GT
273rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
274rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
c57bc2dc
GT
275rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
276rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
277rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
278rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c
9c52d2cc 279set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
2124e869
BL
280set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
281set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h
282set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
283set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
284set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c
de2f6e4d
RL
285str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
286str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h
287str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
c57bc2dc
GT
288str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
289str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
290str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
291str2key.o: des_locl.h str2key.c
9c52d2cc
GT
292xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h
293xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
294xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
295xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
296xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h
297xcbc_enc.o: des_locl.h xcbc_enc.c