blob: 8441f6b4d4e4b14c59f7da2dd2e10fc0f4834b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#!/usr/bin/make -f
include ../source.mk
builddir = build.$$(printf '%s' $@ | sed 's/^[^_]*_//')
destdir = dest.$$(printf '%s' $@ | sed 's/^[^_]*_//')
variant = $$(printf '%s' $@ | sed 's/^[^_]*_//')
abi_ver = $$(printf '%s' '$(OPK_SOURCE)' | sed 's/^.*[.]//')
common_opts = \
--disable-memory \
--enable-singlethreaded \
--disable-oldnames \
--disable-examples \
--enable-ocsp --enable-ocspstapling --enable-ocspstapling2 \
--disable-oldtls \
--enable-sni \
--disable-aescbc \
--disable-md5 \
--enable-maxstrength
build_client_opts = $(common_opts) \
--disable-errorstrings
build_full_opts = $(common_opts) \
--disable-errorstrings
build_dbg_opts = $(common_opts)
common_cflags = \
-DNO_SESSION_CACHE
build_client_cflags = $(common_cflags) \
-DNO_WOLFSSL_SERVER
build_full_cflags = $(common_cflags)
build_dbg_cflags = $(common_cflags)
nop:
@:
fix:
chmod a+x \
src/build-aux/compile \
src/build-aux/config.guess \
src/build-aux/config.sub \
src/build-aux/depcomp \
src/build-aux/install-sh \
src/build-aux/missing \
src/build-aux/test-driver \
src/configure
touch src/aclocal.m4 src/configure src/Makefile.in src/config.in
touch $@
build_client build_full build_dbg: fix
oh-autoconfigure -B $(builddir) -- $($@_opts) CFLAGS='$($@_cflags)'
oh-autobuild -B $(builddir)
touch $@
build: build_client build_full build_dbg
install_client install_full install_dbg: build
oh-autoinstall -B $(builddir) -d $(destdir)
rm -Rf \
$(destdir)/usr/lib/$(OPK_HOST_ARCH)/libwolfssl.la \
$(destdir)/usr/share/doc/wolfssl/example/ \
$(destdir)/usr/share/doc/wolfssl/README.txt \
$(destdir)/usr/share/doc/wolfssl/taoCert.txt
oh-fixperms -d $(destdir)
[ x"$(variant)" != x'dbg' ] && oh-strip -d $(destdir)
OPK_PACKAGES="libwolfssl.$(abi_ver)-$(variant)" \
oh-installfiles -d $(destdir)
[ x"$(variant)" != x'dbg' ] && \
OPK_PACKAGES="libwolfssl.$(abi_ver)-$(variant)-dev" \
oh-installfiles -d $(destdir)
install: install_client install_full install_dbg
oh-shlibdeps
|