aboutsummaryrefslogtreecommitdiff
path: root/libtls-standalone/compat
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2015-05-02 01:40:33 -0500
committerBrent Cook <busterb@gmail.com>2015-05-23 19:27:57 -0500
commit769d58e4946b35976c4da2ab54c56f6430a45d89 (patch)
tree5ff27229f208de7077c9e8f9894c32a1ef8f6f1f /libtls-standalone/compat
parentd3771a41cb106c945e0f538073d0a6e7b35d145b (diff)
downloadportable-769d58e4946b35976c4da2ab54c56f6430a45d89.tar.gz
portable-769d58e4946b35976c4da2ab54c56f6430a45d89.tar.bz2
portable-769d58e4946b35976c4da2ab54c56f6430a45d89.zip
further refactoring, working libtls-standalone
Diffstat (limited to 'libtls-standalone/compat')
-rw-r--r--libtls-standalone/compat/Makefile.am45
1 files changed, 45 insertions, 0 deletions
diff --git a/libtls-standalone/compat/Makefile.am b/libtls-standalone/compat/Makefile.am
new file mode 100644
index 0000000..e1ec939
--- /dev/null
+++ b/libtls-standalone/compat/Makefile.am
@@ -0,0 +1,45 @@
1#
2# Copyright (c) 2014-2015 Brent Cook
3#
4# Permission to use, copy, modify, and distribute this software for any
5# purpose with or without fee is hereby granted, provided that the above
6# copyright notice and this permission notice appear in all copies.
7#
8# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
16AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
17
18noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
19
20# compatibility functions that need to be built without optimizations
21libcompatnoopt_la_CFLAGS = -O0
22libcompatnoopt_la_SOURCES =
23
24if !HAVE_EXPLICIT_BZERO
25libcompatnoopt_la_SOURCES += explicit_bzero.c
26endif
27
28# other compatibility functions
29libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
30libcompat_la_SOURCES =
31libcompat_la_LIBADD = $(PLATFORM_LDADD)
32
33if !HAVE_ASPRINTF
34libcompat_la_SOURCES += bsd-asprintf.c
35endif
36
37if !HAVE_STRLCPY
38libcompat_la_SOURCES += strlcpy.c
39endif
40
41if !HAVE_STRSEP
42libcompat_la_SOURCES += strsep.c
43endif
44
45include Makefile.am.arc4random