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
|
|
|
|
2002-01-02 16:55:35 +00:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
2004-07-23 23:27:10 +00:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
2005-01-25 22:09:11 +00:00
|
|
|
AFLAGS= $(ASFLAGS)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
2002-01-25 07:52:25 +00:00
|
|
|
#TEST=aestest.c
|
|
|
|
TEST=
|
2002-01-02 16:55:35 +00:00
|
|
|
APPS=
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
EXHEADER= aes.h
|
|
|
|
HEADER= aes_locl.h $(EXHEADER)
|
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
|
|
|
all: lib
|
|
|
|
|
|
|
|
lib: $(LIBOBJ)
|
2011-01-26 16:08:08 +00:00
|
|
|
$(ARX) $(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
|
|
|
|
$(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
|
|
|
|
$(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
|
|
|
|
$(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
|
2008-11-12 08:19:04 +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
|
|
|
|
$(PERL) asm/vpaes-x86_64.pl $(PERLASM_SCHEME) > $@
|
2009-04-27 05:55:13 +00:00
|
|
|
aesni-x86_64.s: asm/aesni-x86_64.pl
|
|
|
|
$(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
|
|
|
|
$(PERL) asm/aesni-sha1-x86_64.pl $(PERLASM_SCHEME) > $@
|
2005-07-12 15:44:58 +00:00
|
|
|
|
2005-12-10 11:24:07 +00:00
|
|
|
aes-sparcv9.s: asm/aes-sparcv9.pl
|
|
|
|
$(PERL) asm/aes-sparcv9.pl $(CFLAGS) > $@
|
|
|
|
|
2008-01-13 22:01:30 +00:00
|
|
|
aes-ppc.s: asm/aes-ppc.pl
|
|
|
|
$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
2009-12-27 20:49:40 +00:00
|
|
|
aes-parisc.s: asm/aes-parisc.pl
|
|
|
|
$(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
2011-06-28 12:55:39 +00:00
|
|
|
aes-mips.s: asm/aes-mips.pl
|
|
|
|
$(PERL) asm/aes-mips.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
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
|
2007-04-30 09:22:27 +00:00
|
|
|
|
2002-01-02 16:55:35 +00:00
|
|
|
files:
|
2005-03-30 13:05:57 +00:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
links:
|
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
|
2002-02-20 11:43:40 +00:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
|
2002-01-02 16:55:35 +00:00
|
|
|
@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
|
|
|
|
|
2005-05-16 16:55:47 +00:00
|
|
|
install:
|
2005-05-15 22:23:26 +00:00
|
|
|
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
|
2004-11-02 23:55:01 +00:00
|
|
|
@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
|
2002-01-02 16:55:35 +00:00
|
|
|
do \
|
|
|
|
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
|
|
|
|
chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
|
|
|
|
done;
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
2005-05-16 16:55:47 +00:00
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
2002-10-09 13:25:12 +00:00
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
2002-01-02 16:55:35 +00:00
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2011-02-21 17:51:59 +00:00
|
|
|
aes_cbc.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
|
|
|
|
aes_cbc.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
|
|
|
|
aes_cbc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
aes_cbc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
aes_cbc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
|
|
aes_cbc.o: aes_cbc.c
|
|
|
|
aes_cfb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
|
|
|
|
aes_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
|
|
|
|
aes_cfb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
aes_cfb.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
aes_cfb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
|
|
aes_cfb.o: aes_cfb.c
|
|
|
|
aes_core.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
|
|
|
|
aes_core.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
|
|
|
aes_core.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
aes_core.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
aes_core.o: ../../include/openssl/symhacks.h aes_core.c aes_locl.h
|
|
|
|
aes_ecb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
|
|
|
|
aes_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
|
|
|
|
aes_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
aes_ecb.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
aes_ecb.o: ../../include/openssl/symhacks.h aes_ecb.c aes_locl.h
|
2006-11-30 13:41:47 +00:00
|
|
|
aes_ige.o: ../../e_os.h ../../include/openssl/aes.h ../../include/openssl/bio.h
|
|
|
|
aes_ige.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
|
|
|
aes_ige.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|
|
|
aes_ige.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
|
|
|
|
aes_ige.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
aes_ige.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
aes_ige.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_ige.c aes_locl.h
|
2005-05-16 16:55:47 +00:00
|
|
|
aes_misc.o: ../../include/openssl/aes.h ../../include/openssl/e_os2.h
|
|
|
|
aes_misc.o: ../../include/openssl/opensslconf.h
|
|
|
|
aes_misc.o: ../../include/openssl/opensslv.h aes_locl.h aes_misc.c
|
2011-02-21 17:51:59 +00:00
|
|
|
aes_ofb.o: ../../include/openssl/aes.h ../../include/openssl/crypto.h
|
|
|
|
aes_ofb.o: ../../include/openssl/e_os2.h ../../include/openssl/modes.h
|
|
|
|
aes_ofb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
aes_ofb.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
aes_ofb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
|
|
aes_ofb.o: aes_ofb.c
|
2008-03-22 18:52:03 +00:00
|
|
|
aes_wrap.o: ../../e_os.h ../../include/openssl/aes.h
|
|
|
|
aes_wrap.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
|
|
|
|
aes_wrap.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
aes_wrap.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
|
|
|
|
aes_wrap.o: ../../include/openssl/opensslconf.h
|
|
|
|
aes_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
aes_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
aes_wrap.o: ../../include/openssl/symhacks.h ../cryptlib.h aes_wrap.c
|