Connect engines to the build.
This commit is contained in:
parent
e5631d6f60
commit
b023ea8a2e
@ -1,6 +1,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
#SUBDIR= lib4758cca libaep libatalla libcapi libchil libcswift libgost \
|
||||
# libnuron libsureware libubsec
|
||||
SUBDIR= capi
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||
SUBDIR+= padlock
|
||||
.endif
|
||||
SUBDIR_PARALLEL=
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,6 +1,20 @@
|
||||
# $FreeBSD$
|
||||
|
||||
LCRYPTO_SRC= ${SRCTOP}/crypto/openssl
|
||||
.PATH: ${LCRYPTO_SRC}/engines ${LCRYPTO_SRC}/engines/ccgost
|
||||
|
||||
SHLIBDIR?= /usr/lib/engines
|
||||
|
||||
LCRYPTO_SRC= ${SRCTOP}/crypto/openssl
|
||||
|
||||
CFLAGS+= -I${LCRYPTO_SRC}/engines
|
||||
CFLAGS+= -I${LCRYPTO_SRC}/include
|
||||
CFLAGS+= -I${OBJTOP}/secure/lib/libcrypto
|
||||
|
||||
.include <bsd.endian.mk>
|
||||
|
||||
.if ${TARGET_ENDIANNESS} == 1234
|
||||
CFLAGS+= -DL_ENDIAN
|
||||
.elif ${TARGET_ENDIANNESS} == 4321
|
||||
CFLAGS+= -DB_ENDIAN
|
||||
.endif
|
||||
CFLAGS+= -DNDEBUG
|
||||
|
||||
.PATH: ${LCRYPTO_SRC}/engines
|
||||
|
@ -1,6 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libcapi.so
|
||||
SHLIB_NAME?= capi.so
|
||||
|
||||
SRCS= e_capi.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,7 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= lib4758cca.so
|
||||
SRCS= e_4758cca.c
|
||||
MAN=
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libaep.so
|
||||
SRCS= e_aep.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libatalla.so
|
||||
SRCS= e_atalla.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libchil.so
|
||||
SRCS= e_chil.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libcswift.so
|
||||
SRCS= e_cswift.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,9 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libgost.so
|
||||
SRCS= e_gost_err.c gost2001.c gost2001_keyx.c gost89.c gost94_keyx.c \
|
||||
gost_ameth.c gost_asn1.c gost_crypt.c gost_ctl.c gost_eng.c \
|
||||
gost_keywrap.c gost_md.c gost_params.c gost_pmeth.c gost_sign.c \
|
||||
gosthash.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libnuron.so
|
||||
SRCS= e_nuron.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libsureware.so
|
||||
SRCS= e_sureware.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
@ -1,6 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= libubsec.so
|
||||
SRCS= e_ubsec.c
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,18 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# Autogenerated - do NOT edit!
|
||||
|
||||
DIRDEPS = \
|
||||
gnu/lib/csu \
|
||||
include \
|
||||
include/xlocale \
|
||||
lib/${CSU_DIR} \
|
||||
lib/libc \
|
||||
lib/libcompiler_rt \
|
||||
secure/lib/libcrypto \
|
||||
|
||||
|
||||
.include <dirdeps.mk>
|
||||
|
||||
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
|
||||
# local dependencies - needed for -jN in clean tree
|
||||
.endif
|
14
secure/lib/libcrypto/engines/padlock/Makefile
Normal file
14
secure/lib/libcrypto/engines/padlock/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
# $FreeBSD$
|
||||
|
||||
SHLIB_NAME?= padlock.so
|
||||
|
||||
SRCS= e_padlock.c
|
||||
.if ${MACHINE_CPUARCH} == "amd64"
|
||||
SRCS+= e_padlock-x86_64.S
|
||||
.elif ${MACHINE_CPUARCH} == "i386"
|
||||
SRCS+= e_padlock-x86.S
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.PATH: ${.CURDIR:H:H}/${MACHINE_CPUARCH}
|
Loading…
Reference in New Issue
Block a user