1 ipsec_PROGRAMS = starter
2 starter_SOURCES = y.tab.c netkey.c y.tab.h parser.h args.h netkey.h \
3 starterwhack.c starterwhack.h starterstroke.c invokepluto.c confread.c \
4 starterstroke.h interfaces.c invokepluto.h confread.h interfaces.h args.c \
5 keywords.c files.h keywords.h cmp.c starter.c cmp.h exec.c invokecharon.c \
6 exec.h invokecharon.h lex.yy.c loglite.c klips.c klips.h
8 INCLUDES = -I${linuxdir} -I$(top_srcdir)/src/libfreeswan -I$(top_srcdir)/src/pluto -I$(top_srcdir)/src/whack -I$(top_srcdir)/src/stroke
9 AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" -DIPSEC_CONFDIR=\"${confdir}\" -DIPSEC_PIDDIR=\"${piddir}\" -DIPSEC_EAPDIR=\"${eapdir}\" -DDEBUG
10 starter_LDADD = defs.o $(top_builddir)/src/libfreeswan/libfreeswan.a
11 EXTRA_DIST = parser.l parser.y keywords.txt ipsec.conf
12 dist_man_MANS = ipsec.conf.5 starter.8
13 MAINTAINERCLEANFILES = lex.yy.c y.tab.c y.tab.h keywords.c
15 PLUTODIR=$(top_srcdir)/src/pluto
16 SCEPCLIENTDIR=$(top_srcdir)/src/scepclient
18 lex.yy.c: parser.l parser.y parser.h y.tab.c
21 y.tab.c: parser.y parser.l parser.h
24 y.tab.h: parser.y parser.l parser.h
27 keywords.c: keywords.txt keywords.h
28 $(GPERF) -C -G -t < $< > $@
30 defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
31 $(COMPILE) -c -o $@ $<
34 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
35 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
36 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
37 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
38 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
39 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
40 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
41 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
42 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
43 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -m 644 ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true