3 ipsec_PROGRAMS = starter
6 args.c args.h confread.c confread.h keywords.c keywords.h cmp.c cmp.h \
7 invokecharon.c invokecharon.h starterstroke.c starterstroke.h \
8 netkey.c netkey.h klips.c klips.h
10 # parser is also used by tests
11 noinst_LTLIBRARIES = libstarter.la
12 libstarter_la_SOURCES = \
13 parser/parser.y parser/lexer.l parser/conf_parser.c parser/conf_parser.h
17 -I$(top_srcdir)/src/libstrongswan \
18 -I$(top_srcdir)/src/libhydra \
19 -I$(top_srcdir)/src/starter \
20 -I$(top_srcdir)/src/stroke \
21 -DIPSEC_DIR=\"${ipsecdir}\" \
22 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
23 -DIPSEC_PIDDIR=\"${piddir}\" \
24 -DIPSEC_EAPDIR=\"${eapdir}\" \
25 -DIPSEC_SCRIPT=\"${ipsec_script}\" \
26 -DDEV_RANDOM=\"${random_device}\" \
27 -DDEV_URANDOM=\"${urandom_device}\" \
28 -DPLUGINS=\""${starter_plugins}\"" \
34 $(top_builddir)/src/libstrongswan/libstrongswan.la \
35 $(top_builddir)/src/libhydra/libhydra.la \
37 $(SOCKLIB) $(PTHREADLIB)
39 EXTRA_DIST = keywords.txt ipsec.conf Android.mk
40 MAINTAINERCLEANFILES = keywords.c
41 BUILT_SOURCES = keywords.c parser/parser.h
44 AM_CPPFLAGS += -DSTART_CHARON
48 AM_CPPFLAGS += -DLOAD_WARNING
52 AM_CPPFLAGS += -DGENERATE_SELFCERT
55 keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h
57 $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
60 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
61 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
62 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
63 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
64 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
65 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
66 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
67 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
68 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
69 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true