2008-12-16 08:39:21 +00:00
|
|
|
#
|
|
|
|
# OpenSSL/crypto/modes/Makefile
|
|
|
|
#
|
|
|
|
|
|
|
|
DIR= modes
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
|
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
|
|
|
CFLAG=-g
|
|
|
|
MAKEFILE= Makefile
|
|
|
|
AR= ar r
|
|
|
|
|
2010-04-22 21:36:26 +00:00
|
|
|
MODES_ASM_OBJ=
|
|
|
|
|
2008-12-16 08:39:21 +00:00
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
2010-04-22 21:36:26 +00:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
|
|
AFLAGS= $(ASFLAGS)
|
2008-12-16 08:39:21 +00:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2011-04-18 13:15:37 +00:00
|
|
|
LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
|
2014-12-06 20:53:35 +00:00
|
|
|
ccm128.c xts128.c wrap128.c ocb128.c
|
2010-04-22 21:36:26 +00:00
|
|
|
LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
|
2014-12-06 20:53:35 +00:00
|
|
|
ccm128.o xts128.o wrap128.o ocb128.o $(MODES_ASM_OBJ)
|
2008-12-16 08:39:21 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2015-03-26 20:44:59 +00:00
|
|
|
HEADER= modes_lcl.h
|
2008-12-16 08:39:21 +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)
|
2008-12-16 08:39:21 +00:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
|
|
@touch lib
|
|
|
|
|
2010-09-05 19:49:54 +00:00
|
|
|
ghash-ia64.s: asm/ghash-ia64.pl
|
2010-04-22 21:36:26 +00:00
|
|
|
$(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) > $@
|
2013-03-29 19:45:33 +00:00
|
|
|
aesni-gcm-x86_64.s: asm/aesni-gcm-x86_64.pl
|
|
|
|
$(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
|
2010-04-22 21:36:26 +00:00
|
|
|
ghash-sparcv9.s: asm/ghash-sparcv9.pl
|
2010-07-02 08:09:30 +00:00
|
|
|
$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
|
2010-04-22 21:36:26 +00:00
|
|
|
ghash-alpha.s: asm/ghash-alpha.pl
|
2014-09-20 08:18:19 +00:00
|
|
|
(preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
|
2013-11-12 20:49:15 +00:00
|
|
|
$(PERL) asm/ghash-alpha.pl > $$preproc && \
|
2014-09-20 08:18:19 +00:00
|
|
|
$(CC) -E -P $$preproc > $@ && rm $$preproc)
|
2010-04-28 18:51:45 +00:00
|
|
|
ghash-parisc.s: asm/ghash-parisc.pl
|
2010-08-21 11:20:25 +00:00
|
|
|
$(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
|
2014-06-06 18:48:35 +00:00
|
|
|
ghashv8-armx.S: asm/ghashv8-armx.pl
|
|
|
|
$(PERL) asm/ghashv8-armx.pl $(PERLASM_SCHEME) $@
|
2014-07-20 12:16:31 +00:00
|
|
|
ghashp8-ppc.s: asm/ghashp8-ppc.pl
|
|
|
|
$(PERL) asm/ghashp8-ppc.pl $(PERLASM_SCHEME) $@
|
2010-07-08 15:03:42 +00:00
|
|
|
|
2010-04-22 21:36:26 +00:00
|
|
|
# GNU make "catch all"
|
2011-04-01 20:58:34 +00:00
|
|
|
ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
|
|
|
|
ghash-armv4.o: ghash-armv4.S
|
2014-06-06 18:48:35 +00:00
|
|
|
ghashv8-armx.o: ghashv8-armx.S
|
2010-04-22 21:36:26 +00:00
|
|
|
|
2008-12-16 08:39:21 +00:00
|
|
|
files:
|
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags $(SRC)
|
|
|
|
|
|
|
|
tests:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
|
|
|
|
|
|
|
depend:
|
|
|
|
@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
|
|
|
|
$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
|
|
|
|
|
|
|
|
dclean:
|
|
|
|
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
|
|
|
mv -f Makefile.new $(MAKEFILE)
|
|
|
|
|
|
|
|
clean:
|
2010-07-26 21:53:01 +00:00
|
|
|
rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
2008-12-16 08:39:21 +00:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
2011-02-21 17:51:59 +00:00
|
|
|
cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
|
2011-09-05 09:46:15 +00:00
|
|
|
ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
|
2011-02-21 17:51:59 +00:00
|
|
|
cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
|
2011-02-21 17:51:59 +00:00
|
|
|
ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
|
2011-02-21 17:51:59 +00:00
|
|
|
cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
|
2011-02-03 10:17:53 +00:00
|
|
|
gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
2011-09-05 09:46:15 +00:00
|
|
|
gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
|
2014-12-06 20:53:35 +00:00
|
|
|
ocb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
ocb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
ocb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
ocb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
|
|
|
ocb128.o: ../../include/openssl/symhacks.h modes_lcl.h ocb128.c
|
2011-02-21 17:51:59 +00:00
|
|
|
ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
|
2014-02-19 20:09:08 +00:00
|
|
|
wrap128.o: ../../e_os.h ../../include/openssl/bio.h
|
|
|
|
wrap128.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
|
|
|
wrap128.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
|
|
|
wrap128.o: ../../include/openssl/lhash.h ../../include/openssl/modes.h
|
|
|
|
wrap128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
|
|
|
wrap128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
|
|
|
|
wrap128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
|
|
|
wrap128.o: ../cryptlib.h wrap128.c
|
2011-09-05 09:46:15 +00:00
|
|
|
xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
|
|
|
|
xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
|
|
|
|
xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
|
|
|
|
xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
|
2013-02-21 18:17:38 +00:00
|
|
|
xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c
|