2014-05-20 16:16:48 +00:00
|
|
|
SUBDIRS = . tests
|
|
|
|
|
2006-05-16 14:24:03 +00:00
|
|
|
ipsec_PROGRAMS = starter
|
2011-10-10 17:31:04 +00:00
|
|
|
starter_SOURCES = \
|
2014-05-20 16:15:13 +00:00
|
|
|
starter.c files.h \
|
2014-05-21 13:06:12 +00:00
|
|
|
args.c args.h confread.c confread.h keywords.c keywords.h cmp.c cmp.h \
|
2014-05-20 16:15:13 +00:00
|
|
|
invokecharon.c invokecharon.h starterstroke.c starterstroke.h \
|
|
|
|
netkey.c netkey.h klips.c klips.h
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2014-06-19 09:58:15 +00:00
|
|
|
# parser is also used by tests
|
|
|
|
noinst_LTLIBRARIES = libstarter.la
|
|
|
|
libstarter_la_SOURCES = \
|
|
|
|
parser/parser.y parser/lexer.l parser/conf_parser.c parser/conf_parser.h
|
|
|
|
|
2013-07-17 12:45:39 +00:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I${linux_headers} \
|
|
|
|
-I$(top_srcdir)/src/libstrongswan \
|
|
|
|
-I$(top_srcdir)/src/libhydra \
|
2014-05-20 16:15:13 +00:00
|
|
|
-I$(top_srcdir)/src/starter \
|
2013-07-17 12:45:39 +00:00
|
|
|
-I$(top_srcdir)/src/stroke \
|
|
|
|
-DIPSEC_DIR=\"${ipsecdir}\" \
|
|
|
|
-DIPSEC_CONFDIR=\"${sysconfdir}\" \
|
|
|
|
-DIPSEC_PIDDIR=\"${piddir}\" \
|
|
|
|
-DIPSEC_EAPDIR=\"${eapdir}\" \
|
2013-07-22 15:59:49 +00:00
|
|
|
-DIPSEC_SCRIPT=\"${ipsec_script}\" \
|
2013-07-17 12:45:39 +00:00
|
|
|
-DDEV_RANDOM=\"${random_device}\" \
|
|
|
|
-DDEV_URANDOM=\"${urandom_device}\" \
|
|
|
|
-DPLUGINS=\""${starter_plugins}\"" \
|
|
|
|
-DDEBUG
|
2009-05-26 15:19:26 +00:00
|
|
|
|
2011-10-10 17:31:04 +00:00
|
|
|
AM_YFLAGS = -v -d
|
|
|
|
|
2014-05-20 16:15:13 +00:00
|
|
|
starter_LDADD = \
|
|
|
|
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
|
|
|
$(top_builddir)/src/libhydra/libhydra.la \
|
2014-06-19 09:58:15 +00:00
|
|
|
libstarter.la \
|
2014-05-20 16:15:13 +00:00
|
|
|
$(SOCKLIB) $(PTHREADLIB)
|
|
|
|
|
2011-11-22 17:31:12 +00:00
|
|
|
EXTRA_DIST = keywords.txt ipsec.conf Android.mk
|
2011-10-10 17:31:04 +00:00
|
|
|
MAINTAINERCLEANFILES = keywords.c
|
2014-05-21 13:06:12 +00:00
|
|
|
BUILT_SOURCES = keywords.c parser/parser.h
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2009-03-24 15:02:12 +00:00
|
|
|
if USE_CHARON
|
2013-07-17 12:45:39 +00:00
|
|
|
AM_CPPFLAGS += -DSTART_CHARON
|
2009-03-24 15:02:12 +00:00
|
|
|
endif
|
|
|
|
|
2010-07-15 04:29:26 +00:00
|
|
|
if USE_LOAD_WARNING
|
2013-07-17 12:45:39 +00:00
|
|
|
AM_CPPFLAGS += -DLOAD_WARNING
|
2010-07-15 04:29:26 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-27 13:26:53 +00:00
|
|
|
if USE_SCEPCLIENT
|
2013-07-17 12:45:39 +00:00
|
|
|
AM_CPPFLAGS += -DGENERATE_SELFCERT
|
2011-10-12 14:37:21 +00:00
|
|
|
endif
|
|
|
|
|
2009-04-30 11:37:54 +00:00
|
|
|
keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h
|
2013-04-10 12:02:53 +00:00
|
|
|
$(AM_V_GEN) \
|
2009-07-16 08:09:23 +00:00
|
|
|
$(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
|
2006-05-16 14:24:03 +00:00
|
|
|
|
2009-09-07 09:46:16 +00:00
|
|
|
install-exec-local :
|
2012-06-19 15:26:54 +00:00
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
|
2011-01-15 15:24:19 +00:00
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
|
|
|
|
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
|
|
|
|
test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true
|