memcached 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. data/CHANGELOG +2 -0
  2. data/Manifest +206 -12
  3. data/Rakefile +32 -1
  4. data/ext/extconf.rb +10 -35
  5. data/ext/libmemcached-0.32/AUTHORS +7 -0
  6. data/ext/libmemcached-0.32/COPYING +32 -0
  7. data/ext/libmemcached-0.32/ChangeLog +303 -0
  8. data/ext/libmemcached-0.32/INSTALL +302 -0
  9. data/ext/libmemcached-0.32/Makefile.am +36 -0
  10. data/ext/libmemcached-0.32/Makefile.in +828 -0
  11. data/ext/libmemcached-0.32/NEWS +1 -0
  12. data/ext/libmemcached-0.32/README +33 -0
  13. data/ext/libmemcached-0.32/THANKS +14 -0
  14. data/ext/libmemcached-0.32/TODO +11 -0
  15. data/ext/libmemcached-0.32/aclocal.m4 +1852 -0
  16. data/ext/libmemcached-0.32/clients/Makefile.am +73 -0
  17. data/ext/libmemcached-0.32/clients/Makefile.in +770 -0
  18. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  19. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  20. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  21. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  22. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  23. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  24. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  25. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  26. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  27. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  28. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  29. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  30. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  31. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  32. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  33. data/ext/libmemcached-0.32/config.h.in +252 -0
  34. data/ext/libmemcached-0.32/config/compile +143 -0
  35. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  36. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  37. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  38. data/ext/libmemcached-0.32/config/depcomp +630 -0
  39. data/ext/libmemcached-0.32/config/install-sh +520 -0
  40. data/ext/libmemcached-0.32/config/ltmain.sh +8406 -0
  41. data/ext/libmemcached-0.32/config/missing +376 -0
  42. data/ext/libmemcached-0.32/configure +23048 -0
  43. data/ext/libmemcached-0.32/configure.ac +122 -0
  44. data/ext/libmemcached-0.32/docs/Makefile.am +415 -0
  45. data/ext/libmemcached-0.32/docs/Makefile.in +918 -0
  46. data/ext/libmemcached-0.32/docs/libmemcached.pod +123 -0
  47. data/ext/libmemcached-0.32/docs/libmemcached_examples.pod +115 -0
  48. data/ext/libmemcached-0.32/docs/libmemcachedutil.pod +40 -0
  49. data/ext/libmemcached-0.32/docs/memcached_analyze.pod +52 -0
  50. data/ext/libmemcached-0.32/docs/memcached_auto.pod +97 -0
  51. data/ext/libmemcached-0.32/docs/memcached_behavior.pod +224 -0
  52. data/ext/libmemcached-0.32/docs/memcached_callback.pod +123 -0
  53. data/ext/libmemcached-0.32/docs/memcached_create.pod +61 -0
  54. data/ext/libmemcached-0.32/docs/memcached_delete.pod +54 -0
  55. data/ext/libmemcached-0.32/docs/memcached_dump.pod +53 -0
  56. data/ext/libmemcached-0.32/docs/memcached_flush.pod +46 -0
  57. data/ext/libmemcached-0.32/docs/memcached_flush_buffers.pod +42 -0
  58. data/ext/libmemcached-0.32/docs/memcached_generate_hash_value.pod +57 -0
  59. data/ext/libmemcached-0.32/docs/memcached_get.pod +161 -0
  60. data/ext/libmemcached-0.32/docs/memcached_memory_allocators.pod +73 -0
  61. data/ext/libmemcached-0.32/docs/memcached_pool.pod +77 -0
  62. data/ext/libmemcached-0.32/docs/memcached_quit.pod +47 -0
  63. data/ext/libmemcached-0.32/docs/memcached_sasl.pod +63 -0
  64. data/ext/libmemcached-0.32/docs/memcached_server_st.pod +75 -0
  65. data/ext/libmemcached-0.32/docs/memcached_servers.pod +102 -0
  66. data/ext/libmemcached-0.32/docs/memcached_set.pod +187 -0
  67. data/ext/libmemcached-0.32/docs/memcached_stats.pod +82 -0
  68. data/ext/libmemcached-0.32/docs/memcached_strerror.pod +46 -0
  69. data/ext/libmemcached-0.32/docs/memcached_user_data.pod +49 -0
  70. data/ext/libmemcached-0.32/docs/memcached_verbosity.pod +41 -0
  71. data/ext/libmemcached-0.32/docs/memcached_version.pod +56 -0
  72. data/ext/libmemcached-0.32/docs/memcat.pod +37 -0
  73. data/ext/libmemcached-0.32/docs/memcp.pod +40 -0
  74. data/ext/libmemcached-0.32/docs/memdump.pod +31 -0
  75. data/ext/libmemcached-0.32/docs/memerror.pod +30 -0
  76. data/ext/libmemcached-0.32/docs/memflush.pod +35 -0
  77. data/ext/libmemcached-0.32/docs/memrm.pod +34 -0
  78. data/ext/libmemcached-0.32/docs/memslap.pod +33 -0
  79. data/ext/libmemcached-0.32/docs/memstat.pod +35 -0
  80. data/ext/libmemcached-0.32/libmemcached/Makefile.am +107 -0
  81. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1050 -0
  82. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  83. data/ext/libmemcached-0.32/libmemcached/common.h +183 -0
  84. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  85. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  86. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  87. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  88. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +28 -0
  89. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +78 -0
  90. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached.c +152 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached.h +302 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +366 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +285 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +361 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +145 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +34 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +22 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +495 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +547 -0
  116. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +59 -0
  117. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  118. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  119. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  120. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  121. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  122. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +528 -0
  123. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  124. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  125. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  126. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  127. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  128. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  129. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +454 -0
  130. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  131. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  132. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  133. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  134. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  135. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  136. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  137. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  138. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  139. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  140. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  141. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  142. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  143. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +602 -0
  144. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  145. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  146. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  147. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  148. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  149. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  150. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  151. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  152. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  153. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  154. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  155. data/ext/libmemcached-0.32/m4/libtool.m4 +7360 -0
  156. data/ext/libmemcached-0.32/m4/ltoptions.m4 +368 -0
  157. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  158. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  159. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +92 -0
  160. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  161. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  162. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  163. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  164. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  165. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  166. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  167. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  168. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  169. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  170. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  171. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  172. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  173. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  174. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  175. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  176. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  177. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  178. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  179. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  180. data/ext/libmemcached-0.32/support/Makefile.in +485 -0
  181. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  182. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  183. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  184. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  185. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  186. data/ext/libmemcached-0.32/tests/Makefile.am +105 -0
  187. data/ext/libmemcached-0.32/tests/Makefile.in +748 -0
  188. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  189. data/ext/libmemcached-0.32/tests/function.c +4781 -0
  190. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  191. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  192. data/ext/libmemcached-0.32/tests/output.res +7 -0
  193. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  194. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  195. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  196. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  197. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  198. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  199. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  200. data/ext/libmemcached-0.32/tests/server.c +118 -0
  201. data/ext/libmemcached-0.32/tests/server.h +25 -0
  202. data/ext/libmemcached-0.32/tests/start.c +16 -0
  203. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  204. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  205. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  206. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  207. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  208. data/ext/libmemcached-0.32/tests/test.c +137 -0
  209. data/ext/libmemcached-0.32/tests/test.h +46 -0
  210. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  211. data/memcached.gemspec +4 -4
  212. data/test/unit/memcached_test.rb +30 -0
  213. metadata +213 -16
  214. data/ext/libmemcached-0.32.tar.gz +0 -0
  215. data/ext/libmemcached-1.patch +0 -270
  216. data/ext/libmemcached-10.patch +0 -12
  217. data/ext/libmemcached-2.patch +0 -116
  218. data/ext/libmemcached-3.patch +0 -8
  219. data/ext/libmemcached-4.patch +0 -40
  220. data/ext/libmemcached-5.patch +0 -832
  221. data/ext/libmemcached-6.patch +0 -20
  222. data/ext/libmemcached-7.patch +0 -2989
  223. data/ext/libmemcached-8.patch +0 -137
  224. data/ext/libmemcached-9.patch +0 -13
  225. data/ext/sasl.patch +0 -29283
