aboutsummaryrefslogtreecommitdiff
path: root/tls
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2014-07-10 22:06:10 -0500
committerBrent Cook <bcook@openbsd.org>2015-07-21 12:08:18 -0500
commit5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 (patch)
tree286f7d12e3647f94bd1e6e8e180a4bf6215a0740 /tls
parent7a4a37cf596697ae96eeb1c555989e6d1a443187 (diff)
downloadportable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.gz
portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.bz2
portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.zip
add initial CMake and Visual Studio build support
This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore.
Diffstat (limited to 'tls')
-rw-r--r--tls/CMakeLists.txt22
-rw-r--r--tls/Makefile.am1
2 files changed, 23 insertions, 0 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt
new file mode 100644
index 0000000..3e61844
--- /dev/null
+++ b/tls/CMakeLists.txt
@@ -0,0 +1,22 @@
1include_directories(
2 .
3 ../include
4 ../include/compat
5)
6
7set(
8 TLS_SRC
9 tls.c
10 tls_client.c
11 tls_config.c
12 tls_server.c
13 tls_util.c
14 tls_verify.c
15)
16
17
18if(NOT HAVE_STRCASECMP)
19 set(TLS_SRC ${TLS_SRC} strsep.c)
20endif()
21
22add_library(tls ${TLS_SRC})
diff --git a/tls/Makefile.am b/tls/Makefile.am
index e8c4713..82ec211 100644
--- a/tls/Makefile.am
+++ b/tls/Makefile.am
@@ -3,6 +3,7 @@ include $(top_srcdir)/Makefile.am.common
3lib_LTLIBRARIES = libtls.la 3lib_LTLIBRARIES = libtls.la
4 4
5EXTRA_DIST = VERSION 5EXTRA_DIST = VERSION
6EXTRA_DIST += CMakeLists.txt
6 7
7libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined 8libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined
8libtls_la_LIBADD = ../crypto/libcrypto.la ../ssl/libssl.la $(PLATFORM_LDADD) 9libtls_la_LIBADD = ../crypto/libcrypto.la ../ssl/libssl.la $(PLATFORM_LDADD)