Merge pull request #4630 from BrzVlad/feature-valloc-limit
[mono-project.git] / mono / btls / Makefile.am
blob33bfb1f6f73e8934d5e0f8f294c3b74e001cc3b8
1 MONO_BTLS_SOURCES_FILES = \
2         btls-bio.c \
3         btls-bio.h \
4         btls-error.c \
5         btls-error.h \
6         btls-key.c \
7         btls-key.h \
8         btls-pkcs12.c \
9         btls-pkcs12.h \
10         btls-ssl.c \
11         btls-ssl-ctx.c \
12         btls-ssl-ctx.h \
13         btls-ssl.h \
14         btls-time64.c \
15         btls-util.c \
16         btls-util.h \
17         btls-x509.c \
18         btls-x509-chain.c \
19         btls-x509-chain.h \
20         btls-x509-crl.c \
21         btls-x509-crl.h \
22         btls-x509.h \
23         btls-x509-lookup.c \
24         btls-x509-lookup.h \
25         btls-x509-lookup-mono.c \
26         btls-x509-lookup-mono.h \
27         btls-x509-name.c \
28         btls-x509-name.h \
29         btls-x509-revoked.c \
30         btls-x509-revoked.h \
31         btls-x509-store.c \
32         btls-x509-store-ctx.c \
33         btls-x509-store-ctx.h \
34         btls-x509-store.h \
35         btls-x509-verify-param.c \
36         btls-x509-verify-param.h \
37         CMakeLists.txt
39 EXTRA_DIST = $(MONO_BTLS_SOURCES_FILES)
41 CMAKE_VERBOSE=$(if $(V),VERBOSE=1,)
43 CMAKE_ARGS = -D CMAKE_INSTALL_PREFIX:PATH=$(prefix) -D BTLS_ROOT:PATH=$(BTLS_ROOT) \
44         -D SRC_DIR:PATH=$(abs_top_srcdir)/mono/btls -D BTLS_CFLAGS:STRING="$(BTLS_CFLAGS)"
46 all-local: build-shared/libmono-btls-shared$(libsuffix)
48 build-shared/Makefile:
49         -mkdir -p build-shared
50         (cd build-shared && CC="$(CC)" CXX="$(CXX)" $(CMAKE) $(CMAKE_ARGS) $(BTLS_CMAKE_ARGS) -DBUILD_SHARED_LIBS=1 $(abs_top_srcdir)/mono/btls)
52 build-shared/libmono-btls-shared$(libsuffix): build-shared/Makefile $(MONO_BTLS_SOURCES_FILES)
53         $(MAKE) -C build-shared $(CMAKE_VERBOSE)
55 clean-local:
56         -rm -rf build-shared
58 install-exec-local:
59         $(mkinstalldirs) "$(DESTDIR)$(libdir)"
60         $(install_sh) build-shared/libmono-btls-shared.* "$(DESTDIR)$(libdir)"