summaryrefslogtreecommitdiffstats
path: root/build
blob: 5f838663247017de013bcf198c2d9cf9071a391e (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
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	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
	oh-autoconfigure -- \
		--disable-memory \
		--enable-singlethreaded \
		--disable-oldnames \
		--disable-examples \
		--enable-ocsp --enable-ocspstapling --enable-ocspstapling2 \
		--disable-oldtls \
		--enable-sni \
		--disable-aescbc \
		--disable-md5 \
		--enable-maxstrength \
		--disable-errorstrings \
		CFLAGS='-DNO_WOLFSSL_SERVER -DNO_SESSION_CACHE'
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm -Rf \
		dest/usr/lib/$(OPK_HOST_ARCH)/libwolfssl.la \
		dest/usr/share/doc/wolfssl/example/ \
		dest/usr/share/doc/wolfssl/README.txt \
		dest/usr/share/doc/wolfssl/taoCert.txt
	oh-fixperms
	oh-strip -k
	oh-installfiles
	oh-shlibdeps