1 ipsec_PROGRAMS = starter
3 parser.y lexer.l ipsec-parser.h netkey.c args.h netkey.h \
4 starterwhack.c starterwhack.h starterstroke.c invokepluto.c confread.c \
5 starterstroke.h interfaces.c invokepluto.h confread.h interfaces.h args.c \
6 keywords.c files.h keywords.h cmp.c starter.c cmp.h exec.c invokecharon.c \
7 exec.h invokecharon.h loglite.c klips.c klips.h
11 -I$(top_srcdir)/src/libstrongswan \
12 -I$(top_srcdir)/src/libfreeswan \
13 -I$(top_srcdir)/src/libhydra \
14 -I$(top_srcdir)/src/pluto \
15 -I$(top_srcdir)/src/whack \
16 -I$(top_srcdir)/src/stroke
19 -DIPSEC_DIR=\"${ipsecdir}\" \
20 -DIPSEC_CONFDIR=\"${sysconfdir}\" \
21 -DIPSEC_PIDDIR=\"${piddir}\" \
22 -DIPSEC_EAPDIR=\"${eapdir}\" \
23 -DDEV_RANDOM=\"${random_device}\" \
24 -DDEV_URANDOM=\"${urandom_device}\" \
25 -DPLUGINS=\""${starter_plugins}\"" \
30 starter_LDADD = defs.o $(top_builddir)/src/libfreeswan/libfreeswan.a $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB)
31 EXTRA_DIST = keywords.txt ipsec.conf
32 MAINTAINERCLEANFILES = keywords.c
33 BUILT_SOURCES = parser.h
35 PLUTODIR=$(top_srcdir)/src/pluto
36 SCEPCLIENTDIR=$(top_srcdir)/src/scepclient
39 AM_CFLAGS += -DSTART_PLUTO
43 AM_CFLAGS += -DSTART_CHARON
47 AM_CFLAGS += -DLOAD_WARNING
51 AM_CFLAGS += -DGENERATE_SELFCERT
54 keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h
55 $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
57 defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
58 $(COMPILE) -c -o $@ $(PLUTODIR)/defs.c
61 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -o -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
62 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
63 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
64 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
65 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
66 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
67 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
68 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
69 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
70 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -m 644 $(srcdir)/ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true