2014-01-29 13:37:32 +00:00
|
|
|
sbin_PROGRAMS = swanctl
|
|
|
|
|
|
|
|
swanctl_SOURCES = \
|
|
|
|
command.c command.h \
|
2014-02-10 16:11:42 +00:00
|
|
|
commands/initiate.c \
|
2014-02-11 16:14:51 +00:00
|
|
|
commands/terminate.c \
|
2014-02-13 14:23:16 +00:00
|
|
|
commands/install.c \
|
2014-01-29 16:20:56 +00:00
|
|
|
commands/list_sas.c \
|
2014-02-13 15:13:09 +00:00
|
|
|
commands/list_pols.c \
|
2014-02-19 15:48:04 +00:00
|
|
|
commands/list_conns.c \
|
2014-02-24 16:22:30 +00:00
|
|
|
commands/list_certs.c \
|
2014-04-16 10:07:14 +00:00
|
|
|
commands/list_pools.c \
|
2014-02-17 17:30:32 +00:00
|
|
|
commands/load_conns.c \
|
2014-02-19 10:54:42 +00:00
|
|
|
commands/load_creds.c \
|
2014-04-16 09:20:27 +00:00
|
|
|
commands/load_pools.c \
|
2014-03-06 09:56:50 +00:00
|
|
|
commands/log.c \
|
2014-02-19 15:11:57 +00:00
|
|
|
commands/version.c \
|
2014-02-19 10:09:59 +00:00
|
|
|
swanctl.c swanctl.h
|
2014-01-29 13:37:32 +00:00
|
|
|
|
|
|
|
swanctl_LDADD = \
|
|
|
|
$(top_builddir)/src/libcharon/plugins/vici/libvici.la \
|
|
|
|
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
|
|
|
|
|
|
|
swanctl.o : $(top_builddir)/config.status
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
|
|
-I$(top_srcdir)/src/libcharon/plugins/vici \
|
2014-02-19 10:09:59 +00:00
|
|
|
-DSWANCTLDIR=\""${swanctldir}\"" \
|
2014-01-29 13:37:32 +00:00
|
|
|
-DPLUGINS=\""${s_plugins}\""
|
2014-04-17 16:34:38 +00:00
|
|
|
|
2014-04-17 17:23:48 +00:00
|
|
|
man_MANS = \
|
2014-04-28 14:57:22 +00:00
|
|
|
swanctl.8 \
|
2014-04-17 17:23:48 +00:00
|
|
|
swanctl.conf.5
|
|
|
|
|
2014-04-17 17:15:10 +00:00
|
|
|
BUILT_SOURCES = swanctl.conf swanctl.conf.5.main
|
|
|
|
EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main
|
2014-04-17 17:23:48 +00:00
|
|
|
CLEANFILES = $(man_MANS)
|
2014-04-17 16:59:42 +00:00
|
|
|
|
|
|
|
.opt.conf:
|
|
|
|
$(AM_V_GEN) \
|
2014-04-29 10:15:06 +00:00
|
|
|
$(PYTHON) $(top_srcdir)/conf/format-options.py -n -f conf $< > $(srcdir)/$@
|
2014-04-17 16:59:42 +00:00
|
|
|
|
2014-04-17 17:15:10 +00:00
|
|
|
swanctl.conf.5.main: swanctl.opt
|
|
|
|
$(AM_V_GEN) \
|
2014-04-29 10:15:06 +00:00
|
|
|
$(PYTHON) $(top_srcdir)/conf/format-options.py -n -f man $< > $(srcdir)/$@
|
2014-04-17 17:15:10 +00:00
|
|
|
|
2014-04-17 17:23:48 +00:00
|
|
|
swanctl.conf.5: swanctl.conf.5.head swanctl.conf.5.main swanctl.conf.5.tail
|
|
|
|
$(AM_V_GEN) \
|
|
|
|
cat swanctl.conf.5.head $(srcdir)/swanctl.conf.5.main swanctl.conf.5.tail > $@
|
|
|
|
|
2014-04-17 16:59:42 +00:00
|
|
|
maintainer-clean-local:
|
2014-04-17 17:15:10 +00:00
|
|
|
cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main
|
2014-04-17 16:34:38 +00:00
|
|
|
|
|
|
|
install-data-local: swanctl.conf
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)"
|
|
|
|
test -e "$(DESTDIR)$(swanctldir)/swanctl.conf" || $(INSTALL) -m 640 $(srcdir)/swanctl.conf $(DESTDIR)$(swanctldir)/swanctl.conf || true
|