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