The fix for gperf in0ae19f0cedadded the generated header to EXTRA_DIST but that's already added to the distribution because it is contained in *_SOURCES, what was not added, though, was the .h.in file. Also fixes the reference to the header file in the .c rule here and for stroke in out-of-tree builds. Fixes:0ae19f0ced("configure: Fix gperf length parameter determination")
23 lines
723 B
Makefile
23 lines
723 B
Makefile
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 > $@
|