summaryrefslogtreecommitdiff
path: root/src/charon-cmd/Makefile.am
blob: 9ed82be5edd9260a8e6595bce43cf081bc9c9d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sbin_PROGRAMS = charon-cmd
CLEANFILES = charon-cmd.8
dist_man8_MANS = charon-cmd.8
EXTRA_DIST = charon-cmd.8.in

charon_cmd_SOURCES = \
	cmd/cmd_options.h cmd/cmd_options.c \
	cmd/cmd_connection.h cmd/cmd_connection.c \
	cmd/cmd_creds.h cmd/cmd_creds.c \
	charon-cmd.c

charon-cmd.o :	$(top_builddir)/config.status

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/libstrongswan \
	-I$(top_srcdir)/src/libhydra \
	-I$(top_srcdir)/src/libcharon \
	-DIPSEC_DIR=\"${ipsecdir}\" \
	-DIPSEC_PIDDIR=\"${piddir}\" \
	-DPLUGINS=\""${cmd_plugins}\""

charon_cmd_LDADD = \
	$(top_builddir)/src/libstrongswan/libstrongswan.la \
	$(top_builddir)/src/libhydra/libhydra.la \
	$(top_builddir)/src/libcharon/libcharon.la \
	-lm $(PTHREADLIB) $(DLLIB)

charon-cmd.8 : charon-cmd.8.in
	$(AM_V_GEN) \
	sed \
	-e "s:@IPSEC_VERSION@:$(PACKAGE_VERSION):" \
	$(srcdir)/$@.in > $@