Permalink
Browse files

Convert build system to automake

The INSTALL file gives instructions for setting up the build system
using automake etc.

For those without automake (and autoconf), just running configure
works as before.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
  • Loading branch information...
1 parent 5be1646 commit 224f16e81bf798ff75a599bb3506d4d82c420f3e @pqarmitage pqarmitage committed Aug 10, 2016
Showing with 14,228 additions and 3,683 deletions.
  1. +29 −10 .gitignore
  2. +24 −4 INSTALL
  3. +47 −0 Makefile.am
  4. +794 −98 Makefile.in
  5. +0 −1 VERSION
  6. +36 −0 bin_install/Makefile.am
  7. +447 −0 bin_install/Makefile.in
  8. +5,398 −2,286 configure
  9. +700 −592 configure.ac
  10. +664 −16 doc/Makefile
  11. +219 −0 doc/Makefile.am
  12. +825 −0 doc/Makefile.in
  13. +1 −0 genhash/.gitignore
  14. +23 −0 genhash/Makefile.am
  15. +592 −62 genhash/Makefile.in
  16. +3 −1 genhash/http.c
  17. +3 −3 genhash/include/hash.h
  18. +3 −0 genhash/include/main.h
  19. +2 −0 genhash/layer4.c
  20. +2 −0 genhash/main.c
  21. +2 −0 genhash/sock.c
  22. +2 −0 genhash/ssl.c
  23. +1 −0 keepalived/.gitignore
  24. +52 −0 keepalived/Makefile.am
  25. +841 −99 keepalived/Makefile.in
  26. +31 −0 keepalived/check/Makefile.am
  27. +568 −62 keepalived/check/Makefile.in
  28. +3 −1 keepalived/check/check_api.c
  29. +2 −0 keepalived/check/check_daemon.c
  30. +2 −0 keepalived/check/check_data.c
  31. +4 −2 keepalived/check/check_http.c
  32. +2 −0 keepalived/check/check_misc.c
  33. +2 −0 keepalived/check/check_parser.c
  34. +4 −2 keepalived/check/check_smtp.c
  35. +7 −5 keepalived/check/check_snmp.c
  36. +2 −0 keepalived/check/check_ssl.c
  37. +4 −2 keepalived/check/check_tcp.c
  38. +4 −2 keepalived/check/ipvswrapper.c
  39. +2 −0 keepalived/check/ipwrapper.c
  40. +8 −6 keepalived/check/libipvs.c
  41. +27 −0 keepalived/core/Makefile.am
  42. +564 −41 keepalived/core/Makefile.in
  43. +2 −0 keepalived/core/daemon.c
  44. +4 −2 keepalived/core/global_data.c
  45. +4 −2 keepalived/core/global_parser.c
  46. +2 −0 keepalived/core/layer4.c
  47. +18 −8 keepalived/core/main.c
  48. +2 −0 keepalived/core/pidfile.c
  49. +2 −0 keepalived/core/process.c
  50. +4 −2 keepalived/core/smtp.c
  51. +5 −3 keepalived/core/snmp.c
  52. +1 −5 keepalived/include/check_data.h
  53. +2 −4 keepalived/include/global_data.h
  54. +6 −0 keepalived/include/ip_vs.h
  55. +4 −8 keepalived/include/ipvswrapper.h
  56. +2 −0 keepalived/include/main.h
  57. +2 −2 keepalived/include/vrrp_ip_rule_route_parser.h
  58. +11 −11 keepalived/include/vrrp_iproute.h
  59. +3 −3 keepalived/include/vrrp_iprule.h
  60. +30 −0 keepalived/main.c
  61. +57 −0 keepalived/vrrp/Makefile.am
  62. +602 −123 keepalived/vrrp/Makefile.in
  63. +10 −8 keepalived/vrrp/vrrp.c
  64. +4 −2 keepalived/vrrp/vrrp_arp.c
  65. +5 −6 keepalived/vrrp/vrrp_daemon.c
  66. +2 −0 keepalived/vrrp/vrrp_data.c
  67. +8 −7 keepalived/vrrp/vrrp_if.c
  68. +5 −3 keepalived/vrrp/vrrp_if_config.c
  69. +2 −0 keepalived/vrrp/vrrp_index.c
  70. +4 −2 keepalived/vrrp/vrrp_ip_rule_route_parser.c
  71. +3 −1 keepalived/vrrp/vrrp_ipaddress.c
  72. +36 −33 keepalived/vrrp/vrrp_iproute.c
  73. +19 −17 keepalived/vrrp/vrrp_iprule.c
  74. +2 −0 keepalived/vrrp/vrrp_ipsecah.c
  75. +12 −1 keepalived/vrrp/vrrp_ipset.c
  76. +14 −0 keepalived/vrrp/vrrp_iptables.c
  77. +63 −8 keepalived/vrrp/vrrp_iptables_calls.c
  78. +4 −2 keepalived/vrrp/vrrp_ndisc.c
  79. +5 −3 keepalived/vrrp/vrrp_netlink.c
  80. +2 −0 keepalived/vrrp/vrrp_notify.c
  81. +4 −2 keepalived/vrrp/vrrp_parser.c
  82. +2 −0 keepalived/vrrp/vrrp_print.c
  83. +4 −2 keepalived/vrrp/vrrp_scheduler.c
  84. +14 −15 keepalived/vrrp/vrrp_snmp.c
  85. +2 −0 keepalived/vrrp/vrrp_sync.c
  86. +2 −0 keepalived/vrrp/vrrp_track.c
  87. +5 −6 keepalived/vrrp/vrrp_vmac.c
  88. +2 −0 lib/.gitignore
  89. +56 −0 lib/Makefile.am
  90. +595 −51 lib/Makefile.in
  91. +584 −27 lib/config.h.in
  92. +2 −0 lib/html.c
  93. +2 −0 lib/list.c
  94. +2 −0 lib/logger.c
  95. +2 −0 lib/memory.c
  96. +2 −0 lib/notify.c
  97. +2 −0 lib/old_socket.c
  98. +9 −7 lib/old_socket.h
  99. +2 −0 lib/parser.c
  100. +8 −6 lib/rttables.c
  101. +2 −2 lib/rttables.h
  102. +2 −0 lib/scheduler.c
  103. +8 −4 lib/signals.c
  104. +2 −0 lib/timer.c
  105. +2 −0 lib/utils.c
  106. +2 −0 lib/vector.c
