mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
73d2fb66ef
This gets rid of the BEGINRAW..ENDRAW sections in crypto/ec/build.info. This also moves the assembler generating perl scripts to take the output file name as last command line argument, where necessary. Reviewed-by: Andy Polyakov <appro@openssl.org>
77 lines
2.1 KiB
Makefile
77 lines
2.1 KiB
Makefile
#
|
|
# crypto/ec/Makefile
|
|
#
|
|
|
|
DIR= ec
|
|
TOP= ../..
|
|
CC= cc
|
|
INCLUDES= -I.. -I$(TOP) -I../include -I../../include
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
AR= ar r
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
|
|
ASFLAGS= $(INCLUDES) $(ASFLAG)
|
|
AFLAGS= $(ASFLAGS)
|
|
|
|
GENERAL=Makefile
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c\
|
|
ec_err.c ec_curve.c ec_check.c ec_print.c ec_asn1.c ec_key.c\
|
|
ec2_smpl.c ec2_mult.c ec_ameth.c ec_pmeth.c eck_prn.c \
|
|
ecp_nistp224.c ecp_nistp256.c ecp_nistp521.c ecp_nistputil.c \
|
|
ecp_oct.c ec2_oct.c ec_oct.c ec_kmeth.c ecdh_ossl.c ecdh_kdf.c \
|
|
ecdsa_ossl.c ecdsa_sign.c ecdsa_vrf.c ec_25519.c curve25519.c
|
|
|
|
LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_nist.o ec_cvt.o ec_mult.o\
|
|
ec_err.o ec_curve.o ec_check.o ec_print.o ec_asn1.o ec_key.o\
|
|
ec2_smpl.o ec2_mult.o ec_ameth.o ec_pmeth.o eck_prn.o \
|
|
ecp_nistp224.o ecp_nistp256.o ecp_nistp521.o ecp_nistputil.o \
|
|
ecp_oct.o ec2_oct.o ec_oct.o ec_kmeth.o ecdh_ossl.o ecdh_kdf.o \
|
|
ecdsa_ossl.o ecdsa_sign.o ecdsa_vrf.o ec_25519.o curve25519.o \
|
|
$(EC_ASM)
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
HEADER= ec_lcl.h
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
top:
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
all: lib
|
|
|
|
lib: $(LIBOBJ)
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
@touch lib
|
|
|
|
ecp_nistz256-x86.s: asm/ecp_nistz256-x86.pl
|
|
$(PERL) asm/ecp_nistz256-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) $@
|
|
|
|
ecp_nistz256-x86_64.s: asm/ecp_nistz256-x86_64.pl
|
|
$(PERL) asm/ecp_nistz256-x86_64.pl $(PERLASM_SCHEME) $@
|
|
|
|
ecp_nistz256-avx2.s: asm/ecp_nistz256-avx2.pl
|
|
$(PERL) asm/ecp_nistz256-avx2.pl $(PERLASM_SCHEME) $@
|
|
|
|
ecp_nistz256-sparcv9.S: asm/ecp_nistz256-sparcv9.pl
|
|
$(PERL) asm/ecp_nistz256-sparcv9.pl $(PERLASM_SCHEME) $@
|
|
|
|
ecp_nistz256-%.S: asm/ecp_nistz256-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
|
|
ecp_nistz256-armv4.o: ecp_nistz256-armv4.S
|
|
ecp_nistz256-armv8.o: ecp_nistz256-armv8.S
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
depend:
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
|
|
|
|
clean:
|
|
rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|