Skip to content

Commit

Permalink
Makefile: Add Mbed TLS support
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Jan 9, 2024
1 parent d09c43b commit dde645f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ INCLUDES=-Isrc -Iinclude/rtc -Iinclude -I$(PLOG_DIR)/include -I$(USRSCTP_DIR)/us
LDLIBS=

USE_GNUTLS ?= 0
USE_MBEDTLS ?= 0
ifneq ($(USE_GNUTLS), 0)
CPPFLAGS+=-DUSE_GNUTLS=1
ifneq ($(USE_MBEDTLS), 0)
$(error Both USE_MBEDTLS and USE_GNUTLS cannot be enabled at the same time)
endif
CPPFLAGS+=-DUSE_GNUTLS=1
LIBS+=gnutls
else ifneq ($(USE_MBEDTLS), 0)
CPPFLAGS+=-DUSE_MBEDTLS=1
LIBS+=mbedtls
else
CPPFLAGS+=-DUSE_GNUTLS=0
LIBS+=openssl
SRTP_CONFIGURE_FLAGS+=--enable-openssl
endif
Expand Down

0 comments on commit dde645f

Please sign in to comment.