2005-09-26 13:28:27 +08:00
|
|
|
#
|
|
|
|
# OpenVPN -- An application to securely tunnel IP networks
|
|
|
|
# over a single UDP port, with support for SSL/TLS-based
|
|
|
|
# session authentication and key exchange,
|
|
|
|
# packet encryption, packet authentication, and
|
|
|
|
# packet compression.
|
|
|
|
#
|
2016-12-22 04:00:52 +08:00
|
|
|
# Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
|
2010-04-09 02:31:01 +08:00
|
|
|
# Copyright (C) 2010 David Sommerseth <dazo@users.sourceforge.net>
|
2012-03-01 04:11:59 +08:00
|
|
|
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
|
2005-09-26 13:28:27 +08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License version 2
|
|
|
|
# as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# This program 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.
|
|
|
|
#
|
2017-03-29 17:36:48 +08:00
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-09-26 13:28:27 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
# This option prevents autoreconf from overriding our COPYING and
|
|
|
|
# INSTALL targets:
|
2012-03-01 04:11:56 +08:00
|
|
|
AUTOMAKE_OPTIONS = foreign 1.9
|
2012-03-01 04:11:52 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2005-09-26 13:28:27 +08:00
|
|
|
|
2008-05-13 04:31:43 +08:00
|
|
|
MAINTAINERCLEANFILES = \
|
|
|
|
config.log config.status \
|
|
|
|
$(srcdir)/Makefile.in \
|
|
|
|
$(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
|
|
|
|
$(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
|
2012-03-01 04:12:00 +08:00
|
|
|
$(srcdir)/m4/libtool.m4 $(srcdir)/m4/lt~obsolete.m4 \
|
|
|
|
$(srcdir)/m4/ltoptions.m4 $(srcdir)/m4/ltsugar.m4 \
|
|
|
|
$(srcdir)/m4/ltversion.m4 \
|
2008-05-13 04:31:43 +08:00
|
|
|
$(srcdir)/depcomp $(srcdir)/aclocal.m4 \
|
2012-03-01 04:11:59 +08:00
|
|
|
$(srcdir)/config.guess $(srcdir)/config.sub
|
2005-09-26 13:28:27 +08:00
|
|
|
|
2012-05-05 14:39:42 +08:00
|
|
|
CLEANFILES = \
|
2014-04-21 02:41:01 +08:00
|
|
|
config-version.h tests/t_client.sh
|
2012-05-05 14:39:42 +08:00
|
|
|
|
2008-05-13 04:31:43 +08:00
|
|
|
EXTRA_DIST = \
|
|
|
|
contrib \
|
2012-03-01 04:11:59 +08:00
|
|
|
debug
|
2008-05-13 04:31:43 +08:00
|
|
|
|
2012-05-05 14:39:42 +08:00
|
|
|
.PHONY: config-version.h
|
|
|
|
|
|
|
|
if GIT_CHECKOUT
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
config-version.h
|
|
|
|
endif
|
|
|
|
|
2016-05-26 01:57:55 +08:00
|
|
|
SUBDIRS = build distro include src sample doc vendor tests
|
2008-05-13 04:31:43 +08:00
|
|
|
|
2012-03-01 04:11:56 +08:00
|
|
|
dist_doc_DATA = \
|
2012-05-13 03:03:53 +08:00
|
|
|
README \
|
|
|
|
README.IPv6 \
|
|
|
|
README.polarssl \
|
2016-12-27 18:52:24 +08:00
|
|
|
Changes.rst \
|
2012-03-01 04:11:56 +08:00
|
|
|
COPYRIGHT.GPL \
|
|
|
|
COPYING
|
|
|
|
|
2008-05-13 04:31:43 +08:00
|
|
|
dist_noinst_DATA = \
|
2012-03-01 04:11:56 +08:00
|
|
|
.gitignore \
|
2012-04-02 19:37:41 +08:00
|
|
|
.gitattributes \
|
2008-05-13 04:31:43 +08:00
|
|
|
PORTS \
|
2012-03-01 04:11:56 +08:00
|
|
|
README.IPv6 TODO.IPv6 \
|
2012-03-01 04:12:12 +08:00
|
|
|
README.polarssl \
|
|
|
|
openvpn.sln \
|
|
|
|
msvc-env.bat \
|
|
|
|
msvc-dev.bat \
|
|
|
|
msvc-build.bat
|
2012-03-01 04:11:56 +08:00
|
|
|
|
2012-03-01 04:12:12 +08:00
|
|
|
dist_noinst_HEADERS = \
|
|
|
|
config-msvc.h \
|
|
|
|
config-msvc-version.h.in
|
2012-03-01 04:12:20 +08:00
|
|
|
|
|
|
|
if WIN32
|
|
|
|
rootdir=$(prefix)
|
|
|
|
root_DATA = version.sh
|
|
|
|
endif
|
2012-05-05 14:39:42 +08:00
|
|
|
|
|
|
|
config-version.h:
|
2013-04-19 19:21:54 +08:00
|
|
|
@CONFIGURE_GIT_CHFILES="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-files --name-status -r --ignore-submodules --quiet -- || echo \"+\"`"; \
|
|
|
|
CONFIGURE_GIT_UNCOMMITTED="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-index --cached --quiet --ignore-submodules HEAD || echo \"*\"`"; \
|
|
|
|
CONFIGURE_GIT_REVISION="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --symbolic-full-name HEAD | cut -d/ -f3-`/`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --short=16 HEAD`"; \
|
|
|
|
echo "#define CONFIGURE_GIT_REVISION \"$${CONFIGURE_GIT_REVISION}\"" > config-version.h.tmp; \
|
|
|
|
echo "#define CONFIGURE_GIT_FLAGS \"$${CONFIGURE_GIT_CHFILES}$${CONFIGURE_GIT_UNCOMMITTED}\"" >> config-version.h.tmp
|
|
|
|
|
2012-05-05 14:39:42 +08:00
|
|
|
@if ! [ -f config-version.h ] || ! cmp -s config-version.h.tmp config-version.h; then \
|
|
|
|
echo "replacing config-version.h"; \
|
|
|
|
mv config-version.h.tmp config-version.h; \
|
|
|
|
else \
|
|
|
|
rm -f config-version.h.tmp; \
|
|
|
|
fi
|