2002-01-02 16:55:35 +00:00
|
|
|
#
|
|
|
|
# crypto/aes/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= aes
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
CPP= $(CC) -E
|
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
2005-03-30 13:05:57 +00:00
|
|
|
MAKEFILE= Makefile
|
2002-01-02 16:55:35 +00:00
|
|
|
AR= ar r
|
|
|
|
|
2010-07-09 12:21:52 +00:00
|
|
|
AES_ENC=aes_core.o aes_cbc.o
|
2004-07-18 16:19:34 +00:00
|
|
|
|
2016-02-19 21:02:41 +00:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
|
2016-03-04 14:36:07 +00:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG) $(SHARED_CFLAG)
|
2005-01-25 22:09:11 +00:00
|
|
|
AFLAGS= $(ASFLAGS)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2006-08-31 14:04:04 +00:00
|
|
|
LIBSRC=aes_core.c aes_misc.c aes_ecb.c aes_cbc.c aes_cfb.c aes_ofb.c \
|
2010-07-09 12:21:52 +00:00
|
|
|
aes_ige.c aes_wrap.c
|
2010-02-23 16:51:24 +00:00
|
|
|
LIBOBJ=aes_misc.o aes_ecb.o aes_cfb.o aes_ofb.o aes_ige.o aes_wrap.o \
|
2007-08-28 21:02:38 +00:00
|
|
|
$(AES_ENC)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2015-03-26 20:44:59 +00:00
|
|
|
HEADER= aes_locl.h
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
2014-10-18 22:47:03 +00:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2002-01-02 16:55:35 +00:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
2005-02-06 13:23:34 +00:00
|
|
|
aes-ia64.s: asm/aes-ia64.S
|
2004-07-23 23:27:10 +00:00
|
|
|
$(CC) $(CFLAGS) -E asm/aes-ia64.S > $@
|
|
|
|
|
2008-01-11 13:15:11 +00:00
|
|
|
aes-586.s: asm/aes-586.pl ../perlasm/x86asm.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aes-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) $@
|
2011-09-15 20:22:59 +00:00
|
|
|
vpaes-x86.s: asm/vpaes-x86.pl ../perlasm/x86asm.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/vpaes-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) $@
|
2009-04-27 05:55:13 +00:00
|
|
|
aesni-x86.s: asm/aesni-x86.pl ../perlasm/x86asm.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aesni-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) $@
|
2004-12-23 21:44:28 +00:00
|
|
|
|
2005-07-12 15:44:58 +00:00
|
|
|
aes-x86_64.s: asm/aes-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aes-x86_64.pl $(PERLASM_SCHEME) $@
|
2011-09-15 20:22:59 +00:00
|
|
|
vpaes-x86_64.s: asm/vpaes-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/vpaes-x86_64.pl $(PERLASM_SCHEME) $@
|
2011-10-17 17:10:54 +00:00
|
|
|
bsaes-x86_64.s: asm/bsaes-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/bsaes-x86_64.pl $(PERLASM_SCHEME) $@
|
2009-04-27 05:55:13 +00:00
|
|
|
aesni-x86_64.s: asm/aesni-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aesni-x86_64.pl $(PERLASM_SCHEME) $@
|
2011-08-23 20:51:38 +00:00
|
|
|
aesni-sha1-x86_64.s: asm/aesni-sha1-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aesni-sha1-x86_64.pl $(PERLASM_SCHEME) $@
|
2013-05-13 20:49:58 +00:00
|
|
|
aesni-sha256-x86_64.s: asm/aesni-sha256-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aesni-sha256-x86_64.pl $(PERLASM_SCHEME) $@
|
2013-10-02 22:21:10 +00:00
|
|
|
aesni-mb-x86_64.s: asm/aesni-mb-x86_64.pl
|
2016-03-07 14:07:35 +00:00
|
|
|
$(PERL) asm/aesni-mb-x86_64.pl $(PERLASM_SCHEME) $@
|
2005-07-12 15:44:58 +00:00
|
|
|
|
2016-03-08 08:46:19 +00:00
|
|
|
aes-sparcv9.S: asm/aes-sparcv9.pl
|
|
|
|
$(PERL) asm/aes-sparcv9.pl $(PERLASM_SCHEME) $@
|
|
|
|
aest4-sparcv9.S: asm/aest4-sparcv9.pl ../perlasm/sparcv9_modes.pl
|
|
|
|
$(PERL) asm/aest4-sparcv9.pl $(PERLASM_SCHEME) $@
|
2005-12-10 11:24:07 +00:00
|
|
|
|
2008-01-13 22:01:30 +00:00
|
|
|
aes-ppc.s: asm/aes-ppc.pl
|
|
|
|
$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
|
2013-11-27 21:32:56 +00:00
|
|
|
vpaes-ppc.s: asm/vpaes-ppc.pl
|
|
|
|
$(PERL) asm/vpaes-ppc.pl $(PERLASM_SCHEME) $@
|
2014-06-01 21:38:11 +00:00
|
|
|
aesp8-ppc.s: asm/aesp8-ppc.pl
|
|
|
|
$(PERL) asm/aesp8-ppc.pl $(PERLASM_SCHEME) $@
|
2008-01-13 22:01:30 +00:00
|
|
|
|
2009-12-27 20:49:40 +00:00
|
|
|
aes-parisc.s: asm/aes-parisc.pl
|
|
|
|
$(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
2011-10-19 21:49:20 +00:00
|
|
|
aes-mips.S: asm/aes-mips.pl
|
2011-06-28 12:55:39 +00:00
|
|
|
$(PERL) asm/aes-mips.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
2014-06-01 20:20:37 +00:00
|
|
|
aesv8-armx.S: asm/aesv8-armx.pl
|
|
|
|
$(PERL) asm/aesv8-armx.pl $(PERLASM_SCHEME) $@
|
|
|
|
aesv8-armx.o: aesv8-armx.S
|
2015-03-17 08:57:27 +00:00
|
|
|
vpaes-armv8.S: asm/vpaes-armv8.pl
|
|
|
|
$(PERL) asm/vpaes-armv8.pl $(PERLASM_SCHEME) $@
|
|
|
|
vpaes-armv8.o: vpaes-armv8.S
|
2014-06-01 20:20:37 +00:00
|
|
|
|
2007-04-30 09:22:27 +00:00
|
|
|
# GNU make "catch all"
|
2011-04-01 20:58:34 +00:00
|
|
|
aes-%.S: asm/aes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
aes-armv4.o: aes-armv4.S
|
2013-04-23 15:49:54 +00:00
|
|
|
bsaes-%.S: asm/bsaes-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
bsaes-armv7.o: bsaes-armv7.S
|
2007-04-30 09:22:27 +00:00
|
|
|
|
2002-01-02 16:55:35 +00:00
|
|
|
depend:
|
2016-02-18 12:17:15 +00:00
|
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
clean:
|
2005-02-06 13:23:34 +00:00
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|