2014-07-10 13:21:51 +02:00
|
|
|
include $(top_srcdir)/Makefile.am.common
|
|
|
|
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libcrypto.la
|
|
|
|
|
|
|
|
libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la
|
|
|
|
libcrypto_la_LDFLAGS = -version-info libcrypto-version
|
|
|
|
libcrypto_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) -DOPENSSL_NO_HW_PADLOCK
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
|
|
|
|
|
|
|
|
# compatibility functions that need to be built without optimizations
|
|
|
|
libcompatnoopt_la_CFLAGS = -O0
|
|
|
|
libcompatnoopt_la_SOURCES = compat/explicit_bzero.c
|
|
|
|
|
|
|
|
# other compatibility functions
|
|
|
|
libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
|
|
|
|
libcompat_la_SOURCES =
|
2014-07-12 10:34:08 +02:00
|
|
|
libcompat_la_LIBADD = $(PLATFORM_LDADD)
|
2014-07-10 13:21:51 +02:00
|
|
|
|
|
|
|
if NO_STRLCAT
|
|
|
|
libcompat_la_SOURCES += compat/strlcat.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_STRLCPY
|
|
|
|
libcompat_la_SOURCES += compat/strlcpy.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_REALLOCARRAY
|
|
|
|
libcompat_la_SOURCES += compat/reallocarray.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_TIMINGSAFE_MEMCMP
|
|
|
|
libcompat_la_SOURCES += compat/timingsafe_memcmp.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_TIMINGSAFE_BCMP
|
|
|
|
libcompat_la_SOURCES += compat/timingsafe_bcmp.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_ARC4RANDOM_BUF
|
|
|
|
libcompat_la_SOURCES += compat/arc4random.c
|
|
|
|
|
|
|
|
if NO_GETENTROPY
|
2014-07-18 04:20:34 +02:00
|
|
|
if HOST_LINUX
|
2014-07-10 13:21:51 +02:00
|
|
|
libcompat_la_SOURCES += compat/getentropy_linux.c
|
|
|
|
endif
|
2014-07-18 04:20:34 +02:00
|
|
|
if HOST_DARWIN
|
2014-07-10 13:21:51 +02:00
|
|
|
libcompat_la_SOURCES += compat/getentropy_osx.c
|
|
|
|
endif
|
2014-07-18 04:20:34 +02:00
|
|
|
if HOST_SOLARIS
|
2014-07-10 13:21:51 +02:00
|
|
|
libcompat_la_SOURCES += compat/getentropy_solaris.c
|
|
|
|
endif
|
2014-07-18 04:20:34 +02:00
|
|
|
if HOST_WIN
|
|
|
|
libcompat_la_SOURCES += compat/getentropy_win.c
|
|
|
|
endif
|
2014-07-10 13:21:51 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if NO_ISSETUGID
|
2014-07-18 04:20:34 +02:00
|
|
|
if HOST_LINUX
|
2014-07-10 13:21:51 +02:00
|
|
|
libcompat_la_SOURCES += compat/issetugid_linux.c
|
|
|
|
endif
|
2014-07-18 04:20:34 +02:00
|
|
|
endif
|
2014-07-10 13:21:51 +02:00
|
|
|
|
|
|
|
noinst_HEADERS = des/ncbc_enc.c
|
2014-07-10 16:36:47 +02:00
|
|
|
noinst_HEADERS += compat/thread_private.h
|
2014-07-18 06:58:46 +02:00
|
|
|
noinst_HEADERS += compat/arc4random.h
|
|
|
|
noinst_HEADERS += compat/arc4random_linux.h
|
|
|
|
noinst_HEADERS += compat/arc4random_osx.h
|
|
|
|
noinst_HEADERS += compat/arc4random_solaris.h
|
|
|
|
noinst_HEADERS += compat/arc4random_win.h
|
2014-07-10 16:36:47 +02:00
|
|
|
noinst_HEADERS += compat/chacha_private.h
|
2014-07-10 13:21:51 +02:00
|
|
|
libcrypto_la_SOURCES =
|
|
|
|
EXTRA_libcrypto_la_SOURCES =
|