Merge pull request #3684 from lambdageek/dev-monoerror-poolbox
[mono.git] / mono / btls / Makefile.am
1 BTLS_STATIC_LIST = build-static/mono-btls-static-lo.txt
2 BTLS_SHARED_LIST = build-shared/mono-btls-shared-lo.txt
3
4 EXTRA_DIST = btls-android-utils.c \
5         btls-bio.c \
6         btls-bio.h \
7         btls-error.c \
8         btls-error.h \
9         btls-key.c \
10         btls-key.h \
11         btls-pkcs12.c \
12         btls-pkcs12.h \
13         btls-ssl.c \
14         btls-ssl-ctx.c \
15         btls-ssl-ctx.h \
16         btls-ssl.h \
17         btls-util.c \
18         btls-util.h \
19         btls-x509.c \
20         btls-x509-chain.c \
21         btls-x509-chain.h \
22         btls-x509-crl.c \
23         btls-x509-crl.h \
24         btls-x509.h \
25         btls-x509-lookup.c \
26         btls-x509-lookup.h \
27         btls-x509-lookup-mono.c \
28         btls-x509-lookup-mono.h \
29         btls-x509-name.c \
30         btls-x509-name.h \
31         btls-x509-revoked.c \
32         btls-x509-revoked.h \
33         btls-x509-store.c \
34         btls-x509-store-ctx.c \
35         btls-x509-store-ctx.h \
36         btls-x509-store.h \
37         btls-x509-verify-param.c \
38         btls-x509-verify-param.h \
39         CMakeLists.txt \
40         create-object-library.sh
41
42 CMAKE_VERBOSE=$(if $(V),VERBOSE=1,)
43
44 CMAKE_ARGS = -D CMAKE_INSTALL_PREFIX:PATH=$(prefix) -D BTLS_ROOT:PATH=$(BTLS_ROOT) \
45         -D SRC_DIR:PATH=$(abs_top_srcdir)/mono/btls -D BTLS_CFLAGS:STRING="$(BTLS_CFLAGS)"
46
47 all-local: $(BTLS_STATIC_LIST) $(BTLS_SHARED_LIST)
48
49 build-shared/Makefile:
50         -mkdir -p build-shared
51         (cd build-shared && $(CMAKE) $(CMAKE_ARGS) $(BTLS_CMAKE_ARGS) -DBUILD_SHARED_LIBS=1 $(abs_top_srcdir)/mono/btls)
52
53 build-static/Makefile:
54         -mkdir -p build-static
55         (cd build-static && $(CMAKE) $(CMAKE_ARGS) $(BTLS_CMAKE_ARGS) $(abs_top_srcdir)/mono/btls)
56
57 $(BTLS_STATIC_LIST): build-static/Makefile
58         $(MAKE) -C build-static $(CMAKE_VERBOSE)
59
60 $(BTLS_SHARED_LIST): build-shared/Makefile
61         $(MAKE) -C build-shared $(CMAKE_VERBOSE)
62
63 clean-local:
64         -rm -rf build-static
65         -rm -rf build-shared
66