configure: Fix typo when enabling CPAN modules as dependency
[strongswan.git] / src / starter / Makefile.am
1 SUBDIRS = . tests
2
3 ipsec_PROGRAMS = starter
4 starter_SOURCES = \
5 starter.c files.h \
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
9
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
14
15 AM_CPPFLAGS = \
16         -I${linux_headers} \
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}\"" \
29         -DDEBUG
30
31 AM_YFLAGS = -v -d
32
33 starter_LDADD = \
34         $(top_builddir)/src/libstrongswan/libstrongswan.la \
35         $(top_builddir)/src/libhydra/libhydra.la \
36         libstarter.la \
37         $(SOCKLIB) $(PTHREADLIB)
38
39 EXTRA_DIST = keywords.txt ipsec.conf Android.mk
40 MAINTAINERCLEANFILES = keywords.c
41 BUILT_SOURCES = keywords.c parser/parser.h
42
43 if USE_LOAD_WARNING
44   AM_CPPFLAGS += -DLOAD_WARNING
45 endif
46
47 if USE_SCEPCLIENT
48   AM_CPPFLAGS += -DGENERATE_SELFCERT
49 endif
50
51 keywords.c:     $(srcdir)/keywords.txt $(srcdir)/keywords.h
52                 $(AM_V_GEN) \
53                 $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
54
55 install-exec-local :
56                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
57                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
58                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
59                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
60                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
61                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
62                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
63                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
64                 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
65                 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true