File: libssl.mk

package info (click to toggle)
android-platform-external-boringssl 10.0.0%2Br36-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 81,804 kB
  • sloc: asm: 261,032; ansic: 118,728; perl: 60,686; cpp: 60,149; python: 1,277; sh: 89; xml: 17; makefile: 9
file content (57 lines) | stat: -rw-r--r-- 1,457 bytes parent folder | download | duplicates (2)
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
NAME = libssl
SOURCES = \
  src/ssl/bio_ssl.cc \
  src/ssl/d1_both.cc \
  src/ssl/d1_lib.cc \
  src/ssl/d1_pkt.cc \
  src/ssl/d1_srtp.cc \
  src/ssl/dtls_method.cc \
  src/ssl/dtls_record.cc \
  src/ssl/handoff.cc \
  src/ssl/handshake.cc \
  src/ssl/handshake_client.cc \
  src/ssl/handshake_server.cc \
  src/ssl/s3_both.cc \
  src/ssl/s3_lib.cc \
  src/ssl/s3_pkt.cc \
  src/ssl/ssl_aead_ctx.cc \
  src/ssl/ssl_asn1.cc \
  src/ssl/ssl_buffer.cc \
  src/ssl/ssl_cert.cc \
  src/ssl/ssl_cipher.cc \
  src/ssl/ssl_file.cc \
  src/ssl/ssl_key_share.cc \
  src/ssl/ssl_lib.cc \
  src/ssl/ssl_privkey.cc \
  src/ssl/ssl_session.cc \
  src/ssl/ssl_stat.cc \
  src/ssl/ssl_transcript.cc \
  src/ssl/ssl_versions.cc \
  src/ssl/ssl_x509.cc \
  src/ssl/t1_enc.cc \
  src/ssl/t1_lib.cc \
  src/ssl/tls13_both.cc \
  src/ssl/tls13_client.cc \
  src/ssl/tls13_enc.cc \
  src/ssl/tls13_server.cc \
  src/ssl/tls_method.cc \
  src/ssl/tls_record.cc \

CXXFLAGS += \
  -D_XOPEN_SOURCE=700 \
  -DBORINGSSL_ANDROID_SYSTEM \
  -DBORINGSSL_IMPLEMENTATION \
  -DBORINGSSL_SHARED_LIBRARY \
  -DOPENSSL_SMALL \
  -fvisibility=hidden \

CPPFLAGS += -Isrc/include

LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 \
           -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
           -lpthread -Ldebian/out -lcrypto

build: $(SOURCES)
	mkdir --parents debian/out
	$(CXX) $^ -o debian/out/$(NAME).so.0 $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
	ln -s $(NAME).so.0 debian/out/$(NAME).so