1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
#
# API headers
nobase_pkginclude_HEADERS = \
tbl/acct_fields_req.h \
tbl/acct_fields_bereq.h \
tbl/backend_poll.h \
tbl/ban_vars.h \
tbl/bo_flags.h \
tbl/body_status.h \
tbl/debug_bits.h \
tbl/feature_bits.h \
tbl/http_headers.h \
tbl/http_response.h \
tbl/locks.h \
tbl/req_body.h \
tbl/sess_close.h \
tbl/steps.h \
tbl/symbol_kind.h \
tbl/vcc_types.h \
tbl/vcl_returns.h \
tbl/vrt_stv_var.h \
tbl/vsc_types.h \
tbl/vsc_all.h \
tbl/vsc_fields.h \
tbl/vsc_levels.h \
tbl/vsc_f_main.h \
tbl/vsl_tags.h \
tbl/vsl_tags_http.h \
vapi/vsm.h \
vapi/vsm_int.h \
vapi/vsc.h \
vapi/vsc_int.h \
vapi/vsl.h \
vapi/vsl_int.h \
vapi/voptget.h \
vapi/vapi_options.h \
vcli.h
# Private headers
nobase_noinst_HEADERS = \
binary_heap.h \
compat/daemon.h \
compat/execinfo.h \
flopen.h \
libvcc.h \
persistent.h \
vcli_common.h \
vcli_priv.h \
vcli_serve.h \
vcs_version.h \
vct.h \
vcurses.h \
vend.h \
vev.h \
vfil.h \
vin.h \
vlu.h \
vmb.h \
vnum.h \
vpf.h \
vrnd.h \
vsub.h \
vss.h \
vtcp.h \
vtim.h \
vtree.h \
vut.h \
vut_options.h
# Headers for use with vmods
pkgdataincludedir = $(pkgdatadir)/include
nobase_pkgdatainclude_HEADERS = \
miniobj.h \
vas.h \
vav.h \
vbm.h \
vcl.h \
vcs.h \
vmod_abi.h \
vqueue.h \
vre.h \
vdef.h \
vrt.h \
vrt_obj.h \
vsa.h \
vsb.h \
vsha256.h
tbl/vrt_stv_var.h tbl/vcl_returns.h tbl/vcc_types.h vcl.h vrt_obj.h: $(top_srcdir)/lib/libvcc/generate.py $(top_srcdir)/include/vrt.h
mkdir -p tbl
@PYTHON@ $(top_srcdir)/lib/libvcc/generate.py $(top_srcdir) $(top_builddir)
BUILT_SOURCES = vcs_version.h vmod_abi.h
MAINTAINERCLEANFILES = vcs_version.h
vcs_version.h: FORCE
@if [ -d "$(top_srcdir)/.git" ]; then \
V="$$(git show -s --pretty=format:%h)" \
B="$$(git rev-parse --abbrev-ref HEAD)" \
H="$$(head -n 1 vcs_version.h 2>/dev/null || true)"; \
if [ "/* $$V */" != "$$H" ]; then \
( \
echo "/* $$V */" ;\
echo '/*' ;\
echo ' * NB: This file is machine generated, DO NOT EDIT!' ;\
echo ' *' ;\
echo ' * Run make to regenerate' ;\
echo ' *' ;\
echo ' */' ;\
echo "/* $$V */" ;\
echo '' ;\
echo "#define VCS_Version \"$$V\"" ; \
echo "#define VCS_Branch \"$$B\"" \
) > vcs_version.h ; \
fi \
else \
if [ ! -f vcs_version.h ]; then \
( \
echo "/* NOGIT */" ; \
echo '/* No git commit ID available, see include/Makefile.am for explanation */' ; \
echo '#define VCS_Version "NOGIT"' ; \
echo '#define VCS_Branch "NOGIT"' \
) > vcs_version.h ; \
fi \
fi
FORCE:
# If vcs_version contains NOGIT, Varnish has not been built from a
# tarball made with make dist, nor from a git checkout, so there's no
# way for us to give strong guarantees about what version you're
# actually running.
#
# The way to fix this is to either build Varnish from a tarball made
# with `make dist` or a git checkout.
vmod_abi.h: vcs_version.h
@GITID=$$(sed 's/[^0-9a-f]//g;q' vcs_version.h) ; \
if [ -z "$$GITID" ]; then \
echo "warning: weak VMOD ABI checking, see include/Makefile.am" ; \
fi ; \
echo "#define VMOD_ABI_Version \"@PACKAGE_STRING@ $$GITID\"" > vmod_abi.h
CLEANFILES = \
tbl/vcl_returns.h \
tbl/vrt_stv_var.h \
vcl.h \
vrt_obj.h \
vmod_abi.h
|