9ed82be5edd9260a8e6595bce43cf081bc9c9d3b
[strongswan.git] / src / charon-cmd / Makefile.am
1 sbin_PROGRAMS = charon-cmd
2 CLEANFILES = charon-cmd.8
3 dist_man8_MANS = charon-cmd.8
4 EXTRA_DIST = charon-cmd.8.in
5
6 charon_cmd_SOURCES = \
7         cmd/cmd_options.h cmd/cmd_options.c \
8         cmd/cmd_connection.h cmd/cmd_connection.c \
9         cmd/cmd_creds.h cmd/cmd_creds.c \
10         charon-cmd.c
11
12 charon-cmd.o :  $(top_builddir)/config.status
13
14 AM_CPPFLAGS = \
15         -I$(top_srcdir)/src/libstrongswan \
16         -I$(top_srcdir)/src/libhydra \
17         -I$(top_srcdir)/src/libcharon \
18         -DIPSEC_DIR=\"${ipsecdir}\" \
19         -DIPSEC_PIDDIR=\"${piddir}\" \
20         -DPLUGINS=\""${cmd_plugins}\""
21
22 charon_cmd_LDADD = \
23         $(top_builddir)/src/libstrongswan/libstrongswan.la \
24         $(top_builddir)/src/libhydra/libhydra.la \
25         $(top_builddir)/src/libcharon/libcharon.la \
26         -lm $(PTHREADLIB) $(DLLIB)
27
28 charon-cmd.8 : charon-cmd.8.in
29         $(AM_V_GEN) \
30         sed \
31         -e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
32         $(srcdir)/$@.in > $@