1# 2# OpenVPN -- An application to securely tunnel IP networks 3# over a single UDP port, with support for SSL/TLS-based 4# session authentication and key exchange, 5# packet encryption, packet authentication, and 6# packet compression. 7# 8# Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net> 9# Copyright (C) 2010 David Sommerseth <dazo@users.sourceforge.net> 10# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com> 11# 12# This program is free software; you can redistribute it and/or modify 13# it under the terms of the GNU General Public License version 2 14# as published by the Free Software Foundation. 15# 16# This program is distributed in the hope that it will be useful, 17# but WITHOUT ANY WARRANTY; without even the implied warranty of 18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19# GNU General Public License for more details. 20# 21# You should have received a copy of the GNU General Public License 22# along with this program (see the file COPYING included with this 23# distribution); if not, write to the Free Software Foundation, Inc., 24# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25# 26 27# This option prevents autoreconf from overriding our COPYING and 28# INSTALL targets: 29AUTOMAKE_OPTIONS = foreign 1.9 30ACLOCAL_AMFLAGS = -I m4 31 32MAINTAINERCLEANFILES = \ 33 config.log config.status \ 34 $(srcdir)/Makefile.in \ 35 $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \ 36 $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \ 37 $(srcdir)/m4/libtool.m4 $(srcdir)/m4/lt~obsolete.m4 \ 38 $(srcdir)/m4/ltoptions.m4 $(srcdir)/m4/ltsugar.m4 \ 39 $(srcdir)/m4/ltversion.m4 \ 40 $(srcdir)/depcomp $(srcdir)/aclocal.m4 \ 41 $(srcdir)/config.guess $(srcdir)/config.sub 42 43CLEANFILES = \ 44 config-version.h 45 46EXTRA_DIST = \ 47 contrib \ 48 debug 49 50.PHONY: config-version.h 51 52if GIT_CHECKOUT 53BUILT_SOURCES = \ 54 config-version.h 55endif 56 57SUBDIRS = build distro include src sample doc tests 58 59dist_doc_DATA = \ 60 README \ 61 README.IPv6 \ 62 README.polarssl \ 63 COPYRIGHT.GPL \ 64 COPYING 65 66dist_noinst_DATA = \ 67 .gitignore \ 68 .gitattributes \ 69 config-version.h.in \ 70 PORTS \ 71 README.IPv6 TODO.IPv6 \ 72 README.polarssl \ 73 openvpn.sln \ 74 msvc-env.bat \ 75 msvc-dev.bat \ 76 msvc-build.bat 77 78if WIN32 79dist_doc_DATA += INSTALL-win32.txt 80else 81dist_noinst_DATA += INSTALL-win32.txt 82endif 83 84dist_noinst_HEADERS = \ 85 config-msvc.h \ 86 config-msvc-version.h.in 87 88if WIN32 89rootdir=$(prefix) 90root_DATA = version.sh 91endif 92 93config-version.h: 94 @CONFIGURE_GIT_REVISION="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --symbolic-full-name HEAD`/`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) rev-parse --short=16 HEAD`"; \ 95 $(SED) "s#@CONFIGURE_GIT_REVISION[@]#$${CONFIGURE_GIT_REVISION}#g" "$(srcdir)/config-version.h.in" > config-version.h.tmp 96 @if ! [ -f config-version.h ] || ! cmp -s config-version.h.tmp config-version.h; then \ 97 echo "replacing config-version.h"; \ 98 mv config-version.h.tmp config-version.h; \ 99 else \ 100 rm -f config-version.h.tmp; \ 101 fi 102