@@ -0,0 +1,105 @@
1
+ Name: libmemcached
2
+ Summary: memcached C library and command line tools
3
+ Version: @VERSION@
4
+ Release: 1%{?dist}
5
+ License: BSD
6
+ Group: System Environment/Libraries
7
+ URL: http://tangent.org/552/libmemcached.html
8
+ Source0: http://download.tangent.org/libmemcached-%{version}.tar.gz
9
+
10
+ # For test suite
11
+ BuildRequires: memcached
12
+
13
+ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
+
15
+
16
+ %description
17
+ libmemcached is a C client library to the memcached server
18
+ (http://danga.com/memcached). It has been designed to be light on memory
19
+ usage, and provide full access to server side methods.
20
+
21
+ It also implements several command line tools:
22
+
23
+ memcat - Copy the value of a key to standard output.
24
+ memflush - Flush the contents of your servers.
25
+ memrm - Remove a key(s) from the serrver.
26
+ memstat - Dump the stats of your servers to standard output.
27
+ memslap - Generate testing loads on a memcached cluster.
28
+ memcp - Copy files to memcached servers.
29
+ memerror - Creates human readable messages from libmemecached error codes.
30
+
31
+
32
+ %package devel
33
+ Summary: Header files and development libraries for %{name}
34
+ Group: Development/Libraries
35
+ Requires: %{name} = %{version}-%{release}
36
+
37
+ %description devel
38
+ This package contains the header files and development libraries
39
+ for %{name}. If you like to develop programs using %{name},
40
+ you will need to install %{name}-devel.
41
+
42
+
43
+ %prep
44
+ %setup -q
45
+
46
+ %{__mkdir} examples
47
+ %{__cp} tests/*.{c,cpp,h} examples/
48
+
49
+
50
+ %build
51
+ %configure
52
+ %{__make} %{_smp_mflags}
53
+
54
+
55
+ %install
56
+ %{__rm} -rf %{buildroot}
57
+ %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
58
+
59
+
60
+ %check
61
+ # test suite cannot run in mock (same port use for memcache server on all arch)
62
+ # 1 test seems to fail..
63
+ #%{__make} test
64
+
65
+
66
+ %clean
67
+ %{__rm} -rf %{buildroot}
68
+
69
+
70
+ %post -p /sbin/ldconfig
71
+
72
+
73
+ %postun -p /sbin/ldconfig
74
+
75
+
76
+ %files
77
+ %defattr (-,root,root,-)
78
+ %doc AUTHORS COPYING NEWS README THANKS TODO
79
+ %{_bindir}/mem*
80
+ %exclude %{_libdir}/libmemcached.a
81
+ %exclude %{_libdir}/libmemcached.la
82
+ %exclude %{_libdir}/libmemcachedutil.a
83
+ %exclude %{_libdir}/libmemcachedutil.la
84
+ %{_libdir}/libmemcached.so.*
85
+ %{_libdir}/libmemcachedutil.so.*
86
+ %{_mandir}/man1/mem*
87
+
88
+
89
+ %files devel
90
+ %defattr (-,root,root,-)
91
+ %doc examples
92
+ %{_includedir}/libmemcached
93
+ %{_libdir}/libmemcached.so
94
+ %{_libdir}/libmemcachedutil.so
95
+ %{_libdir}/pkgconfig/libmemcached.pc
96
+ %{_mandir}/man3/libmemcached*.3.gz
97
+ %{_mandir}/man3/memcached_*.3.gz
98
+
99
+
100
+ %changelog
101
+ * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
102
+ - Initial RPM from Brian Aker spec
103
+ - create -devel subpackage
104
+ - add %%post %%postun %%check section
105
+
@@ -0,0 +1,10 @@
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ includedir=@includedir@
5
+
6
+ Name: libmemcached
7
+ Description: libmemcached C library.
8
+ Version: @VERSION@
9
+ Libs: -L${libdir} -lmemcached
10
+ Cflags: -I${includedir}
@@ -0,0 +1,105 @@
1
+ Name: libmemcached
2
+ Summary: memcached C library and command line tools
3
+ Version: 0.32
4
+ Release: 1
5
+ License: BSD
6
+ Group: System Environment/Libraries
7
+ URL: http://tangent.org/552/libmemcached.html
8
+ Source0: http://download.tangent.org/libmemcached-%{version}.tar.gz
9
+
10
+ # For test suite
11
+ BuildRequires: memcached
12
+
13
+ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
+
15
+
16
+ %description
17
+ libmemcached is a C client library to the memcached server
18
+ (http://danga.com/memcached). It has been designed to be light on memory
19
+ usage, and provide full access to server side methods.
20
+
21
+ It also implements several command line tools:
22
+
23
+ memcat - Copy the value of a key to standard output.
24
+ memflush - Flush the contents of your servers.
25
+ memrm - Remove a key(s) from the serrver.
26
+ memstat - Dump the stats of your servers to standard output.
27
+ memslap - Generate testing loads on a memcached cluster.
28
+ memcp - Copy files to memcached servers.
29
+ memerror - Creates human readable messages from libmemecached error codes.
30
+
31
+
32
+ %package devel
33
+ Summary: Header files and development libraries for %{name}
34
+ Group: Development/Libraries
35
+ Requires: %{name} = %{version}-%{release}
36
+
37
+ %description devel
38
+ This package contains the header files and development libraries
39
+ for %{name}. If you like to develop programs using %{name},
40
+ you will need to install %{name}-devel.
41
+
42
+
43
+ %prep
44
+ %setup -q
45
+
46
+ %{__mkdir} examples
47
+ %{__cp} tests/*.{c,cpp,h} examples/
48
+
49
+
50
+ %build
51
+ %configure
52
+ %{__make} %{_smp_mflags}
53
+
54
+
55
+ %install
56
+ %{__rm} -rf %{buildroot}
57
+ %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
58
+
59
+
60
+ %check
61
+ # test suite cannot run in mock (same port use for memcache server on all arch)
62
+ # 1 test seems to fail..
63
+ #%{__make} test
64
+
65
+
66
+ %clean
67
+ %{__rm} -rf %{buildroot}
68
+
69
+
70
+ %post -p /sbin/ldconfig
71
+
72
+
73
+ %postun -p /sbin/ldconfig
74
+
75
+
76
+ %files
77
+ %defattr (-,root,root,-)
78
+ %doc AUTHORS COPYING NEWS README THANKS TODO
79
+ %{_bindir}/mem*
80
+ %exclude %{_libdir}/libmemcached.a
81
+ %exclude %{_libdir}/libmemcached.la
82
+ %exclude %{_libdir}/libmemcachedutil.a
83
+ %exclude %{_libdir}/libmemcachedutil.la
84
+ %{_libdir}/libmemcached.so.*
85
+ %{_libdir}/libmemcachedutil.so.*
86
+ %{_mandir}/man1/mem*
87
+
88
+
89
+ %files devel
90
+ %defattr (-,root,root,-)
91
+ %doc examples
92
+ %{_includedir}/libmemcached
93
+ %{_libdir}/libmemcached.so
94
+ %{_libdir}/libmemcachedutil.so
95
+ %{_libdir}/pkgconfig/libmemcached.pc
96
+ %{_mandir}/man3/libmemcached*.3.gz
97
+ %{_mandir}/man3/memcached_*.3.gz
98
+
99
+
100
+ %changelog
101
+ * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
102
+ - Initial RPM from Brian Aker spec
103
+ - create -devel subpackage
104
+ - add %%post %%postun %%check section
105
+
@@ -0,0 +1,105 @@
1
+ Name: libmemcached
2
+ Summary: memcached C library and command line tools
3
+ Version: @VERSION@
4
+ Release: 1
5
+ License: BSD
6
+ Group: System Environment/Libraries
7
+ URL: http://tangent.org/552/libmemcached.html
8
+ Source0: http://download.tangent.org/libmemcached-%{version}.tar.gz
9
+
10
+ # For test suite
11
+ BuildRequires: memcached
12
+
13
+ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
+
15
+
16
+ %description
17
+ libmemcached is a C client library to the memcached server
18
+ (http://danga.com/memcached). It has been designed to be light on memory
19
+ usage, and provide full access to server side methods.
20
+
21
+ It also implements several command line tools:
22
+
23
+ memcat - Copy the value of a key to standard output.
24
+ memflush - Flush the contents of your servers.
25
+ memrm - Remove a key(s) from the serrver.
26
+ memstat - Dump the stats of your servers to standard output.
27
+ memslap - Generate testing loads on a memcached cluster.
28
+ memcp - Copy files to memcached servers.
29
+ memerror - Creates human readable messages from libmemecached error codes.
30
+
31
+
32
+ %package devel
33
+ Summary: Header files and development libraries for %{name}
34
+ Group: Development/Libraries
35
+ Requires: %{name} = %{version}-%{release}
36
+
37
+ %description devel
38
+ This package contains the header files and development libraries
39
+ for %{name}. If you like to develop programs using %{name},
40
+ you will need to install %{name}-devel.
41
+
42
+
43
+ %prep
44
+ %setup -q
45
+
46
+ %{__mkdir} examples
47
+ %{__cp} tests/*.{c,cpp,h} examples/
48
+
49
+
50
+ %build
51
+ %configure
52
+ %{__make} %{_smp_mflags}
53
+
54
+
55
+ %install
56
+ %{__rm} -rf %{buildroot}
57
+ %{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
58
+
59
+
60
+ %check
61
+ # test suite cannot run in mock (same port use for memcache server on all arch)
62
+ # 1 test seems to fail..
63
+ #%{__make} test
64
+
65
+
66
+ %clean
67
+ %{__rm} -rf %{buildroot}
68
+
69
+
70
+ %post -p /sbin/ldconfig
71
+
72
+
73
+ %postun -p /sbin/ldconfig
74
+
75
+
76
+ %files
77
+ %defattr (-,root,root,-)
78
+ %doc AUTHORS COPYING NEWS README THANKS TODO
79
+ %{_bindir}/mem*
80
+ %exclude %{_libdir}/libmemcached.a
81
+ %exclude %{_libdir}/libmemcached.la
82
+ %exclude %{_libdir}/libmemcachedutil.a
83
+ %exclude %{_libdir}/libmemcachedutil.la
84
+ %{_libdir}/libmemcached.so.*
85
+ %{_libdir}/libmemcachedutil.so.*
86
+ %{_mandir}/man1/mem*
87
+
88
+
89
+ %files devel
90
+ %defattr (-,root,root,-)
91
+ %doc examples
92
+ %{_includedir}/libmemcached
93
+ %{_libdir}/libmemcached.so
94
+ %{_libdir}/libmemcachedutil.so
95
+ %{_libdir}/pkgconfig/libmemcached.pc
96
+ %{_mandir}/man3/libmemcached*.3.gz
97
+ %{_mandir}/man3/memcached_*.3.gz
98
+
99
+
100
+ %changelog
101
+ * Sat Apr 25 2009 Remi Collet <rpms@famillecollet.com> - 0.28-1
102
+ - Initial RPM from Brian Aker spec
103
+ - create -devel subpackage
104
+ - add %%post %%postun %%check section
105
+
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ src/memslap --concurrency=5 --execute-number=5000 --servers=localhost --test=set --flush
4
+ src/memslap --concurrency=5 --execute-number=5000 --non-blocking --servers=localhost --test=set --flush
5
+ src/memslap --concurrency=5 --execute-number=5000 --non-blocking --tcp-nodelay --servers=localhost --test=set --flush
@@ -0,0 +1,105 @@
1
+ LDADDS = $(top_builddir)/libmemcached/libmemcached.la
2
+
3
+ if BUILD_LIBMEMCACHEDUTIL
4
+ LDADDS+= $(top_builddir)/libmemcachedutil/libmemcachedutil.la
5
+ endif
6
+
7
+ EXTRA_DIST = output.res output2.res\
8
+ r/memcat.res\
9
+ r/memcp.res\
10
+ r/memrm.res\
11
+ r/memslap.res\
12
+ r/memstat.res\
13
+ t/memcat.test\
14
+ t/memcp.test\
15
+ t/memrm.test\
16
+ t/memslap.test\
17
+ t/memstat.test
18
+
19
+ LIBS =
20
+
21
+ noinst_HEADERS = test.h server.h ketama_test_cases.h
22
+ noinst_PROGRAMS = testapp testplus udptest atomsmasher startservers
23
+ noinst_LTLIBRARIES= libserver.la libtest.la
24
+
25
+ libserver_la_SOURCES= server.c
26
+ libtest_la_SOURCES= test.c
27
+
28
+ testapp_CFLAGS= $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING)
29
+ testapp_SOURCES = function.c
30
+ testapp_LDADD = $(top_builddir)/clients/libgenexec.la libtest.la libserver.la $(LDADDS)
31
+
32
+ testplus_SOURCES = plus.cpp
33
+ testplus_LDADD = libtest.la libserver.la $(LDADDS)
34
+
35
+ udptest_SOURCES = udp.c
36
+ udptest_LDADD = libtest.la libserver.la $(LDADDS)
37
+
38
+ atomsmasher_SOURCES = atomsmasher.c
39
+ atomsmasher_LDADD = $(top_builddir)/clients/libgenexec.la libtest.la libserver.la $(LDADDS)
40
+
41
+ startservers_SOURCES = start.c
42
+ startservers_LDADD = libserver.la $(LDADDS)
43
+
44
+ record:
45
+ ./testapp > output.res
46
+ ./testplus > output_plus.res
47
+
48
+ client-record:
49
+ sh t/memcat.test > r/memcat.res
50
+ sh t/memcp.test > r/memcp.res
51
+ sh t/memrm.test > r/memrm.res
52
+ sh t/memslap.test > r/memslap.res
53
+ sh t/memstat.test > r/memstat.res
54
+
55
+ record-extended:
56
+ ./testapp extended > output2.res
57
+
58
+ test: testapp testplus library_test
59
+ echo "Tests completed"
60
+
61
+ library_test:
62
+ ./testapp > output.cmp
63
+ diff output.res output.cmp
64
+ # ./testplus > output_plus.cmp
65
+ # diff output_plus.res output_plus.cmp
66
+
67
+ clients:
68
+ memcached -d -P /tmp/Xumemc.pid -p 12555
69
+ export MEMCACHED_SERVERS="localhost:12555"
70
+ sh t/memcat.test > r/memcat.cmp
71
+ diff r/memcat.res r/memcat.cmp
72
+ sh t/memcp.test > r/memcp.cmp
73
+ diff r/memcp.res r/memcp.cmp
74
+ sh t/memrm.test > r/memrm.cmp
75
+ diff r/memrm.res r/memrm.cmp
76
+ sh t/memslap.test > r/memslap.cmp
77
+ diff r/memslap.res r/memslap.cmp
78
+ sh t/memstat.test > r/memstat.cmp
79
+ diff r/memstat.res r/memstat.cmp
80
+ cat /tmp/Xumemc.pid | xargs kill
81
+ rm /tmp/Xumemc.pid
82
+
83
+ valgrind:
84
+ libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp
85
+
86
+ cachegrind:
87
+ rm -f cachegrind.out.*
88
+ libtool --mode=execute valgrind --tool=cachegrind --branch-sim=yes testapp
89
+ cg_annotate cachegrind.out.* --auto=yes > /tmp/cachegrind.out
90
+
91
+ callgrind:
92
+ rm -f callgrind.out.*
93
+ libtool --mode=execute valgrind --tool=callgrind testapp
94
+ callgrind_annotate callgrind.out.* --auto=yes > /tmp/callgrind.out
95
+
96
+ helgrind:
97
+ rm -f helgrind.out.*
98
+ libtool --mode=execute valgrind --tool=helgrind testapp
99
+
100
+ helgrind-slap:
101
+ libtool --mode=execute valgrind --tool=helgrind ${top_builddir}/clients/memslap --server=localhost --concurrency=30
102
+
103
+ test-no-outputdiff: testapp
104
+ ./testapp > /dev/null
105
+ @echo "Test completed"
@@ -0,0 +1,748 @@
1
+ # Makefile.in generated by automake 1.11 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+
18
+
19
+
20
+ VPATH = @srcdir@
21
+ pkgdatadir = $(datadir)/@PACKAGE@
22
+ pkgincludedir = $(includedir)/@PACKAGE@
23
+ pkglibdir = $(libdir)/@PACKAGE@
24
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
25
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
26
+ install_sh_DATA = $(install_sh) -c -m 644
27
+ install_sh_PROGRAM = $(install_sh) -c
28
+ install_sh_SCRIPT = $(install_sh) -c
29
+ INSTALL_HEADER = $(INSTALL_DATA)
30
+ transform = $(program_transform_name)
31
+ NORMAL_INSTALL = :
32
+ PRE_INSTALL = :
33
+ POST_INSTALL = :
34
+ NORMAL_UNINSTALL = :
35
+ PRE_UNINSTALL = :
36
+ POST_UNINSTALL = :
37
+ build_triplet = @build@
38
+ host_triplet = @host@
39
+ target_triplet = @target@
40
+ @BUILD_LIBMEMCACHEDUTIL_TRUE@am__append_1 = $(top_builddir)/libmemcachedutil/libmemcachedutil.la
41
+ noinst_PROGRAMS = testapp$(EXEEXT) testplus$(EXEEXT) udptest$(EXEEXT) \
42
+ atomsmasher$(EXEEXT) startservers$(EXEEXT)
43
+ subdir = tests
44
+ DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
45
+ $(srcdir)/Makefile.in
46
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
47
+ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_cxx_compile_stdcxx_0x.m4 \
48
+ $(top_srcdir)/m4/ac_cxx_header_stdcxx_98.m4 \
49
+ $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/byteorder.m4 \
50
+ $(top_srcdir)/m4/deprecated.m4 \
51
+ $(top_srcdir)/m4/enable_utillib.m4 \
52
+ $(top_srcdir)/m4/extensions.m4 $(top_srcdir)/m4/hsieh.m4 \
53
+ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \
54
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
55
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
56
+ $(top_srcdir)/m4/memcached.m4 \
57
+ $(top_srcdir)/m4/pandora_64bit.m4 \
58
+ $(top_srcdir)/m4/pandora_canonical.m4 \
59
+ $(top_srcdir)/m4/pandora_check_compiler_version.m4 \
60
+ $(top_srcdir)/m4/pandora_check_cxx_standard.m4 \
61
+ $(top_srcdir)/m4/pandora_enable_dtrace.m4 \
62
+ $(top_srcdir)/m4/pandora_ensure_gcc_version.m4 \
63
+ $(top_srcdir)/m4/pandora_have_better_malloc.m4 \
64
+ $(top_srcdir)/m4/pandora_have_sasl.m4 \
65
+ $(top_srcdir)/m4/pandora_header_assert.m4 \
66
+ $(top_srcdir)/m4/pandora_libtool.m4 \
67
+ $(top_srcdir)/m4/pandora_optimize.m4 \
68
+ $(top_srcdir)/m4/pandora_shared_ptr.m4 \
69
+ $(top_srcdir)/m4/pandora_vc_build.m4 \
70
+ $(top_srcdir)/m4/pandora_warnings.m4 \
71
+ $(top_srcdir)/m4/pod2man.m4 \
72
+ $(top_srcdir)/m4/protocol_binary.m4 \
73
+ $(top_srcdir)/m4/setsockopt.m4 $(top_srcdir)/m4/visibility.m4 \
74
+ $(top_srcdir)/configure.ac
75
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
76
+ $(ACLOCAL_M4)
77
+ mkinstalldirs = $(install_sh) -d
78
+ CONFIG_HEADER = $(top_builddir)/config.h
79
+ CONFIG_CLEAN_FILES =
80
+ CONFIG_CLEAN_VPATH_FILES =
81
+ LTLIBRARIES = $(noinst_LTLIBRARIES)
82
+ libserver_la_LIBADD =
83
+ am_libserver_la_OBJECTS = server.lo
84
+ libserver_la_OBJECTS = $(am_libserver_la_OBJECTS)
85
+ libtest_la_LIBADD =
86
+ am_libtest_la_OBJECTS = test.lo
87
+ libtest_la_OBJECTS = $(am_libtest_la_OBJECTS)
88
+ PROGRAMS = $(noinst_PROGRAMS)
89
+ am_atomsmasher_OBJECTS = atomsmasher.$(OBJEXT)
90
+ atomsmasher_OBJECTS = $(am_atomsmasher_OBJECTS)
91
+ atomsmasher_DEPENDENCIES = $(top_builddir)/clients/libgenexec.la \
92
+ libtest.la libserver.la $(LDADDS)
93
+ am_startservers_OBJECTS = start.$(OBJEXT)
94
+ startservers_OBJECTS = $(am_startservers_OBJECTS)
95
+ startservers_DEPENDENCIES = libserver.la $(LDADDS)
96
+ am_testapp_OBJECTS = testapp-function.$(OBJEXT)
97
+ testapp_OBJECTS = $(am_testapp_OBJECTS)
98
+ testapp_DEPENDENCIES = $(top_builddir)/clients/libgenexec.la \
99
+ libtest.la libserver.la $(LDADDS)
100
+ testapp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
101
+ --mode=link $(CCLD) $(testapp_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
102
+ $(LDFLAGS) -o $@
103
+ am_testplus_OBJECTS = plus.$(OBJEXT)
104
+ testplus_OBJECTS = $(am_testplus_OBJECTS)
105
+ testplus_DEPENDENCIES = libtest.la libserver.la $(LDADDS)
106
+ am_udptest_OBJECTS = udp.$(OBJEXT)
107
+ udptest_OBJECTS = $(am_udptest_OBJECTS)
108
+ udptest_DEPENDENCIES = libtest.la libserver.la $(LDADDS)
109
+ DEFAULT_INCLUDES =
110
+ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
111
+ am__depfiles_maybe = depfiles
112
+ am__mv = mv -f
113
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
114
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
115
+ LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
116
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
117
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
118
+ CCLD = $(CC)
119
+ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
120
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
121
+ $(LDFLAGS) -o $@
122
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
123
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
124
+ LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
125
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
126
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
127
+ CXXLD = $(CXX)
128
+ CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
129
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
130
+ $(LDFLAGS) -o $@
131
+ SOURCES = $(libserver_la_SOURCES) $(libtest_la_SOURCES) \
132
+ $(atomsmasher_SOURCES) $(startservers_SOURCES) \
133
+ $(testapp_SOURCES) $(testplus_SOURCES) $(udptest_SOURCES)
134
+ DIST_SOURCES = $(libserver_la_SOURCES) $(libtest_la_SOURCES) \
135
+ $(atomsmasher_SOURCES) $(startservers_SOURCES) \
136
+ $(testapp_SOURCES) $(testplus_SOURCES) $(udptest_SOURCES)
137
+ HEADERS = $(noinst_HEADERS)
138
+ ETAGS = etags
139
+ CTAGS = ctags
140
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
141
+ ACLOCAL = @ACLOCAL@
142
+ AMTAR = @AMTAR@
143
+ AM_CFLAGS = @AM_CFLAGS@
144
+ AM_CPPFLAGS = @AM_CPPFLAGS@
145
+ AM_CXXFLAGS = @AM_CXXFLAGS@
146
+ AR = @AR@
147
+ AUTOCONF = @AUTOCONF@
148
+ AUTOHEADER = @AUTOHEADER@
149
+ AUTOMAKE = @AUTOMAKE@
150
+ AWK = @AWK@
151
+ BETTER_MALLOC_LIBS = @BETTER_MALLOC_LIBS@
152
+ CC = @CC@
153
+ CCDEPMODE = @CCDEPMODE@
154
+ CC_VERSION = @CC_VERSION@
155
+ CFLAGS = @CFLAGS@
156
+ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
157
+ CPP = @CPP@
158
+ CPPFLAGS = @CPPFLAGS@
159
+ CXX = @CXX@
160
+ CXXCPP = @CXXCPP@
161
+ CXXDEPMODE = @CXXDEPMODE@
162
+ CXXFLAGS = @CXXFLAGS@
163
+ CXX_VERSION = @CXX_VERSION@
164
+ CYGPATH_W = @CYGPATH_W@
165
+ DEFS = @DEFS@
166
+ DEPDIR = @DEPDIR@
167
+ DEPRECATED = @DEPRECATED@
168
+ DOXYGEN = @DOXYGEN@
169
+ DSYMUTIL = @DSYMUTIL@
170
+ DTRACE = @DTRACE@
171
+ DTRACEFLAGS = @DTRACEFLAGS@
172
+ DUMPBIN = @DUMPBIN@
173
+ ECHO_C = @ECHO_C@
174
+ ECHO_N = @ECHO_N@
175
+ ECHO_T = @ECHO_T@
176
+ EGREP = @EGREP@
177
+ EXEEXT = @EXEEXT@
178
+ FGREP = @FGREP@
179
+ GREP = @GREP@
180
+ HAVE_LIBSASL = @HAVE_LIBSASL@
181
+ HAVE_LIBSASL2 = @HAVE_LIBSASL2@
182
+ HAVE_VISIBILITY = @HAVE_VISIBILITY@
183
+ INSTALL = @INSTALL@
184
+ INSTALL_DATA = @INSTALL_DATA@
185
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
186
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
187
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
188
+ ISAINFO = @ISAINFO@
189
+ LD = @LD@
190
+ LDFLAGS = @LDFLAGS@
191
+ LD_UTIL_VERSION_SCRIPT = @LD_UTIL_VERSION_SCRIPT@
192
+ LD_VERSION_SCRIPT = @LD_VERSION_SCRIPT@
193
+ LIBC_P = @LIBC_P@
194
+ LIBM = @LIBM@
195
+ LIBMEMCACHED_WITH_SASL_SUPPORT = @LIBMEMCACHED_WITH_SASL_SUPPORT@
196
+ LIBOBJS = @LIBOBJS@
197
+ LIBS =
198
+ LIBSASL = @LIBSASL@
199
+ LIBSASL2 = @LIBSASL2@
200
+ LIBSASL2_PREFIX = @LIBSASL2_PREFIX@
201
+ LIBSASL_PREFIX = @LIBSASL_PREFIX@
202
+ LIBTOOL = @LIBTOOL@
203
+ LIPO = @LIPO@
204
+ LN_S = @LN_S@
205
+ LTLIBOBJS = @LTLIBOBJS@
206
+ LTLIBSASL = @LTLIBSASL@
207
+ LTLIBSASL2 = @LTLIBSASL2@
208
+ MAKEINFO = @MAKEINFO@
209
+ MEMCACHEDUTIL_LIBRARY_VERSION = @MEMCACHEDUTIL_LIBRARY_VERSION@
210
+ MEMCACHED_LIBRARY_VERSION = @MEMCACHED_LIBRARY_VERSION@
211
+ MEMC_BINARY = @MEMC_BINARY@
212
+ MKDIR_P = @MKDIR_P@
213
+ NM = @NM@
214
+ NMEDIT = @NMEDIT@
215
+ NO_CONVERSION = @NO_CONVERSION@
216
+ NO_REDUNDANT_DECLS = @NO_REDUNDANT_DECLS@
217
+ NO_SHADOW = @NO_SHADOW@
218
+ NO_STRICT_ALIASING = @NO_STRICT_ALIASING@
219
+ NO_UNREACHED = @NO_UNREACHED@
220
+ OBJDUMP = @OBJDUMP@
221
+ OBJEXT = @OBJEXT@
222
+ OTOOL = @OTOOL@
223
+ OTOOL64 = @OTOOL64@
224
+ PACKAGE = @PACKAGE@
225
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
226
+ PACKAGE_NAME = @PACKAGE_NAME@
227
+ PACKAGE_STRING = @PACKAGE_STRING@
228
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
229
+ PACKAGE_URL = @PACKAGE_URL@
230
+ PACKAGE_VERSION = @PACKAGE_VERSION@
231
+ PATH_SEPARATOR = @PATH_SEPARATOR@
232
+ PERL = @PERL@
233
+ POD2MAN = @POD2MAN@
234
+ PROTOSKIP_WARNINGS = @PROTOSKIP_WARNINGS@
235
+ PTHREAD_CC = @PTHREAD_CC@
236
+ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
237
+ PTHREAD_LIBS = @PTHREAD_LIBS@
238
+ RANLIB = @RANLIB@
239
+ SED = @SED@
240
+ SET_MAKE = @SET_MAKE@
241
+ SHELL = @SHELL@
242
+ STRIP = @STRIP@
243
+ VERSION = @VERSION@
244
+ abs_builddir = @abs_builddir@
245
+ abs_srcdir = @abs_srcdir@
246
+ abs_top_builddir = @abs_top_builddir@
247
+ abs_top_srcdir = @abs_top_srcdir@
248
+ ac_ct_CC = @ac_ct_CC@
249
+ ac_ct_CXX = @ac_ct_CXX@
250
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
251
+ acx_pthread_config = @acx_pthread_config@
252
+ am__include = @am__include@
253
+ am__leading_dot = @am__leading_dot@
254
+ am__quote = @am__quote@
255
+ am__tar = @am__tar@
256
+ am__untar = @am__untar@
257
+ bindir = @bindir@
258
+ build = @build@
259
+ build_alias = @build_alias@
260
+ build_cpu = @build_cpu@
261
+ build_os = @build_os@
262
+ build_vendor = @build_vendor@
263
+ builddir = @builddir@
264
+ datadir = @datadir@
265
+ datarootdir = @datarootdir@
266
+ docdir = @docdir@
267
+ dvidir = @dvidir@
268
+ exec_prefix = @exec_prefix@
269
+ host = @host@
270
+ host_alias = @host_alias@
271
+ host_cpu = @host_cpu@
272
+ host_os = @host_os@
273
+ host_vendor = @host_vendor@
274
+ htmldir = @htmldir@
275
+ includedir = @includedir@
276
+ infodir = @infodir@
277
+ install_sh = @install_sh@
278
+ libdir = @libdir@
279
+ libexecdir = @libexecdir@
280
+ localedir = @localedir@
281
+ localstatedir = @localstatedir@
282
+ lt_ECHO = @lt_ECHO@
283
+ mandir = @mandir@
284
+ mkdir_p = @mkdir_p@
285
+ oldincludedir = @oldincludedir@
286
+ pdfdir = @pdfdir@
287
+ prefix = @prefix@
288
+ program_transform_name = @program_transform_name@
289
+ psdir = @psdir@
290
+ sbindir = @sbindir@
291
+ sharedstatedir = @sharedstatedir@
292
+ srcdir = @srcdir@
293
+ sysconfdir = @sysconfdir@
294
+ target = @target@
295
+ target_alias = @target_alias@
296
+ target_cpu = @target_cpu@
297
+ target_os = @target_os@
298
+ target_vendor = @target_vendor@
299
+ top_build_prefix = @top_build_prefix@
300
+ top_builddir = @top_builddir@
301
+ top_srcdir = @top_srcdir@
302
+ LDADDS = $(top_builddir)/libmemcached/libmemcached.la $(am__append_1)
303
+ EXTRA_DIST = output.res output2.res\
304
+ r/memcat.res\
305
+ r/memcp.res\
306
+ r/memrm.res\
307
+ r/memslap.res\
308
+ r/memstat.res\
309
+ t/memcat.test\
310
+ t/memcp.test\
311
+ t/memrm.test\
312
+ t/memslap.test\
313
+ t/memstat.test
314
+
315
+ noinst_HEADERS = test.h server.h ketama_test_cases.h
316
+ noinst_LTLIBRARIES = libserver.la libtest.la
317
+ libserver_la_SOURCES = server.c
318
+ libtest_la_SOURCES = test.c
319
+ testapp_CFLAGS = $(AM_CFLAGS) $(NO_CONVERSION) $(NO_STRICT_ALIASING)
320
+ testapp_SOURCES = function.c
321
+ testapp_LDADD = $(top_builddir)/clients/libgenexec.la libtest.la libserver.la $(LDADDS)
322
+ testplus_SOURCES = plus.cpp
323
+ testplus_LDADD = libtest.la libserver.la $(LDADDS)
324
+ udptest_SOURCES = udp.c
325
+ udptest_LDADD = libtest.la libserver.la $(LDADDS)
326
+ atomsmasher_SOURCES = atomsmasher.c
327
+ atomsmasher_LDADD = $(top_builddir)/clients/libgenexec.la libtest.la libserver.la $(LDADDS)
328
+ startservers_SOURCES = start.c
329
+ startservers_LDADD = libserver.la $(LDADDS)
330
+ all: all-am
331
+
332
+ .SUFFIXES:
333
+ .SUFFIXES: .c .cpp .lo .o .obj
334
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
335
+ @for dep in $?; do \
336
+ case '$(am__configure_deps)' in \
337
+ *$$dep*) \
338
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
339
+ && { if test -f $@; then exit 0; else break; fi; }; \
340
+ exit 1;; \
341
+ esac; \
342
+ done; \
343
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
344
+ $(am__cd) $(top_srcdir) && \
345
+ $(AUTOMAKE) --gnu tests/Makefile
346
+ .PRECIOUS: Makefile
347
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
348
+ @case '$?' in \
349
+ *config.status*) \
350
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
351
+ *) \
352
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
353
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
354
+ esac;
355
+
356
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
357
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
358
+
359
+ $(top_srcdir)/configure: $(am__configure_deps)
360
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
361
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
362
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
363
+ $(am__aclocal_m4_deps):
364
+
365
+ clean-noinstLTLIBRARIES:
366
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
367
+ @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
368
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
369
+ test "$$dir" != "$$p" || dir=.; \
370
+ echo "rm -f \"$${dir}/so_locations\""; \
371
+ rm -f "$${dir}/so_locations"; \
372
+ done
373
+ libserver.la: $(libserver_la_OBJECTS) $(libserver_la_DEPENDENCIES)
374
+ $(LINK) $(libserver_la_OBJECTS) $(libserver_la_LIBADD) $(LIBS)
375
+ libtest.la: $(libtest_la_OBJECTS) $(libtest_la_DEPENDENCIES)
376
+ $(LINK) $(libtest_la_OBJECTS) $(libtest_la_LIBADD) $(LIBS)
377
+
378
+ clean-noinstPROGRAMS:
379
+ @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
380
+ echo " rm -f" $$list; \
381
+ rm -f $$list || exit $$?; \
382
+ test -n "$(EXEEXT)" || exit 0; \
383
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
384
+ echo " rm -f" $$list; \
385
+ rm -f $$list
386
+ atomsmasher$(EXEEXT): $(atomsmasher_OBJECTS) $(atomsmasher_DEPENDENCIES)
387
+ @rm -f atomsmasher$(EXEEXT)
388
+ $(LINK) $(atomsmasher_OBJECTS) $(atomsmasher_LDADD) $(LIBS)
389
+ startservers$(EXEEXT): $(startservers_OBJECTS) $(startservers_DEPENDENCIES)
390
+ @rm -f startservers$(EXEEXT)
391
+ $(LINK) $(startservers_OBJECTS) $(startservers_LDADD) $(LIBS)
392
+ testapp$(EXEEXT): $(testapp_OBJECTS) $(testapp_DEPENDENCIES)
393
+ @rm -f testapp$(EXEEXT)
394
+ $(testapp_LINK) $(testapp_OBJECTS) $(testapp_LDADD) $(LIBS)
395
+ testplus$(EXEEXT): $(testplus_OBJECTS) $(testplus_DEPENDENCIES)
396
+ @rm -f testplus$(EXEEXT)
397
+ $(CXXLINK) $(testplus_OBJECTS) $(testplus_LDADD) $(LIBS)
398
+ udptest$(EXEEXT): $(udptest_OBJECTS) $(udptest_DEPENDENCIES)
399
+ @rm -f udptest$(EXEEXT)
400
+ $(LINK) $(udptest_OBJECTS) $(udptest_LDADD) $(LIBS)
401
+
402
+ mostlyclean-compile:
403
+ -rm -f *.$(OBJEXT)
404
+
405
+ distclean-compile:
406
+ -rm -f *.tab.c
407
+
408
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atomsmasher.Po@am__quote@
409
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plus.Po@am__quote@
410
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server.Plo@am__quote@
411
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/start.Po@am__quote@
412
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Plo@am__quote@
413
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testapp-function.Po@am__quote@
414
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/udp.Po@am__quote@
415
+
416
+ .c.o:
417
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
418
+ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
419
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
420
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
421
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
422
+ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
423
+
424
+ .c.obj:
425
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
426
+ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
427
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
428
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
429
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
430
+ @am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
431
+
432
+ .c.lo:
433
+ @am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
434
+ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
435
+ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
436
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
437
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
438
+ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
439
+
440
+ testapp-function.o: function.c
441
+ @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testapp_CFLAGS) $(CFLAGS) -MT testapp-function.o -MD -MP -MF $(DEPDIR)/testapp-function.Tpo -c -o testapp-function.o `test -f 'function.c' || echo '$(srcdir)/'`function.c
442
+ @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testapp-function.Tpo $(DEPDIR)/testapp-function.Po
443
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='function.c' object='testapp-function.o' libtool=no @AMDEPBACKSLASH@
444
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
445
+ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testapp_CFLAGS) $(CFLAGS) -c -o testapp-function.o `test -f 'function.c' || echo '$(srcdir)/'`function.c
446
+
447
+ testapp-function.obj: function.c
448
+ @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testapp_CFLAGS) $(CFLAGS) -MT testapp-function.obj -MD -MP -MF $(DEPDIR)/testapp-function.Tpo -c -o testapp-function.obj `if test -f 'function.c'; then $(CYGPATH_W) 'function.c'; else $(CYGPATH_W) '$(srcdir)/function.c'; fi`
449
+ @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testapp-function.Tpo $(DEPDIR)/testapp-function.Po
450
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='function.c' object='testapp-function.obj' libtool=no @AMDEPBACKSLASH@
451
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
452
+ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testapp_CFLAGS) $(CFLAGS) -c -o testapp-function.obj `if test -f 'function.c'; then $(CYGPATH_W) 'function.c'; else $(CYGPATH_W) '$(srcdir)/function.c'; fi`
453
+
454
+ .cpp.o:
455
+ @am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
456
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
457
+ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
458
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
459
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
460
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
461
+
462
+ .cpp.obj:
463
+ @am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
464
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
465
+ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
466
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
467
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
468
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
469
+
470
+ .cpp.lo:
471
+ @am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
472
+ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
473
+ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
474
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
475
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
476
+ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
477
+
478
+ mostlyclean-libtool:
479
+ -rm -f *.lo
480
+
481
+ clean-libtool:
482
+ -rm -rf .libs _libs
483
+
484
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
485
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
486
+ unique=`for i in $$list; do \
487
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
488
+ done | \
489
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
490
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
491
+ mkid -fID $$unique
492
+ tags: TAGS
493
+
494
+ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
495
+ $(TAGS_FILES) $(LISP)
496
+ set x; \
497
+ here=`pwd`; \
498
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
499
+ unique=`for i in $$list; do \
500
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
501
+ done | \
502
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
503
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
504
+ shift; \
505
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
506
+ test -n "$$unique" || unique=$$empty_fix; \
507
+ if test $$# -gt 0; then \
508
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
509
+ "$$@" $$unique; \
510
+ else \
511
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
512
+ $$unique; \
513
+ fi; \
514
+ fi
515
+ ctags: CTAGS
516
+ CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
517
+ $(TAGS_FILES) $(LISP)
518
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
519
+ unique=`for i in $$list; do \
520
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
521
+ done | \
522
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
523
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
524
+ test -z "$(CTAGS_ARGS)$$unique" \
525
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
526
+ $$unique
527
+
528
+ GTAGS:
529
+ here=`$(am__cd) $(top_builddir) && pwd` \
530
+ && $(am__cd) $(top_srcdir) \
531
+ && gtags -i $(GTAGS_ARGS) "$$here"
532
+
533
+ distclean-tags:
534
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
535
+
536
+ distdir: $(DISTFILES)
537
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
538
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
539
+ list='$(DISTFILES)'; \
540
+ dist_files=`for file in $$list; do echo $$file; done | \
541
+ sed -e "s|^$$srcdirstrip/||;t" \
542
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
543
+ case $$dist_files in \
544
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
545
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
546
+ sort -u` ;; \
547
+ esac; \
548
+ for file in $$dist_files; do \
549
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
550
+ if test -d $$d/$$file; then \
551
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
552
+ if test -d "$(distdir)/$$file"; then \
553
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
554
+ fi; \
555
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
556
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
557
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
558
+ fi; \
559
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
560
+ else \
561
+ test -f "$(distdir)/$$file" \
562
+ || cp -p $$d/$$file "$(distdir)/$$file" \
563
+ || exit 1; \
564
+ fi; \
565
+ done
566
+ check-am: all-am
567
+ check: check-am
568
+ all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
569
+ installdirs:
570
+ install: install-am
571
+ install-exec: install-exec-am
572
+ install-data: install-data-am
573
+ uninstall: uninstall-am
574
+
575
+ install-am: all-am
576
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
577
+
578
+ installcheck: installcheck-am
579
+ install-strip:
580
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
581
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
582
+ `test -z '$(STRIP)' || \
583
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
584
+ mostlyclean-generic:
585
+
586
+ clean-generic:
587
+
588
+ distclean-generic:
589
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
590
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
591
+
592
+ maintainer-clean-generic:
593
+ @echo "This command is intended for maintainers to use"
594
+ @echo "it deletes files that may require special tools to rebuild."
595
+ clean: clean-am
596
+
597
+ clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
598
+ clean-noinstPROGRAMS mostlyclean-am
599
+
600
+ distclean: distclean-am
601
+ -rm -rf ./$(DEPDIR)
602
+ -rm -f Makefile
603
+ distclean-am: clean-am distclean-compile distclean-generic \
604
+ distclean-tags
605
+
606
+ dvi: dvi-am
607
+
608
+ dvi-am:
609
+
610
+ html: html-am
611
+
612
+ html-am:
613
+
614
+ info: info-am
615
+
616
+ info-am:
617
+
618
+ install-data-am:
619
+
620
+ install-dvi: install-dvi-am
621
+
622
+ install-dvi-am:
623
+
624
+ install-exec-am:
625
+
626
+ install-html: install-html-am
627
+
628
+ install-html-am:
629
+
630
+ install-info: install-info-am
631
+
632
+ install-info-am:
633
+
634
+ install-man:
635
+
636
+ install-pdf: install-pdf-am
637
+
638
+ install-pdf-am:
639
+
640
+ install-ps: install-ps-am
641
+
642
+ install-ps-am:
643
+
644
+ installcheck-am:
645
+
646
+ maintainer-clean: maintainer-clean-am
647
+ -rm -rf ./$(DEPDIR)
648
+ -rm -f Makefile
649
+ maintainer-clean-am: distclean-am maintainer-clean-generic
650
+
651
+ mostlyclean: mostlyclean-am
652
+
653
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
654
+ mostlyclean-libtool
655
+
656
+ pdf: pdf-am
657
+
658
+ pdf-am:
659
+
660
+ ps: ps-am
661
+
662
+ ps-am:
663
+
664
+ uninstall-am:
665
+
666
+ .MAKE: install-am install-strip
667
+
668
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
669
+ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
670
+ ctags distclean distclean-compile distclean-generic \
671
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
672
+ html-am info info-am install install-am install-data \
673
+ install-data-am install-dvi install-dvi-am install-exec \
674
+ install-exec-am install-html install-html-am install-info \
675
+ install-info-am install-man install-pdf install-pdf-am \
676
+ install-ps install-ps-am install-strip installcheck \
677
+ installcheck-am installdirs maintainer-clean \
678
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
679
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
680
+ tags uninstall uninstall-am
681
+
682
+
683
+ record:
684
+ ./testapp > output.res
685
+ ./testplus > output_plus.res
686
+
687
+ client-record:
688
+ sh t/memcat.test > r/memcat.res
689
+ sh t/memcp.test > r/memcp.res
690
+ sh t/memrm.test > r/memrm.res
691
+ sh t/memslap.test > r/memslap.res
692
+ sh t/memstat.test > r/memstat.res
693
+
694
+ record-extended:
695
+ ./testapp extended > output2.res
696
+
697
+ test: testapp testplus library_test
698
+ echo "Tests completed"
699
+
700
+ library_test:
701
+ ./testapp > output.cmp
702
+ diff output.res output.cmp
703
+ # ./testplus > output_plus.cmp
704
+ # diff output_plus.res output_plus.cmp
705
+
706
+ clients:
707
+ memcached -d -P /tmp/Xumemc.pid -p 12555
708
+ export MEMCACHED_SERVERS="localhost:12555"
709
+ sh t/memcat.test > r/memcat.cmp
710
+ diff r/memcat.res r/memcat.cmp
711
+ sh t/memcp.test > r/memcp.cmp
712
+ diff r/memcp.res r/memcp.cmp
713
+ sh t/memrm.test > r/memrm.cmp
714
+ diff r/memrm.res r/memrm.cmp
715
+ sh t/memslap.test > r/memslap.cmp
716
+ diff r/memslap.res r/memslap.cmp
717
+ sh t/memstat.test > r/memstat.cmp
718
+ diff r/memstat.res r/memstat.cmp
719
+ cat /tmp/Xumemc.pid | xargs kill
720
+ rm /tmp/Xumemc.pid
721
+
722
+ valgrind:
723
+ libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes testapp
724
+
725
+ cachegrind:
726
+ rm -f cachegrind.out.*
727
+ libtool --mode=execute valgrind --tool=cachegrind --branch-sim=yes testapp
728
+ cg_annotate cachegrind.out.* --auto=yes > /tmp/cachegrind.out
729
+
730
+ callgrind:
731
+ rm -f callgrind.out.*
732
+ libtool --mode=execute valgrind --tool=callgrind testapp
733
+ callgrind_annotate callgrind.out.* --auto=yes > /tmp/callgrind.out
734
+
735
+ helgrind:
736
+ rm -f helgrind.out.*
737
+ libtool --mode=execute valgrind --tool=helgrind testapp
738
+
739
+ helgrind-slap:
740
+ libtool --mode=execute valgrind --tool=helgrind ${top_builddir}/clients/memslap --server=localhost --concurrency=30
741
+
742
+ test-no-outputdiff: testapp
743
+ ./testapp > /dev/null
744
+ @echo "Test completed"
745
+
746
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
747
+ # Otherwise a system limit (for SysV at least) may be exceeded.
748
+ .NOEXPORT: