summaryrefslogtreecommitdiff
path: root/src/stroke/Makefile.am
blob: 5c04b5ae79d81a310fe399d02e3c2cebce75fbe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ipsec_PROGRAMS = stroke

stroke_SOURCES = \
stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h

stroke_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB)
EXTRA_DIST = stroke_keywords.h.in stroke_keywords.txt Android.mk
BUILT_SOURCES = stroke_keywords.h stroke_keywords.c
MAINTAINERCLEANFILES = stroke_keywords.h stroke_keywords.c
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/libstrongswan \
	-DIPSEC_PIDDIR=\"${piddir}\"

stroke_keywords.h: $(srcdir)/stroke_keywords.h.in
		$(AM_V_GEN) \
		sed \
		-e "s:\@GPERF_LEN_TYPE\@:$(GPERF_LEN_TYPE):" \
		$< > $@

stroke_keywords.c:	$(srcdir)/stroke_keywords.txt stroke_keywords.h
		$(AM_V_GEN) \
		$(GPERF) -m 10 -D -C -G -t < $(srcdir)/stroke_keywords.txt > $@