Makefile.am 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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-2018 OpenVPN 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 along
  22. # with this program; if not, write to the Free Software Foundation, Inc.,
  23. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  24. #
  25. # This option prevents autoreconf from overriding our COPYING and
  26. # INSTALL targets:
  27. AUTOMAKE_OPTIONS = foreign 1.9
  28. ACLOCAL_AMFLAGS = -I m4
  29. MAINTAINERCLEANFILES = \
  30. config.log config.status \
  31. $(srcdir)/Makefile.in \
  32. $(srcdir)/config.h.in $(srcdir)/config.h.in~ $(srcdir)/configure \
  33. $(srcdir)/install-sh $(srcdir)/ltmain.sh $(srcdir)/missing \
  34. $(srcdir)/m4/libtool.m4 $(srcdir)/m4/lt~obsolete.m4 \
  35. $(srcdir)/m4/ltoptions.m4 $(srcdir)/m4/ltsugar.m4 \
  36. $(srcdir)/m4/ltversion.m4 \
  37. $(srcdir)/depcomp $(srcdir)/aclocal.m4 \
  38. $(srcdir)/config.guess $(srcdir)/config.sub
  39. CLEANFILES = \
  40. config-version.h tests/t_client.sh
  41. EXTRA_DIST = \
  42. contrib \
  43. debug
  44. .PHONY: config-version.h
  45. if GIT_CHECKOUT
  46. BUILT_SOURCES = \
  47. config-version.h
  48. endif
  49. SUBDIRS = build distro include src sample doc vendor tests
  50. dist_doc_DATA = \
  51. README \
  52. README.IPv6 \
  53. README.mbedtls \
  54. Changes.rst \
  55. COPYRIGHT.GPL \
  56. COPYING
  57. dist_noinst_DATA = \
  58. .gitignore \
  59. .gitattributes \
  60. PORTS \
  61. README.IPv6 TODO.IPv6 \
  62. README.mbedtls \
  63. openvpn.sln \
  64. msvc-env.bat \
  65. msvc-dev.bat \
  66. msvc-build.bat
  67. dist_noinst_HEADERS = \
  68. config-msvc.h \
  69. config-msvc-version.h.in
  70. if WIN32
  71. rootdir=$(prefix)
  72. root_DATA = version.sh
  73. endif
  74. config-version.h:
  75. @CONFIGURE_GIT_CHFILES="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-files --name-status -r --ignore-submodules --quiet -- || echo \"+\"`"; \
  76. CONFIGURE_GIT_UNCOMMITTED="`GIT_DIR=\"$(top_srcdir)/.git\" $(GIT) diff-index --cached --quiet --ignore-submodules HEAD || echo \"*\"`"; \
  77. 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`"; \
  78. echo "#define CONFIGURE_GIT_REVISION \"$${CONFIGURE_GIT_REVISION}\"" > config-version.h.tmp; \
  79. echo "#define CONFIGURE_GIT_FLAGS \"$${CONFIGURE_GIT_CHFILES}$${CONFIGURE_GIT_UNCOMMITTED}\"" >> config-version.h.tmp
  80. @if ! [ -f config-version.h ] || ! cmp -s config-version.h.tmp config-version.h; then \
  81. echo "replacing config-version.h"; \
  82. mv config-version.h.tmp config-version.h; \
  83. else \
  84. rm -f config-version.h.tmp; \
  85. fi