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