aboutsummaryrefslogtreecommitdiff
path: root/secure/lib/libcrypto
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-09-20 21:59:47 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2018-09-20 21:59:47 +0000
commitb023ea8a2e68fc2cdfe6175e8369954bab2b45e4 (patch)
tree6967f2714035c7d3225195e950fcf09f9da3b214 /secure/lib/libcrypto
parente5631d6f60ed27d25e78caa7a0ce891bf990568b (diff)
Notes
Diffstat (limited to 'secure/lib/libcrypto')
-rw-r--r--secure/lib/libcrypto/engines/Makefile7
-rw-r--r--secure/lib/libcrypto/engines/Makefile.inc18
-rw-r--r--secure/lib/libcrypto/engines/capi/Makefile (renamed from secure/lib/libcrypto/engines/libcapi/Makefile)3
-rw-r--r--secure/lib/libcrypto/engines/lib4758cca/Makefile7
-rw-r--r--secure/lib/libcrypto/engines/lib4758cca/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libaep/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libaep/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libatalla/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libatalla/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libcapi/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libchil/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libchil/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libcswift/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libcswift/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libgost/Makefile9
-rw-r--r--secure/lib/libcrypto/engines/libgost/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libnuron/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libnuron/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libsureware/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libsureware/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/libubsec/Makefile6
-rw-r--r--secure/lib/libcrypto/engines/libubsec/Makefile.depend18
-rw-r--r--secure/lib/libcrypto/engines/padlock/Makefile14
23 files changed, 37 insertions, 243 deletions
diff --git a/secure/lib/libcrypto/engines/Makefile b/secure/lib/libcrypto/engines/Makefile
index ccf7c6c0a087..7cd9a8fa02f5 100644
--- a/secure/lib/libcrypto/engines/Makefile
+++ b/secure/lib/libcrypto/engines/Makefile
@@ -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>
diff --git a/secure/lib/libcrypto/engines/Makefile.inc b/secure/lib/libcrypto/engines/Makefile.inc
index 06800513668e..fd9e9f9bcc9f 100644
--- a/secure/lib/libcrypto/engines/Makefile.inc
+++ b/secure/lib/libcrypto/engines/Makefile.inc
@@ -1,6 +1,20 @@
# $FreeBSD$
+SHLIBDIR?= /usr/lib/engines
+
LCRYPTO_SRC= ${SRCTOP}/crypto/openssl
-.PATH: ${LCRYPTO_SRC}/engines ${LCRYPTO_SRC}/engines/ccgost
-SHLIBDIR?= /usr/lib/engines
+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
diff --git a/secure/lib/libcrypto/engines/libcapi/Makefile b/secure/lib/libcrypto/engines/capi/Makefile
index 48543abfdca1..85b509e7b633 100644
--- a/secure/lib/libcrypto/engines/libcapi/Makefile
+++ b/secure/lib/libcrypto/engines/capi/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
-SHLIB_NAME?= libcapi.so
+SHLIB_NAME?= capi.so
+
SRCS= e_capi.c
.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/lib4758cca/Makefile b/secure/lib/libcrypto/engines/lib4758cca/Makefile
deleted file mode 100644
index 3606c459bfeb..000000000000
--- a/secure/lib/libcrypto/engines/lib4758cca/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= lib4758cca.so
-SRCS= e_4758cca.c
-MAN=
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/lib4758cca/Makefile.depend b/secure/lib/libcrypto/engines/lib4758cca/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/lib4758cca/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libaep/Makefile b/secure/lib/libcrypto/engines/libaep/Makefile
deleted file mode 100644
index 66997dffffea..000000000000
--- a/secure/lib/libcrypto/engines/libaep/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libaep.so
-SRCS= e_aep.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libaep/Makefile.depend b/secure/lib/libcrypto/engines/libaep/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libaep/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libatalla/Makefile b/secure/lib/libcrypto/engines/libatalla/Makefile
deleted file mode 100644
index 6223dea79d07..000000000000
--- a/secure/lib/libcrypto/engines/libatalla/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libatalla.so
-SRCS= e_atalla.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libatalla/Makefile.depend b/secure/lib/libcrypto/engines/libatalla/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libatalla/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libcapi/Makefile.depend b/secure/lib/libcrypto/engines/libcapi/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libcapi/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libchil/Makefile b/secure/lib/libcrypto/engines/libchil/Makefile
deleted file mode 100644
index 14972c9f7763..000000000000
--- a/secure/lib/libcrypto/engines/libchil/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libchil.so
-SRCS= e_chil.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libchil/Makefile.depend b/secure/lib/libcrypto/engines/libchil/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libchil/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libcswift/Makefile b/secure/lib/libcrypto/engines/libcswift/Makefile
deleted file mode 100644
index 38b00455cb78..000000000000
--- a/secure/lib/libcrypto/engines/libcswift/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libcswift.so
-SRCS= e_cswift.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libcswift/Makefile.depend b/secure/lib/libcrypto/engines/libcswift/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libcswift/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libgost/Makefile b/secure/lib/libcrypto/engines/libgost/Makefile
deleted file mode 100644
index ca1c7164e818..000000000000
--- a/secure/lib/libcrypto/engines/libgost/Makefile
+++ /dev/null
@@ -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>
diff --git a/secure/lib/libcrypto/engines/libgost/Makefile.depend b/secure/lib/libcrypto/engines/libgost/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libgost/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libnuron/Makefile b/secure/lib/libcrypto/engines/libnuron/Makefile
deleted file mode 100644
index 82aab9b3a58b..000000000000
--- a/secure/lib/libcrypto/engines/libnuron/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libnuron.so
-SRCS= e_nuron.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libnuron/Makefile.depend b/secure/lib/libcrypto/engines/libnuron/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libnuron/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libsureware/Makefile b/secure/lib/libcrypto/engines/libsureware/Makefile
deleted file mode 100644
index 4d176ee50ca8..000000000000
--- a/secure/lib/libcrypto/engines/libsureware/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libsureware.so
-SRCS= e_sureware.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libsureware/Makefile.depend b/secure/lib/libcrypto/engines/libsureware/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libsureware/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/libubsec/Makefile b/secure/lib/libcrypto/engines/libubsec/Makefile
deleted file mode 100644
index e02efaba64fc..000000000000
--- a/secure/lib/libcrypto/engines/libubsec/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-# $FreeBSD$
-
-SHLIB_NAME?= libubsec.so
-SRCS= e_ubsec.c
-
-.include <bsd.lib.mk>
diff --git a/secure/lib/libcrypto/engines/libubsec/Makefile.depend b/secure/lib/libcrypto/engines/libubsec/Makefile.depend
deleted file mode 100644
index cdd96948933d..000000000000
--- a/secure/lib/libcrypto/engines/libubsec/Makefile.depend
+++ /dev/null
@@ -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
diff --git a/secure/lib/libcrypto/engines/padlock/Makefile b/secure/lib/libcrypto/engines/padlock/Makefile
new file mode 100644
index 000000000000..b7b72ac076aa
--- /dev/null
+++ b/secure/lib/libcrypto/engines/padlock/Makefile
@@ -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}