1 MONO_BTLS_SOURCES_FILES = \
25 btls-x509-lookup-mono.c \
26 btls-x509-lookup-mono.h \
32 btls-x509-store-ctx.c \
33 btls-x509-store-ctx.h \
35 btls-x509-verify-param.c \
36 btls-x509-verify-param.h \
39 EXTRA_DIST = $(MONO_BTLS_SOURCES_FILES)
41 CMAKE_VERBOSE=$(if $(V),VERBOSE=1,)
42 NINJA_VERBOSE=$(if ($V),-v,)
46 BUILDFILE = build.ninja
47 CMAKE_MAKE_PROGRAM = $(shell which ninja-build || which ninja)
51 CMAKE_MAKE_PROGRAM = $(shell which gmake || which gnumake || which make)
54 CMAKE_ARGS = -D CMAKE_MAKE_PROGRAM="$(CMAKE_MAKE_PROGRAM)" -D CMAKE_INSTALL_PREFIX:PATH="$(prefix)" -D BTLS_ROOT:PATH="$(BTLS_ROOT)" \
55 -D SRC_DIR:PATH="$(abs_top_srcdir)/mono/btls" -D BTLS_CFLAGS:STRING="$(BTLS_CFLAGS)" $(NINJA_ARGS)
57 all-local: build-shared/libmono-btls-shared$(libsuffix)
59 build-shared/$(BUILDFILE):
60 -mkdir -p build-shared
61 (cd build-shared && CC="$(CC)" CXX="$(CXX)" "$(CMAKE)" $(CMAKE_ARGS) $(BTLS_CMAKE_ARGS) -DBUILD_SHARED_LIBS=1 "$(abs_top_srcdir)/mono/btls")
64 build-shared/libmono-btls-shared$(libsuffix): build-shared/$(BUILDFILE) $(MONO_BTLS_SOURCES_FILES)
65 ninja -C build-shared $(NINJA_VERBOSE)
67 build-shared/libmono-btls-shared$(libsuffix): build-shared/$(BUILDFILE) $(MONO_BTLS_SOURCES_FILES)
68 $(MAKE) -C build-shared $(CMAKE_VERBOSE)
75 $(mkinstalldirs) "$(DESTDIR)$(libdir)"
77 $(mkinstalldirs) "$(DESTDIR)$(bindir)"
78 $(install_sh) build-shared/libmono-btls-shared*.a "$(DESTDIR)$(libdir)"
79 $(install_sh) build-shared/libmono-btls-shared*.dll "$(DESTDIR)$(bindir)"
81 $(install_sh) build-shared/libmono-btls-shared.* "$(DESTDIR)$(libdir)"