|
|
|
|
@ -23,32 +23,8 @@ utun_CORE_SOURCES = \
|
|
|
|
|
control_server.c
|
|
|
|
|
|
|
|
|
|
# Platform-specific TUN sources
|
|
|
|
|
# Use AM_CONDITIONAL to select the right source file
|
|
|
|
|
|
|
|
|
|
if OS_WINDOWS |
|
|
|
|
utun_TUN_SOURCES = tun_windows.c
|
|
|
|
|
utun_TUN_LIBS = -liphlpapi -lws2_32 -ladvapi32 -lbcrypt -ldbghelp
|
|
|
|
|
AM_CONDITIONAL(TUN_FREEBSD, [false]) |
|
|
|
|
AM_CONDITIONAL(TUN_LINUX, [false]) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
if OS_FREEBSD |
|
|
|
|
utun_TUN_SOURCES = tun_freebsd.c
|
|
|
|
|
utun_TUN_LIBS =
|
|
|
|
|
AM_CONDITIONAL(TUN_FREEBSD, [true]) |
|
|
|
|
AM_CONDITIONAL(TUN_LINUX, [false]) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
if OS_WINDOWS |
|
|
|
|
else |
|
|
|
|
if OS_FREEBSD
|
|
|
|
|
else
|
|
|
|
|
utun_TUN_SOURCES = tun_linux.c
|
|
|
|
|
utun_TUN_LIBS =
|
|
|
|
|
AM_CONDITIONAL(TUN_FREEBSD, [false])
|
|
|
|
|
AM_CONDITIONAL(TUN_LINUX, [true])
|
|
|
|
|
endif
|
|
|
|
|
endif |
|
|
|
|
utun_TUN_SOURCES = $(TUN_SOURCE)
|
|
|
|
|
utun_TUN_LIBS = $(TUN_LIBS)
|
|
|
|
|
|
|
|
|
|
# TinyCrypt sources (only used without OpenSSL)
|
|
|
|
|
utun_TINYCRYPT_SOURCES = \
|
|
|
|
|
|