1
This commit is contained in:
1 parent
ab956553bb
commit
8bef8d8644
1 file changed
+16
-2
+16
-2
@@ -23,17 +23,31 @@ utun_CORE_SOURCES = \
|
||||
control_server.c
|
||||
|
||||
# Platform-specific TUN sources
|
||||
utun_TUN_SOURCES = tun_linux.c
|
||||
utun_TUN_LIBS =
|
||||
# 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
|
||||
|
||||
# TinyCrypt sources (only used without OpenSSL)
|
||||
|
||||
Reference in new issue
Block a user