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
10 -I$(top_srcdir)/src/libstrongswan \
11 -I$(top_srcdir)/src/libfreeswan \
12 -I$(top_srcdir)/src/pluto \
13 -I$(top_srcdir)/src/whack \
14 -I$(top_srcdir)/src/stroke
16 AM_CFLAGS = -DIPSEC_DIR=\"${ipsecdir}\" -DIPSEC_CONFDIR=\"${confdir}\" -DIPSEC_PIDDIR=\"${piddir}\" -DIPSEC_EAPDIR=\"${eapdir}\" -DDEBUG
17 starter_LDADD = defs.o $(top_builddir)/src/libfreeswan/libfreeswan.a $(top_builddir)/src/libstrongswan/libstrongswan.la
18 EXTRA_DIST = parser.l parser.y keywords.txt ipsec.conf
19 dist_man_MANS = ipsec.conf.5 starter.8
20 MAINTAINERCLEANFILES = lex.yy.c y.tab.c y.tab.h keywords.c
22 PLUTODIR=$(top_srcdir)/src/pluto
23 SCEPCLIENTDIR=$(top_srcdir)/src/scepclient
26 AM_CFLAGS += -DSTART_PLUTO
30 AM_CFLAGS += -DSTART_CHARON
33 lex.yy.c: $(srcdir)/parser.l $(srcdir)/parser.y $(srcdir)/parser.h
34 $(LEX) $(srcdir)/parser.l
36 y.tab.c: $(srcdir)/parser.y $(srcdir)/parser.l $(srcdir)/parser.h
37 $(YACC) -v -d $(srcdir)/parser.y
39 y.tab.h: $(srcdir)/parser.y $(srcdir)/parser.l $(srcdir)/parser.h
40 $(YACC) -v -d $(srcdir)/parser.y
42 keywords.c: $(srcdir)/keywords.txt $(srcdir)/keywords.h
43 $(GPERF) -m 10 -C -G -D -t < $(srcdir)/keywords.txt > $@
45 defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
46 $(COMPILE) -c -o $@ $(PLUTODIR)/defs.c
49 test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d" || true
50 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts" || true
51 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts" || true
52 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/certs" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/certs" || true
53 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/acerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/acerts" || true
54 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/aacerts" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/aacerts" || true
55 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/crls" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/crls" || true
56 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/reqs" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d "$(DESTDIR)$(sysconfdir)/ipsec.d/reqs" || true
57 test -e "$(DESTDIR)${sysconfdir}/ipsec.d/private" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -d -m 750 "$(DESTDIR)$(sysconfdir)/ipsec.d/private" || true
58 test -e "$(DESTDIR)$(sysconfdir)/ipsec.conf" || $(INSTALL) -o ${ipsecuser} -g ${ipsecgroup} -m 644 ipsec.conf $(DESTDIR)$(sysconfdir)/ipsec.conf || true