summaryrefslogtreecommitdiffstats
path: root/crypto/modes/Makefile
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-04-22 21:36:26 +0000
committerAndy Polyakov <appro@openssl.org>2010-04-22 21:36:26 +0000
commit8a1c92ce49110fd370b67e8b2c2884bd63c66bc4 (patch)
treef5c9dc804af97729ab046bcf71f084df0134f07e /crypto/modes/Makefile
parentd183244b432f4e16fc1576341878905e39fbc945 (diff)
Take gcm128.c and ghash assembler modules into the build loop.
Diffstat (limited to 'crypto/modes/Makefile')
-rw-r--r--crypto/modes/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/crypto/modes/Makefile b/crypto/modes/Makefile
index 6c85861b6c..ea74c5cad2 100644
--- a/crypto/modes/Makefile
+++ b/crypto/modes/Makefile
@@ -10,15 +10,20 @@ CFLAG=-g
MAKEFILE= Makefile
AR= ar r
+MODES_ASM_OBJ=
+
CFLAGS= $(INCLUDES) $(CFLAG)
+ASFLAGS= $(INCLUDES) $(ASFLAG)
+AFLAGS= $(ASFLAGS)
GENERAL=Makefile
TEST=
APPS=
LIB=$(TOP)/libcrypto.a
-LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c
-LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o
+LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c
+LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
+ $(MODES_ASM_OBJ)
SRC= $(LIBSRC)
@@ -38,6 +43,19 @@ lib: $(LIBOBJ)
$(RANLIB) $(LIB) || echo Never mind.
@touch lib
+aes-ia64.s: asm/ghash-ia64.pl
+ $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
+ghash-x86.s: asm/ghash-x86.pl
+ $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
+ghash-x86_64.s: asm/ghash-x86_64.pl
+ $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
+ghash-sparcv9.s: asm/ghash-sparcv9.pl
+ $(PERL) asm/ghash-sparcv8.pl $(CFLAGS) > $@
+ghash-alpha.s: asm/ghash-alpha.pl
+ $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
+# GNU make "catch all"
+ghash-%.s: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $(CFLAGS) > $@
+
files:
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO