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
|
#
AM_LDFLAGS = $(AM_LT_LDFLAGS)
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include
lib_LTLIBRARIES = libvarnishapi.la
libvarnishapi_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:0:1
libvarnishapi_la_SOURCES = \
../../include/vcs_version.h \
vsl_api.h \
vxp.h \
vxp_tokens.h \
vsc.c \
vsig.c \
vsl.c \
vsl_arg.c \
vsl_cursor.c \
vsl_dispatch.c \
vsl_query.c \
vsm.c \
vut.c \
vxp.c \
vxp_fixed_token.c \
vxp_lexer.c \
vxp_parse.c \
libvarnishapi.map
if ! HAVE_DAEMON
libvarnishapi_la_SOURCES += daemon.c
endif
libvarnishapi_la_CFLAGS = \
-DVARNISH_STATE_DIR='"${VARNISH_STATE_DIR}"'
libvarnishapi_la_LIBADD = \
$(top_builddir)/lib/libvarnish/libvarnish.la \
${NET_LIBS} ${RT_LIBS} ${LIBM}
if HAVE_LD_VERSION_SCRIPT
libvarnishapi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libvarnishapi.map
else
libvarnishapi_la_LDFLAGS += -export-symbols-regex '^V'
endif
EXTRA_DIST = \
generate.py
BUILT_SOURCES = \
vxp_fixed_token.c \
vxp_tokens.h
CLEANFILES = \
$(builddir)/vxp_fixed_token.c \
$(builddir)/vxp_tokens.h
noinst_PROGRAMS = vsl2rst
vsl2rst_SOURCES = \
vsl2rst.c \
$(top_srcdir)/include/tbl/vsl_tags.h \
$(top_srcdir)/include/tbl/vsl_tags_http.h
vxp_fixed_token.c: vxp_tokens.h
vxp_tokens.h: \
$(srcdir)/generate.py
@PYTHON@ $(srcdir)/generate.py $(srcdir) $(top_builddir)
noinst_PROGRAMS += vxp_test
vxp_test_SOURCES = \
$(libvarnishapi_la_SOURCES) \
vxp_test.c
vxp_test_CFLAGS = \
-DVARNISH_STATE_DIR='"${VARNISH_STATE_DIR}"' \
-DVXP_DEBUG
vxp_test_LDADD = \
$(top_builddir)/lib/libvarnish/libvarnish.la \
${RT_LIBS} ${LIBM} ${PTHREAD_LIBS}
noinst_PROGRAMS += vsl_glob_test
vsl_glob_test_SOURCES = vsl_glob_test.c
vsl_glob_test_LDADD = libvarnishapi.la
dist_noinst_SCRIPTS = vsl_glob_test_coverage.sh vxp_test_coverage.sh
TESTS = vsl_glob_test_coverage.sh vxp_test_coverage.sh
TEST_EXTENSIONS = .sh
|