summaryrefslogtreecommitdiff
path: root/package/targets.mak
blob: 4fa79dcbb8b5ea1569c1a34c24c1b917891b2121 (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
BIN_TARGETS := \
s6-getservbyname \
s6-ident-client \
s6-tcpclient \
s6-tcpserver \
s6-tcpserver4 \
s6-tcpserver4d \
s6-tcpserver4-socketbinder \
s6-tcpserver6 \
s6-tcpserver6d \
s6-tcpserver6-socketbinder \
s6-tcpserver-access \
s6-clockadd \
s6-clockview \
s6-sntpclock \
s6-taiclock \
s6-taiclockd

LIBEXEC_TARGETS :=

LIB_DEFS := S6NET=s6net

ifneq ($(SSL_IMPL),)

BIN_TARGETS += s6-tlsclient s6-tlsc s6-tlsc-io s6-tlsserver s6-tlsd s6-tlsd-io s6-ucspitlsc s6-ucspitlsd
INTERNAL_LIBS += libs6tls.a.xyzzy

ifeq ($(SSL_IMPL),tls)

LIB_DEFS += CRYPTOSUPPORT=stls
CRYPTO_LIB := -ltls -lssl -lcrypto -lpthread

else ifeq ($(SSL_IMPL),bearssl)

LIB_DEFS += CRYPTOSUPPORT=sbearssl
CRYPTO_LIB := -lbearssl

endif
endif