1998-12-21 10:52:47 +00:00
|
|
|
#
|
2006-02-04 01:45:59 +00:00
|
|
|
# OpenSSL/crypto/sha/Makefile
|
1998-12-21 10:52:47 +00:00
|
|
|
#
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
DIR= sha
|
|
|
|
TOP= ../..
|
|
|
|
CC= cc
|
2000-03-20 18:16:52 +00:00
|
|
|
CPP= $(CC) -E
|
1998-12-21 10:52:47 +00:00
|
|
|
INCLUDES=
|
|
|
|
CFLAG=-g
|
2005-03-30 13:05:57 +00:00
|
|
|
MAKEFILE= Makefile
|
1998-12-21 10:56:39 +00:00
|
|
|
AR= ar r
|
|
|
|
|
|
|
|
SHA1_ASM_OBJ=
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
2003-11-16 14:38:34 +00:00
|
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
2004-08-29 21:36:37 +00:00
|
|
|
AFLAGS= $(ASFLAGS)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
GENERAL=Makefile
|
|
|
|
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
2015-01-27 17:34:45 +00:00
|
|
|
LIBSRC=sha1dgst.c sha1_one.c sha256.c sha512.c
|
|
|
|
LIBOBJ=sha1dgst.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
|
2015-03-26 20:44:59 +00:00
|
|
|
HEADER= sha_locl.h
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
|
|
|
|
top:
|
|
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
all: lib
|
1998-12-21 10:52:47 +00:00
|
|
|
|
1998-12-21 10:56:39 +00:00
|
|
|
lib: $(LIBOBJ)
|
2014-10-18 22:47:03 +00:00
|
|
|
$(AR) $(LIB) $(LIBOBJ)
|
2001-03-09 14:01:42 +00:00
|
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
1998-12-21 10:52:47 +00:00
|
|
|
@touch lib
|
|
|
|
|
2008-01-11 13:15:11 +00:00
|
|
|
sha1-586.s: asm/sha1-586.pl ../perlasm/x86asm.pl
|
|
|
|
$(PERL) asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
|
|
|
sha256-586.s: asm/sha256-586.pl ../perlasm/x86asm.pl
|
|
|
|
$(PERL) asm/sha256-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
|
|
|
sha512-586.s: asm/sha512-586.pl ../perlasm/x86asm.pl
|
|
|
|
$(PERL) asm/sha512-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
2007-12-18 17:33:49 +00:00
|
|
|
|
2005-02-06 13:23:34 +00:00
|
|
|
sha1-ia64.s: asm/sha1-ia64.pl
|
2008-10-06 10:34:49 +00:00
|
|
|
(cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS))
|
2005-02-06 13:23:34 +00:00
|
|
|
sha256-ia64.s: asm/sha512-ia64.pl
|
2004-11-26 15:12:17 +00:00
|
|
|
(cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
|
2005-02-06 13:23:34 +00:00
|
|
|
sha512-ia64.s: asm/sha512-ia64.pl
|
2004-11-26 15:12:17 +00:00
|
|
|
(cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS))
|
2004-07-23 23:27:10 +00:00
|
|
|
|
2011-04-01 20:58:34 +00:00
|
|
|
sha256-armv4.S: asm/sha256-armv4.pl
|
|
|
|
$(PERL) $< $(PERLASM_SCHEME) $@
|
2007-09-27 07:09:46 +00:00
|
|
|
|
2012-06-03 22:00:21 +00:00
|
|
|
sha1-alpha.s: asm/sha1-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/sha1-alpha.pl > $$preproc && \
|
2014-09-20 08:18:19 +00:00
|
|
|
$(CC) -E -P $$preproc > $@ && rm $$preproc)
|
2010-04-10 13:43:26 +00:00
|
|
|
|
2007-04-30 09:22:27 +00:00
|
|
|
# Solaris make has to be explicitly told
|
2008-11-12 08:19:04 +00:00
|
|
|
sha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@
|
2013-10-02 22:21:10 +00:00
|
|
|
sha1-mb-x86_64.s: asm/sha1-mb-x86_64.pl; $(PERL) asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME) > $@
|
2008-11-12 08:19:04 +00:00
|
|
|
sha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
|
2013-10-02 22:21:10 +00:00
|
|
|
sha256-mb-x86_64.s: asm/sha256-mb-x86_64.pl; $(PERL) asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME) > $@
|
2008-11-12 08:19:04 +00:00
|
|
|
sha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@
|
2012-09-28 09:35:39 +00:00
|
|
|
sha1-sparcv9.S: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
|
|
|
|
sha256-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
|
|
|
|
sha512-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
|
2007-04-30 09:22:27 +00:00
|
|
|
|
2008-01-13 22:01:30 +00:00
|
|
|
sha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
|
2014-07-01 17:07:49 +00:00
|
|
|
sha256p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha512p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@
|
2008-01-13 22:01:30 +00:00
|
|
|
|
2009-12-27 21:05:19 +00:00
|
|
|
sha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@
|
|
|
|
|
2011-10-19 21:49:20 +00:00
|
|
|
sha1-mips.S: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha256-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
|
|
|
|
sha512-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@
|
2010-10-02 11:47:17 +00:00
|
|
|
|
2007-04-30 09:22:27 +00:00
|
|
|
# GNU make "catch all"
|
2011-04-01 20:58:34 +00:00
|
|
|
sha1-%.S: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
sha256-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
sha512-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
|
|
|
|
|
|
sha1-armv4-large.o: sha1-armv4-large.S
|
|
|
|
sha256-armv4.o: sha256-armv4.S
|
|
|
|
sha512-armv4.o: sha512-armv4.S
|
2014-06-01 16:03:51 +00:00
|
|
|
sha1-armv8.o: sha1-armv8.S
|
|
|
|
sha256-armv8.o: sha256-armv8.S
|
|
|
|
sha512-armv8.o: sha512-armv8.S
|
2006-05-01 13:35:03 +00:00
|
|
|
|
1998-12-21 10:52:47 +00:00
|
|
|
files:
|
2005-03-30 13:05:57 +00:00
|
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
depend:
|
2016-02-18 12:17:15 +00:00
|
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
clean:
|
2005-02-06 13:23:34 +00:00
|
|
|
rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
1998-12-21 10:52:47 +00:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|