Skip to content

Commit dde645f

Browse files
committedJan 9, 2024
Makefile: Add Mbed TLS support
1 parent d09c43b commit dde645f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ INCLUDES=-Isrc -Iinclude/rtc -Iinclude -I$(PLOG_DIR)/include -I$(USRSCTP_DIR)/us
1919
LDLIBS=
2020

2121
USE_GNUTLS ?= 0
22+
USE_MBEDTLS ?= 0
2223
ifneq ($(USE_GNUTLS), 0)
23-
CPPFLAGS+=-DUSE_GNUTLS=1
24+
ifneq ($(USE_MBEDTLS), 0)
25+
$(error Both USE_MBEDTLS and USE_GNUTLS cannot be enabled at the same time)
26+
endif
27+
CPPFLAGS+=-DUSE_GNUTLS=1
2428
LIBS+=gnutls
29+
else ifneq ($(USE_MBEDTLS), 0)
30+
CPPFLAGS+=-DUSE_MBEDTLS=1
31+
LIBS+=mbedtls
2532
else
26-
CPPFLAGS+=-DUSE_GNUTLS=0
2733
LIBS+=openssl
2834
SRTP_CONFIGURE_FLAGS+=--enable-openssl
2935
endif

0 commit comments

Comments
 (0)