1# SPDX-License-Identifier: GPL-2.0 2# Copyright (C) 2020-2025 OpenVPN, Inc. 3# 4CFLAGS = -pedantic -Wextra -Wall -Wl,--no-as-needed -g -O0 -ggdb $(KHDR_INCLUDES) 5CFLAGS += $(shell pkg-config --cflags mbedcrypto-3 mbedtls-3 2>/dev/null) 6 7VAR_CFLAGS = $(shell pkg-config --cflags libnl-3.0 libnl-genl-3.0 2>/dev/null) 8ifeq ($(VAR_CFLAGS),) 9VAR_CFLAGS = -I/usr/include/libnl3 10endif 11CFLAGS += $(VAR_CFLAGS) 12 13MTLS_LDLIBS= $(shell pkg-config --libs mbedcrypto-3 mbedtls-3 2>/dev/null) 14ifeq ($(MTLS_LDLIBS),) 15MTLS_LDLIBS = -lmbedtls -lmbedcrypto 16endif 17LDLIBS += $(MTLS_LDLIBS) 18 19NL_LDLIBS = $(shell pkg-config --libs libnl-3.0 libnl-genl-3.0 2>/dev/null) 20ifeq ($(NL_LDLIBS),) 21NL_LDLIBS = -lnl-genl-3 -lnl-3 22endif 23LDLIBS += $(NL_LDLIBS) 24 25 26TEST_FILES = \ 27 common.sh \ 28 data64.key \ 29 json \ 30 tcp_peers.txt \ 31 udp_peers.txt \ 32 ../../../../net/ynl/pyynl/cli.py \ 33# end of TEST_FILES 34 35TEST_PROGS := \ 36 test-chachapoly.sh \ 37 test-close-socket-tcp.sh \ 38 test-close-socket.sh \ 39 test-float.sh \ 40 test-large-mtu.sh \ 41 test-mark.sh \ 42 test-symmetric-id-float.sh \ 43 test-symmetric-id-tcp.sh \ 44 test-symmetric-id.sh \ 45 test-tcp.sh \ 46 test.sh \ 47# end of TEST_PROGS 48 49TEST_GEN_FILES := ovpn-cli 50 51include ../../lib.mk 52