summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/modes
diff options
context:
space:
mode:
authordjm <>2012-10-13 21:23:57 +0000
committerdjm <>2012-10-13 21:23:57 +0000
commit5bb3399db864c8865e0df73bd1564407bac5d182 (patch)
tree51d00d308f46148b4b341133936e44706703ad8b /src/lib/libcrypto/modes
parent7aa3571aba92d82f8dd3caabe48fad636f05a0fd (diff)
downloadopenbsd-5bb3399db864c8865e0df73bd1564407bac5d182.tar.gz
openbsd-5bb3399db864c8865e0df73bd1564407bac5d182.tar.bz2
openbsd-5bb3399db864c8865e0df73bd1564407bac5d182.zip
import OpenSSL-1.0.1c
Diffstat (limited to 'src/lib/libcrypto/modes')
-rw-r--r--src/lib/libcrypto/modes/Makefile77
1 files changed, 68 insertions, 9 deletions
diff --git a/src/lib/libcrypto/modes/Makefile b/src/lib/libcrypto/modes/Makefile
index 6c85861b6c..c825b12f25 100644
--- a/src/lib/libcrypto/modes/Makefile
+++ b/src/lib/libcrypto/modes/Makefile
@@ -10,21 +10,27 @@ CFLAG=-g
10MAKEFILE= Makefile 10MAKEFILE= Makefile
11AR= ar r 11AR= ar r
12 12
13MODES_ASM_OBJ=
14
13CFLAGS= $(INCLUDES) $(CFLAG) 15CFLAGS= $(INCLUDES) $(CFLAG)
16ASFLAGS= $(INCLUDES) $(ASFLAG)
17AFLAGS= $(ASFLAGS)
14 18
15GENERAL=Makefile 19GENERAL=Makefile
16TEST= 20TEST=
17APPS= 21APPS=
18 22
19LIB=$(TOP)/libcrypto.a 23LIB=$(TOP)/libcrypto.a
20LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c 24LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
21LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o 25 ccm128.c xts128.c
26LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
27 ccm128.o xts128.o $(MODES_ASM_OBJ)
22 28
23SRC= $(LIBSRC) 29SRC= $(LIBSRC)
24 30
25#EXHEADER= store.h str_compat.h 31#EXHEADER= store.h str_compat.h
26EXHEADER= modes.h 32EXHEADER= modes.h
27HEADER= $(EXHEADER) 33HEADER= modes_lcl.h $(EXHEADER)
28 34
29ALL= $(GENERAL) $(SRC) $(HEADER) 35ALL= $(GENERAL) $(SRC) $(HEADER)
30 36
@@ -38,6 +44,24 @@ lib: $(LIBOBJ)
38 $(RANLIB) $(LIB) || echo Never mind. 44 $(RANLIB) $(LIB) || echo Never mind.
39 @touch lib 45 @touch lib
40 46
47ghash-ia64.s: asm/ghash-ia64.pl
48 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
49ghash-x86.s: asm/ghash-x86.pl
50 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
51ghash-x86_64.s: asm/ghash-x86_64.pl
52 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
53ghash-sparcv9.s: asm/ghash-sparcv9.pl
54 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
55ghash-alpha.s: asm/ghash-alpha.pl
56 $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
57ghash-parisc.s: asm/ghash-parisc.pl
58 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
59
60# GNU make "catch all"
61ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
62
63ghash-armv4.o: ghash-armv4.S
64
41files: 65files:
42 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 66 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
43 67
@@ -71,12 +95,47 @@ dclean:
71 mv -f Makefile.new $(MAKEFILE) 95 mv -f Makefile.new $(MAKEFILE)
72 96
73clean: 97clean:
74 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 98 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
75 99
76# DO NOT DELETE THIS LINE -- make depend depends on it. 100# DO NOT DELETE THIS LINE -- make depend depends on it.
77 101
78cbc128.o: cbc128.c modes.h 102cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
79cfb128.o: cfb128.c modes.h 103cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
80ctr128.o: ctr128.c modes.h 104cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
81cts128.o: cts128.c modes.h 105cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
82ofb128.o: modes.h ofb128.c 106cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
107ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
108ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
109ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
110ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
111ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
112cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
113cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
114cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
115cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
116cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
117ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
118ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
119ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
120ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
121ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
122cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
123cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
124cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
125cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
126cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
127gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
128gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
129gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
130gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
131gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
132ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
133ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
134ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
135ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
136ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
137xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
138xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
139xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
140xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
141xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c