diff options
Diffstat (limited to 'crypto/Makefile.am.tpl')
-rw-r--r-- | crypto/Makefile.am.tpl | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl new file mode 100644 index 0000000..6f94fdf --- /dev/null +++ b/crypto/Makefile.am.tpl | |||
@@ -0,0 +1,69 @@ | |||
1 | include $(top_srcdir)/Makefile.am.common | ||
2 | |||
3 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1 | ||
4 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp | ||
5 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes | ||
6 | |||
7 | lib_LTLIBRARIES = libcrypto.la | ||
8 | |||
9 | libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la | ||
10 | libcrypto_la_LDFLAGS = -version-info libcrypto-version | ||
11 | libcrypto_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) -DOPENSSL_NO_HW_PADLOCK | ||
12 | |||
13 | noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la | ||
14 | |||
15 | # compatibility functions that need to be built without optimizations | ||
16 | libcompatnoopt_la_CFLAGS = -O0 | ||
17 | libcompatnoopt_la_SOURCES = compat/explicit_bzero.c | ||
18 | |||
19 | # other compatibility functions | ||
20 | libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) | ||
21 | libcompat_la_SOURCES = | ||
22 | |||
23 | if NO_STRLCAT | ||
24 | libcompat_la_SOURCES += compat/strlcat.c | ||
25 | endif | ||
26 | |||
27 | if NO_STRLCPY | ||
28 | libcompat_la_SOURCES += compat/strlcpy.c | ||
29 | endif | ||
30 | |||
31 | if NO_REALLOCARRAY | ||
32 | libcompat_la_SOURCES += compat/reallocarray.c | ||
33 | endif | ||
34 | |||
35 | if NO_TIMINGSAFE_MEMCMP | ||
36 | libcompat_la_SOURCES += compat/timingsafe_memcmp.c | ||
37 | endif | ||
38 | |||
39 | if NO_TIMINGSAFE_BCMP | ||
40 | libcompat_la_SOURCES += compat/timingsafe_bcmp.c | ||
41 | endif | ||
42 | |||
43 | if NO_ARC4RANDOM_BUF | ||
44 | libcompat_la_SOURCES += compat/arc4random.c | ||
45 | |||
46 | if NO_GETENTROPY | ||
47 | if TARGET_LINUX | ||
48 | libcompat_la_SOURCES += compat/getentropy_linux.c | ||
49 | endif | ||
50 | if TARGET_DARWIN | ||
51 | libcompat_la_SOURCES += compat/getentropy_osx.c | ||
52 | endif | ||
53 | if TARGET_SOLARIS | ||
54 | libcompat_la_SOURCES += compat/getentropy_solaris.c | ||
55 | endif | ||
56 | endif | ||
57 | |||
58 | endif | ||
59 | |||
60 | if NO_ISSETUGID | ||
61 | libcompat_la_SOURCES += compat/issetugid_linux.c | ||
62 | endif | ||
63 | if NO_STRTONUM | ||
64 | libcompat_la_SOURCES += compat/strtonum.c | ||
65 | endif | ||
66 | |||
67 | noinst_HEADERS = des/ncbc_enc.c | ||
68 | libcrypto_la_SOURCES = | ||
69 | EXTRA_libcrypto_la_SOURCES = | ||