Makefile.am 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. sbin_PROGRAMS = swanctl
  2. swanctl_SOURCES = \
  3. command.c command.h \
  4. commands/counters.c \
  5. commands/initiate.c \
  6. commands/terminate.c \
  7. commands/rekey.c \
  8. commands/redirect.c \
  9. commands/install.c \
  10. commands/list_sas.c \
  11. commands/list_pols.c \
  12. commands/list_authorities.c \
  13. commands/list_conns.c \
  14. commands/list_certs.c \
  15. commands/list_pools.c \
  16. commands/list_algs.c \
  17. commands/flush_certs.c \
  18. commands/load_all.c \
  19. commands/load_authorities.h commands/load_authorities.c \
  20. commands/load_conns.c commands/load_conns.h \
  21. commands/load_creds.c commands/load_creds.h \
  22. commands/load_pools.c commands/load_pools.h \
  23. commands/log.c \
  24. commands/version.c \
  25. commands/stats.c \
  26. commands/reload_settings.c \
  27. swanctl.c swanctl.h
  28. swanctl_LDADD = \
  29. $(top_builddir)/src/libcharon/plugins/vici/libvici.la \
  30. $(top_builddir)/src/libstrongswan/libstrongswan.la \
  31. $(PTHREADLIB) $(ATOMICLIB) $(DLLIB)
  32. swanctl.o : $(top_builddir)/config.status
  33. AM_CPPFLAGS = \
  34. -I$(top_srcdir)/src/libstrongswan \
  35. -I$(top_srcdir)/src/libcharon/plugins/vici \
  36. -DSWANCTLDIR=\""${swanctldir}\"" \
  37. -DPLUGINS=\""${s_plugins}\""
  38. man_MANS = \
  39. swanctl.8 \
  40. swanctl.conf.5
  41. BUILT_SOURCES = swanctl.conf swanctl.conf.5.main
  42. EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main
  43. CLEANFILES = $(man_MANS)
  44. .opt.conf:
  45. $(AM_V_GEN) \
  46. $(PYTHON) $(top_srcdir)/conf/format-options.py -n -f conf $< > $(srcdir)/$@
  47. swanctl.conf.5.main: swanctl.opt
  48. $(AM_V_GEN) \
  49. cd $(srcdir) && $(PYTHON) $(abs_top_srcdir)/conf/format-options.py -n -f man swanctl.opt > $@
  50. swanctl.conf.5: swanctl.conf.5.head swanctl.conf.5.main swanctl.conf.5.tail
  51. $(AM_V_GEN) \
  52. cat swanctl.conf.5.head $(srcdir)/swanctl.conf.5.main swanctl.conf.5.tail > $@
  53. maintainer-clean-local:
  54. cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main
  55. install-data-local: swanctl.conf
  56. test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)" || true
  57. test -e "$(DESTDIR)$(swanctldir)/conf.d" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/conf.d" || true
  58. test -e "$(DESTDIR)$(swanctldir)/x509" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509" || true
  59. test -e "$(DESTDIR)$(swanctldir)/x509ca" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ca" || true
  60. test -e "$(DESTDIR)$(swanctldir)/x509aa" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509aa" || true
  61. test -e "$(DESTDIR)$(swanctldir)/x509ocsp" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ocsp" || true
  62. test -e "$(DESTDIR)$(swanctldir)/x509crl" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509crl" || true
  63. test -e "$(DESTDIR)$(swanctldir)/x509ac" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ac" || true
  64. test -e "$(DESTDIR)$(swanctldir)/pubkey" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/pubkey" || true
  65. test -e "$(DESTDIR)$(swanctldir)/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/private" || true
  66. test -e "$(DESTDIR)$(swanctldir)/rsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/rsa" || true
  67. test -e "$(DESTDIR)$(swanctldir)/ecdsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/ecdsa" || true
  68. test -e "$(DESTDIR)$(swanctldir)/bliss" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/bliss" || true
  69. test -e "$(DESTDIR)$(swanctldir)/pkcs8" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/pkcs8" || true
  70. test -e "$(DESTDIR)$(swanctldir)/pkcs12" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/pkcs12" || true
  71. test -e "$(DESTDIR)$(swanctldir)/swanctl.conf" || $(INSTALL) -m 640 $(srcdir)/swanctl.conf $(DESTDIR)$(swanctldir)/swanctl.conf || true