Link libmemcached.so with SASL libs if we build with SASL support
[m6w6/libmemcached] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 # includes append to these:
4 SUFFIXES =
5 PHONY =
6 TESTS =
7 CLEANFILES =
8 bin_PROGRAMS =
9 noinst_HEADERS =
10 lib_LTLIBRARIES =
11 noinst_LTLIBRARIES =
12 noinst_PROGRAMS =
13 include_HEADERS =
14 nobase_include_HEADERS =
15 check_PROGRAMS =
16 EXTRA_HEADERS =
17 BUILT_SOURCES=
18 EXTRA_DIST= \
19 ${srcdir}/m4/pandora_*.m4 \
20 .quickly \
21 README.FIRST \
22 config/autorun.sh \
23 config/pandora-plugin \
24 config/uncrustify.cfg \
25 m4/ac_cxx_header_stdcxx_98.m4 \
26 m4/acx_pthread.m4 \
27 m4/gettext.m4 \
28 m4/iconv.m4 \
29 m4/pkg.m4 \
30 m4/po.m4 \
31 m4/progtest.m4
32
33 TEST_DOCS=
34 if BUILD_DOCS
35 SUBDIRS = docs
36 TEST_DOCS+=test-docs
37 endif
38
39 test-docs:
40 (cd docs && $(MAKE) test-docs)
41 include libmemcached/include.am
42 include clients/include.am
43 include libhashkit/include.am
44 include unittests/include.am
45 include tests/include.am
46 include example/include.am
47 include support/include.am
48 include poll/include.am
49 include win32/include.am
50
51 TESTS += ${check_PROGRAMS}
52
53
54 fedora:
55 rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
56 rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
57 cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
58 rpmbuild -ba support/libmemcached.spec
59 cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
60 cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
61
62 generic:
63 rm -f ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm
64 rm -f ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm
65 cp libmemcached-$(VERSION).tar.gz ~/rpmbuild/SOURCES/
66 rpmbuild -ba support/libmemcached.spec
67 cp ~/rpmbuild/RPMS/x86_64/libmemcached-$(VERSION)*.rpm .
68 cp ~/rpmbuild/SRPMS/libmemcached-$(VERSION)*.rpm .
69
70 rpm: all dist generic fedora
71
72 merge-clean:
73 find ./ | $(GREP) \.gcda | xargs rm -f
74 find ./ | $(GREP) \.gcno | xargs rm -f
75 find ./ | $(GREP) \.gz | xargs rm -f
76 find ./ | $(GREP) \.orig | xargs rm -f
77 find ./ | $(GREP) \.rej | xargs rm -f
78 find ./ | $(GREP) \.rpm | xargs rm -f
79 find ./ | $(GREP) \~$$ | xargs rm -f
80 bzr unknowns
81
82 lcov: lcov-clean check
83 @echo
84 @echo " ------------------------------------------------------"
85 @echo "Make sure ./configure was run with '--enable-coverage'"
86 @echo "------------------------------------------------------"
87 @echo
88 cd libmemcached && lcov --capture --directory . --base-directory .. --output-file lcov.out
89 genhtml -o lcov --function-coverage -t libmemcached libmemcached/lcov.out
90
91 lcov-clean: clean
92 rm -rf lcov */lcov.out
93 find . -name '*.gcno' | xargs rm -f
94 find . -name '*.gcda' | xargs rm -f
95
96 CLEANFILES+= config/top.h
97
98