mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-25 10:59:53 +03:00
b9420c3bfc
Install to `/usr/sbin`, `/usr/lib`, and `/var/lib` according to the Linux filesystem hierarchy standard if SoftEther is built through autotools. In a managed installation, the FHS stipulates that the application must accomodate a read-only installation path. This requires a new `GetStateDir` function that substitues `GetExeDir` in some parts of the code.
41 lines
1.1 KiB
Plaintext
41 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 \
|
|
-DSTATE_DIR='"@localstatedir@/lib/softether"' \
|
|
-DUNIX \
|
|
-DUNIX_LINUX \
|
|
-D_REENTRANT \
|
|
-DREENTRANT \
|
|
-D_THREAD_SAFE \
|
|
-D_THREADSAFE \
|
|
-DTHREAD_SAFE \
|
|
-DTHREADSAFE \
|
|
-D_FILE_OFFSET_BITS=64 \
|
|
-fsigned-char
|