View
@@ -1,18 +1,37 @@
*.orig
*.o
*.a
-Makefile
-bin/*
-config.cache
-config.log
-config.status
+bin/
keepalived.spec
-keepalived/include/config.h
-lib/config.h
*~
*.swp
.dir-locals.el
-autom4te.cache
-doc/build
-!doc/Makefile
keepalived-*.tar.gz
+
+
+# http://www.gnu.org/software/automake
+Makefile
+
+# http://www.gnu.org/software/autoconf
+/ar-lib
+/autom4te.cache
+/autoscan.log
+/autoscan-*.log
+/aclocal.m4
+/compile
+/config.cache
+#/config.h.in
+/config.log
+/config.status
+/configure.scan
+/depcomp
+/install-sh
+/missing
+stamp-h?
+
+.deps/
+
+# To be able to build without automake/autoconf comment out the following
+# lib/config.h.in
+# Makefile.in
+# /configure
View
@@ -6,7 +6,7 @@ Kernel needs
Kernel/User netlink socket
LinuxVirtualServer
- Keepalived supports all LVS code, including IPVS code for kernel 2.4.
+ Keepalived supports all LVS code.
Library dependencies
====================
@@ -37,13 +37,33 @@ Installation
eg: './configure --prefix=/usr/'
+Modifying source code
+=====================
+
+If you modify the source code, especially configure.ac or any Makefile.am
+file, you will need to regenerate the build files. Keepalived uses automake
+and so you will need to have automake and autoconf installed.
+
+To regenerate the build environment, you will need to run the following
+commands before following the instuctions under 'Installation' above:
+
+ 1. 'aclocal'
+ 2. 'autoheader'
+ 3. 'automake --add-missing'
+ 4. 'autoreconf'
+
+If you are attempting to build keepalived after cloning
+https://github.com/acassen/keepalived and you don't have automake available,
+you may find it useful first to run 'find . -exec touch -r configure {} +'.
+
Configuration
=============
Just take a look at the /etc/keepalived/keepalived.conf file installed.
- It will give you all the information needed. If you want more information
- about keepalived, please refer to the keepalived homepage into the
- documentation section.
+ It will give you all the information needed. Alternativley, run
+ 'man keepalived.conf' or look at doc/keepalived.conf.SYNOPSIS.
+ If you want more information about keepalived, please refer to the
+ keepalived homepage into the documentation section.
http://www.keepalived.org
View
@@ -0,0 +1,47 @@
+# Makefile.am
+#
+# Keepalived OpenSource project.
+#
+# Copyright (C) 2001-2016 Alexandre Cassen, <acassen@gmail.com>
+
+export DEBUG_CFLAGS
+export DEBUG_CPPFLAGS
+export DEBUG_LDFLAGS
+
+SUBDIRS = lib keepalived doc
+
+if BUILD_GENHASH
+ SUBDIRS += genhash
+endif
+
+SUBDIRS += bin_install
+
+EXTRA_DIST = AUTHOR CONTRIBUTORS
+
+MAINTAINERCLEANFILES = @MAINTAINERCLEANFILES@
+
+distclean-local:
+ @rm -f aclocal.m4 ar-lib compile depcomp missing keepalived-$(VERSION).tar.gz config.log config.status
+ @rm -rf autom4te.cache
+
+# clean all files that are generated by automake/autoconf etc
+autoclean:
+ @$(MAKE) distclean
+ @rm -f configure `find . -name Makefile.in` lib/config.h.in lib/git-commit.h
+
+# Added targets to maintain compatibility with keepalived releases 1.2.22 and earlier
+.PHONY: tarball rpm debug profile mrproper
+
+tarball: dist
+
+rpm:
+ rpmbuild -ba --build-in-place keepalived.spec
+
+debug:
+ @$(MAKE) DEBUG_LDFLAGS=-ggdb
+
+profile:
+ @$(MAKE) DEBUG_CFLAGS=-pg
+
+mrproper:
+ @echo Please use `make distclean`
Oops, something went wrong.

0 comments on commit 224f16e

Please sign in to comment.