NEWS about eap-dynamic plugin added
[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 INCLUDES = \
10 -I${linux_headers} \
11 -I$(top_srcdir)/src/libstrongswan \
12 -I$(top_srcdir)/src/libhydra \
13 -I$(top_srcdir)/src/stroke
14
15 AM_CFLAGS = \
16 -DIPSEC_DIR=\"${ipsecdir}\" \
17 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
18 -DIPSEC_PIDDIR=\"${piddir}\" \
19 -DIPSEC_EAPDIR=\"${eapdir}\" \
20 -DDEV_RANDOM=\"${random_device}\" \
21 -DDEV_URANDOM=\"${urandom_device}\" \
22 -DPLUGINS=\""${starter_plugins}\"" \
23 -DDEBUG
24
25 AM_YFLAGS = -v -d
26
27 starter_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(top_builddir)/src/libhydra/libhydra.la $(SOCKLIB) $(PTHREADLIB)
28 EXTRA_DIST = keywords.txt ipsec.conf Android.mk
29 MAINTAINERCLEANFILES = keywords.c
30 BUILT_SOURCES = parser.h
31
32 if USE_CHARON
33   AM_CFLAGS += -DSTART_CHARON
34 endif
35
36 if USE_LOAD_WARNING
37   AM_CFLAGS += -DLOAD_WARNING
38 endif
39
40 if USE_TOOLS
41   AM_CFLAGS += -DGENERATE_SELFCERT
42 endif
43
44 keywords.c:     $(srcdir)/keywords.txt $(srcdir)/keywords.h
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
58