pki: Add pki --signcrl man page
[strongswan.git] / src / starter / Makefile.am
1 ipsec_PROGRAMS = starter
2 starter_SOURCES = \
3 parser.y lexer.l ipsec-parser.h netkey.c args.h netkey.h \
4 starterstroke.c confread.c \
5 starterstroke.h confread.h args.c \
6 keywords.c files.h keywords.h cmp.c starter.c cmp.h invokecharon.c \
7 invokecharon.h klips.c klips.h
8
9 AM_CPPFLAGS = \
10         -I${linux_headers} \
11         -I$(top_srcdir)/src/libstrongswan \
12         -I$(top_srcdir)/src/libhydra \
13         -I$(top_srcdir)/src/stroke \
14         -DIPSEC_DIR=\"${ipsecdir}\" \
15         -DIPSEC_CONFDIR=\"${sysconfdir}\" \
16         -DIPSEC_PIDDIR=\"${piddir}\" \
17         -DIPSEC_EAPDIR=\"${eapdir}\" \
18         -DIPSEC_SCRIPT=\"${ipsec_script}\" \
19         -DDEV_RANDOM=\"${random_device}\" \
20         -DDEV_URANDOM=\"${urandom_device}\" \
21         -DPLUGINS=\""${starter_plugins}\"" \
22         -DDEBUG
23
24 AM_YFLAGS = -v -d
25
26 starter_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(top_builddir)/src/libhydra/libhydra.la $(SOCKLIB) $(PTHREADLIB)
27 EXTRA_DIST = keywords.txt ipsec.conf Android.mk
28 MAINTAINERCLEANFILES = keywords.c
29 BUILT_SOURCES = parser.h
30
31 if USE_CHARON
32   AM_CPPFLAGS += -DSTART_CHARON
33 endif
34
35 if USE_LOAD_WARNING
36   AM_CPPFLAGS += -DLOAD_WARNING
37 endif
38
39 if USE_TOOLS
40   AM_CPPFLAGS += -DGENERATE_SELFCERT
41 endif
42
43 keywords.c:     $(srcdir)/keywords.txt $(srcdir)/keywords.h
44                 $(AM_V_GEN) \
45                 $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
46
47 install-exec-local :
48                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
49                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
50                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
51                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
52                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
53                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
54                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
55                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
56                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
57                 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true