mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 10:59:53 +03:00
c5e5d7e93c
Add autoconf and automake capabilities to SoftEther so that it can be built like this: # autoreconf --force --install # ./configure # make install DESTDIR=/tmp/softether All standard configure parameters are supported, plus: # ./configure --enable-debug Autotools support makes porting, cross compiling, and optimization much easier. These GNU autoconf-archive components are used for dependency checking: * ax_check_openssl.m4 * ax_check_zlib.m4 * ax_lib_readline.m4 * ax_pthread.m4 * ax_with_curses.m4 NB: http://www.gnu.org/software/autoconf-archive/
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Copyright 2014 Darik Horn <dajhorn@vanadac.com>
|
|
#
|
|
# This file is part of SoftEther.
|
|
#
|
|
# SoftEther is free software: you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License as published by the Free
|
|
# Software Foundation, either version 2 of the License, or (at your option)
|
|
# any later version.
|
|
#
|
|
# SoftEther is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along with
|
|
# SoftEther. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
if CONFIGURE_ENABLE_DEBUG
|
|
DEBUG_CFLAGS = -g -D_DEBUG -DDEBUG
|
|
else
|
|
DEBUG_CFLAGS = -DNDEBUG -DVPN_SPEED
|
|
endif
|
|
|
|
AM_CFLAGS = \
|
|
$(DEBUG_CFLAGS) \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/src/Mayaqua \
|
|
-I$(top_srcdir)/src/Cedar \
|
|
-DUNIX \
|
|
-DUNIX_LINUX \
|
|
-D_REENTRANT \
|
|
-DREENTRANT \
|
|
-D_THREAD_SAFE \
|
|
-D_THREADSAFE \
|
|
-DTHREAD_SAFE \
|
|
-DTHREADSAFE \
|
|
-D_FILE_OFFSET_BITS=64 \
|
|
-fsigned-char
|