root/trunk/varnish-cache/lib/libvarnish/Makefile.am @ 4590

Revision 4590, 1.3 KB (checked in by phk, 6 months ago)

Add a function to calculate the proper response to a AUTH challenge
from the CLI.

Put in a separate source file, as it should be included in libvarnishapi
as well.

  • Property svn:keywords set to Id
Line 
1# $Id$
2
3INCLUDES = -I$(top_srcdir)/include @PCRE_CFLAGS@
4
5lib_LTLIBRARIES = libvarnish.la
6
7libvarnish_la_LDFLAGS = -version-info 1:0:0
8
9libvarnish_la_SOURCES = \
10        argv.c \
11        assert.c \
12        binary_heap.c \
13        subproc.c \
14        cli_auth.c \
15        cli_common.c \
16        cli_serve.c \
17        flopen.c \
18        num.c \
19        svn_version.c \
20        time.c \
21        tcp.c \
22        vct.c \
23        version.c \
24        vev.c \
25        vlu.c \
26        vpf.c \
27        vre.c \
28        vsb.c \
29        vsha256.c \
30        vss.c \
31        vtmpfile.c
32
33libvarnish_la_LIBADD = ${RT_LIBS} ${NET_LIBS} ${LIBM} @PCRE_LIBS@
34
35DISTCLEANFILES = svn_version.c
36svn_version.c: FORCE
37        V="$$(git log -n 1 --pretty=format:%h 2>/dev/null || LANG=C svnversion -n $(top_srcdir))" \
38        H="$$(head -n 1 svn_version.c 2>/dev/null || true)"; \
39        [ "$$V" = "exported" ] && [ -e svn_version.c ] && exit 0 ; \
40        if [ "/* $$V */" != "$$H" ]; then \
41                ( \
42                  echo "/* $$V */" ;\
43                  echo "#include <libvarnish.h>" ;\
44                  echo "const char* svn_version(void)" ;\
45                  echo "{" ;\
46                  echo "        const char* SVN_Version = \"$$V\";" ;\
47                  echo "        return SVN_Version;" ;\
48                  echo "}" ;\
49                ) > svn_version.c ; \
50        fi
51FORCE:
52
53if ENABLE_TESTS
54TESTS = num_c_test
55
56noinst_PROGRAMS = ${TESTS}
57
58num_c_test_SOURCES = num.c
59num_c_test_CFLAGS = -DNUM_C_TEST -include config.h
60num_c_test_LDADD = ${LIBM}
61
62test: ${TESTS}
63        @for test in ${TESTS} ; do ./$${test} ; done
64endif
Note: See TracBrowser for help on using the browser.