diff options
author | Brent Cook <busterb@gmail.com> | 2015-05-02 01:40:33 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-05-23 19:27:57 -0500 |
commit | 769d58e4946b35976c4da2ab54c56f6430a45d89 (patch) | |
tree | 5ff27229f208de7077c9e8f9894c32a1ef8f6f1f /libtls-standalone/compat | |
parent | d3771a41cb106c945e0f538073d0a6e7b35d145b (diff) | |
download | portable-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.am | 45 |
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 | |||
16 | AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src | ||
17 | |||
18 | noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la | ||
19 | |||
20 | # compatibility functions that need to be built without optimizations | ||
21 | libcompatnoopt_la_CFLAGS = -O0 | ||
22 | libcompatnoopt_la_SOURCES = | ||
23 | |||
24 | if !HAVE_EXPLICIT_BZERO | ||
25 | libcompatnoopt_la_SOURCES += explicit_bzero.c | ||
26 | endif | ||
27 | |||
28 | # other compatibility functions | ||
29 | libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) | ||
30 | libcompat_la_SOURCES = | ||
31 | libcompat_la_LIBADD = $(PLATFORM_LDADD) | ||
32 | |||
33 | if !HAVE_ASPRINTF | ||
34 | libcompat_la_SOURCES += bsd-asprintf.c | ||
35 | endif | ||
36 | |||
37 | if !HAVE_STRLCPY | ||
38 | libcompat_la_SOURCES += strlcpy.c | ||
39 | endif | ||
40 | |||
41 | if !HAVE_STRSEP | ||
42 | libcompat_la_SOURCES += strsep.c | ||
43 | endif | ||
44 | |||
45 | include Makefile.am.arc4random | ||