mhs-xapian 1.0.18a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. data/.gitignore +3 -0
  2. data/AUTHORS +1 -0
  3. data/COPYING +340 -0
  4. data/ChangeLog +5876 -0
  5. data/HACKING +101 -0
  6. data/INSTALL +293 -0
  7. data/Makefile +722 -0
  8. data/Makefile.am +26 -0
  9. data/Makefile.in +722 -0
  10. data/NEWS +2110 -0
  11. data/README +59 -0
  12. data/Rakefile +51 -0
  13. data/TODO +47 -0
  14. data/aclocal.m4 +7675 -0
  15. data/config.guess +1501 -0
  16. data/config.h +56 -0
  17. data/config.h.in +55 -0
  18. data/config.status +1298 -0
  19. data/config.sub +1705 -0
  20. data/configure +18536 -0
  21. data/configure.ac +944 -0
  22. data/csharp/.deps/xapian_wrap.Plo +1 -0
  23. data/csharp/AssemblyInfo.cs +40 -0
  24. data/csharp/AssemblyInfo.cs.in +40 -0
  25. data/csharp/Auto.cs +46 -0
  26. data/csharp/BM25Weight.cs +107 -0
  27. data/csharp/BoolWeight.cs +103 -0
  28. data/csharp/Database.cs +275 -0
  29. data/csharp/DateValueRangeProcessor.cs +61 -0
  30. data/csharp/Document.cs +177 -0
  31. data/csharp/ESet.cs +94 -0
  32. data/csharp/ESetIterator.cs +117 -0
  33. data/csharp/Enquire.cs +274 -0
  34. data/csharp/ExpandDecider.cs +76 -0
  35. data/csharp/Flint.cs +58 -0
  36. data/csharp/InMemory.cs +46 -0
  37. data/csharp/MSet.cs +193 -0
  38. data/csharp/MSetIterator.cs +141 -0
  39. data/csharp/Makefile +868 -0
  40. data/csharp/Makefile.am +106 -0
  41. data/csharp/Makefile.in +868 -0
  42. data/csharp/MatchDecider.cs +76 -0
  43. data/csharp/MultiValueSorter.cs +63 -0
  44. data/csharp/NumberValueRangeProcessor.cs +61 -0
  45. data/csharp/PositionIterator.cs +101 -0
  46. data/csharp/PostingIterator.cs +125 -0
  47. data/csharp/Quartz.cs +58 -0
  48. data/csharp/Query.cs +150 -0
  49. data/csharp/QueryParser.cs +174 -0
  50. data/csharp/RSet.cs +102 -0
  51. data/csharp/Remote.cs +100 -0
  52. data/csharp/SWIGTYPE_p_std__string.cs +30 -0
  53. data/csharp/SWIGTYPE_p_std__vectorTXapian__Query_t.cs +30 -0
  54. data/csharp/SWIGTYPE_p_std__vectorTstd__string_t.cs +30 -0
  55. data/csharp/SimpleStopper.cs +64 -0
  56. data/csharp/SmokeTest.cs +178 -0
  57. data/csharp/Sorter.cs +76 -0
  58. data/csharp/Stem.cs +66 -0
  59. data/csharp/Stopper.cs +91 -0
  60. data/csharp/StringValueRangeProcessor.cs +53 -0
  61. data/csharp/TermGenerator.cs +152 -0
  62. data/csharp/TermIterator.cs +125 -0
  63. data/csharp/TradWeight.cs +107 -0
  64. data/csharp/ValueIterator.cs +102 -0
  65. data/csharp/ValueRangeProcessor.cs +76 -0
  66. data/csharp/Version.cs +60 -0
  67. data/csharp/Weight.cs +93 -0
  68. data/csharp/WritableDatabase.cs +153 -0
  69. data/csharp/Xapian.cs +65 -0
  70. data/csharp/XapianPINVOKE.cs +1527 -0
  71. data/csharp/docs/Makefile +450 -0
  72. data/csharp/docs/Makefile.am +16 -0
  73. data/csharp/docs/Makefile.in +450 -0
  74. data/csharp/docs/examples/SimpleExpand.cs +109 -0
  75. data/csharp/docs/examples/SimpleIndex.cs +71 -0
  76. data/csharp/docs/examples/SimpleSearch.cs +78 -0
  77. data/csharp/docs/index.html +211 -0
  78. data/csharp/util.i +233 -0
  79. data/csharp/xapian_wrap.cc +10338 -0
  80. data/csharp/xapian_wrap.h +93 -0
  81. data/depcomp +632 -0
  82. data/extconf.rb +20 -0
  83. data/generic/except.i +80 -0
  84. data/generic/generic.mk +48 -0
  85. data/install-sh +520 -0
  86. data/java-swig/.deps/xapian_wrap.Plo +1 -0
  87. data/java-swig/Auto.java +35 -0
  88. data/java-swig/BM25Weight.java +81 -0
  89. data/java-swig/BoolWeight.java +77 -0
  90. data/java-swig/Database.java +195 -0
  91. data/java-swig/DateValueRangeProcessor.java +51 -0
  92. data/java-swig/Document.java +135 -0
  93. data/java-swig/ESet.java +71 -0
  94. data/java-swig/ESetIterator.java +71 -0
  95. data/java-swig/Enquire.java +246 -0
  96. data/java-swig/ExpandDecider.java +59 -0
  97. data/java-swig/Flint.java +43 -0
  98. data/java-swig/InMemory.java +35 -0
  99. data/java-swig/MSet.java +143 -0
  100. data/java-swig/MSetIterator.java +87 -0
  101. data/java-swig/Makefile +781 -0
  102. data/java-swig/Makefile.am +132 -0
  103. data/java-swig/Makefile.in +781 -0
  104. data/java-swig/MatchDecider.java +59 -0
  105. data/java-swig/MultiValueSorter.java +51 -0
  106. data/java-swig/NumberValueRangeProcessor.java +51 -0
  107. data/java-swig/PositionIterator.java +63 -0
  108. data/java-swig/PostingIterator.java +83 -0
  109. data/java-swig/Quartz.java +43 -0
  110. data/java-swig/Query.java +189 -0
  111. data/java-swig/QueryParser.java +214 -0
  112. data/java-swig/RSet.java +79 -0
  113. data/java-swig/Remote.java +71 -0
  114. data/java-swig/SWIGTYPE_p_std__string.java +25 -0
  115. data/java-swig/SimpleStopper.java +51 -0
  116. data/java-swig/SmokeTest.java +161 -0
  117. data/java-swig/Sorter.java +59 -0
  118. data/java-swig/Stem.java +51 -0
  119. data/java-swig/Stopper.java +63 -0
  120. data/java-swig/StringValueRangeProcessor.java +43 -0
  121. data/java-swig/TermGenerator.java +158 -0
  122. data/java-swig/TermIterator.java +83 -0
  123. data/java-swig/TradWeight.java +81 -0
  124. data/java-swig/ValueIterator.java +67 -0
  125. data/java-swig/ValueRangeProcessor.java +59 -0
  126. data/java-swig/Version.java +47 -0
  127. data/java-swig/Weight.java +68 -0
  128. data/java-swig/WritableDatabase.java +123 -0
  129. data/java-swig/Xapian.java +39 -0
  130. data/java-swig/XapianConstants.java +15 -0
  131. data/java-swig/XapianJNI.java +508 -0
  132. data/java-swig/run-java-test +6 -0
  133. data/java-swig/xapian_wrap.cc +12594 -0
  134. data/java-swig/xapian_wrap.h +91 -0
  135. data/java/Makefile +660 -0
  136. data/java/Makefile.am +35 -0
  137. data/java/Makefile.in +660 -0
  138. data/java/README +76 -0
  139. data/java/SmokeTest.java +148 -0
  140. data/java/native/.deps/Database.Plo +1 -0
  141. data/java/native/.deps/Document.Plo +1 -0
  142. data/java/native/.deps/ESet.Plo +1 -0
  143. data/java/native/.deps/ESetIterator.Plo +1 -0
  144. data/java/native/.deps/Enquire.Plo +1 -0
  145. data/java/native/.deps/MSet.Plo +1 -0
  146. data/java/native/.deps/MSetIterator.Plo +1 -0
  147. data/java/native/.deps/PositionIterator.Plo +1 -0
  148. data/java/native/.deps/Query.Plo +1 -0
  149. data/java/native/.deps/RSet.Plo +1 -0
  150. data/java/native/.deps/Stem.Plo +1 -0
  151. data/java/native/.deps/TermIterator.Plo +1 -0
  152. data/java/native/.deps/WritableDatabase.Plo +1 -0
  153. data/java/native/.deps/org_xapian_XapianJNI.Plo +1 -0
  154. data/java/native/.deps/utils.Plo +1 -0
  155. data/java/native/Database.cc +222 -0
  156. data/java/native/Document.cc +173 -0
  157. data/java/native/ESet.cc +79 -0
  158. data/java/native/ESetIterator.cc +82 -0
  159. data/java/native/Enquire.cc +271 -0
  160. data/java/native/MSet.cc +169 -0
  161. data/java/native/MSetIterator.cc +107 -0
  162. data/java/native/Makefile +594 -0
  163. data/java/native/Makefile.am +51 -0
  164. data/java/native/Makefile.in +594 -0
  165. data/java/native/PositionIterator.cc +64 -0
  166. data/java/native/Query.cc +180 -0
  167. data/java/native/RSet.cc +98 -0
  168. data/java/native/Stem.cc +75 -0
  169. data/java/native/TermIterator.cc +107 -0
  170. data/java/native/WritableDatabase.cc +118 -0
  171. data/java/native/XapianObjectHolder.h +115 -0
  172. data/java/native/org_xapian_XapianJNI.cc +78 -0
  173. data/java/native/org_xapian_XapianJNI.h +1369 -0
  174. data/java/native/utils.cc +51 -0
  175. data/java/native/xapian_jni.h +116 -0
  176. data/java/org/xapian/Database.java +148 -0
  177. data/java/org/xapian/Document.java +135 -0
  178. data/java/org/xapian/ESet.java +66 -0
  179. data/java/org/xapian/ESetIterator.java +97 -0
  180. data/java/org/xapian/Enquire.java +136 -0
  181. data/java/org/xapian/ExpandDecider.java +30 -0
  182. data/java/org/xapian/MSet.java +104 -0
  183. data/java/org/xapian/MSetIterator.java +132 -0
  184. data/java/org/xapian/Makefile +580 -0
  185. data/java/org/xapian/Makefile.am +38 -0
  186. data/java/org/xapian/Makefile.in +580 -0
  187. data/java/org/xapian/MatchDecider.java +30 -0
  188. data/java/org/xapian/PositionIterator.java +89 -0
  189. data/java/org/xapian/Query.java +190 -0
  190. data/java/org/xapian/RSet.java +89 -0
  191. data/java/org/xapian/Stem.java +80 -0
  192. data/java/org/xapian/TermIterator.java +142 -0
  193. data/java/org/xapian/WritableDatabase.java +92 -0
  194. data/java/org/xapian/Xapian.java +114 -0
  195. data/java/org/xapian/XapianJNI.java +444 -0
  196. data/java/org/xapian/errors/AssertionError.java +40 -0
  197. data/java/org/xapian/errors/DatabaseCorruptError.java +40 -0
  198. data/java/org/xapian/errors/DatabaseError.java +40 -0
  199. data/java/org/xapian/errors/DatabaseLockError.java +40 -0
  200. data/java/org/xapian/errors/DatabaseModifiedError.java +40 -0
  201. data/java/org/xapian/errors/DatabaseOpeningError.java +40 -0
  202. data/java/org/xapian/errors/DocNotFoundError.java +40 -0
  203. data/java/org/xapian/errors/FeatureUnavailableError.java +40 -0
  204. data/java/org/xapian/errors/InternalError.java +40 -0
  205. data/java/org/xapian/errors/InvalidArgumentError.java +40 -0
  206. data/java/org/xapian/errors/InvalidOperationError.java +40 -0
  207. data/java/org/xapian/errors/LogicError.java +40 -0
  208. data/java/org/xapian/errors/Makefile +416 -0
  209. data/java/org/xapian/errors/Makefile.am +32 -0
  210. data/java/org/xapian/errors/Makefile.in +416 -0
  211. data/java/org/xapian/errors/NetworkError.java +40 -0
  212. data/java/org/xapian/errors/NetworkTimeoutError.java +40 -0
  213. data/java/org/xapian/errors/RangeError.java +40 -0
  214. data/java/org/xapian/errors/RuntimeError.java +40 -0
  215. data/java/org/xapian/errors/UnimplementedError.java +40 -0
  216. data/java/org/xapian/errors/XapianError.java +40 -0
  217. data/java/org/xapian/errors/XapianRuntimeError.java +49 -0
  218. data/java/org/xapian/examples/Makefile +391 -0
  219. data/java/org/xapian/examples/Makefile.am +8 -0
  220. data/java/org/xapian/examples/Makefile.in +391 -0
  221. data/java/org/xapian/examples/SimpleIndex.java +68 -0
  222. data/java/org/xapian/examples/SimpleSearch.java +71 -0
  223. data/java/run-java-test +6 -0
  224. data/libtool +7618 -0
  225. data/ltmain.sh +6956 -0
  226. data/mhs-xapian.gemspec +368 -0
  227. data/missing +378 -0
  228. data/php/.deps/xapian_wrap.Plo +1 -0
  229. data/php/Makefile +871 -0
  230. data/php/Makefile.am +82 -0
  231. data/php/Makefile.in +871 -0
  232. data/php/docs/Makefile +453 -0
  233. data/php/docs/Makefile.am +19 -0
  234. data/php/docs/Makefile.in +453 -0
  235. data/php/docs/examples/simpleexpand.php4 +108 -0
  236. data/php/docs/examples/simpleexpand.php5 +104 -0
  237. data/php/docs/examples/simpleindex.php4 +76 -0
  238. data/php/docs/examples/simpleindex.php5 +73 -0
  239. data/php/docs/examples/simplesearch.php4 +75 -0
  240. data/php/docs/examples/simplesearch.php5 +72 -0
  241. data/php/docs/index.html +313 -0
  242. data/php/except.i +98 -0
  243. data/php/php4/php_xapian.h +323 -0
  244. data/php/php4/xapian.php +32 -0
  245. data/php/php4/xapian_wrap.cc +27656 -0
  246. data/php/php5/php_xapian.h +319 -0
  247. data/php/php5/xapian.php +1566 -0
  248. data/php/php5/xapian_wrap.cc +24330 -0
  249. data/php/smoketest.php +246 -0
  250. data/php/smoketest4.php +84 -0
  251. data/php/smoketest5.php +79 -0
  252. data/php/util.i +187 -0
  253. data/python/.deps/xapian_wrap.Plo +1 -0
  254. data/python/Makefile +891 -0
  255. data/python/Makefile.am +105 -0
  256. data/python/Makefile.in +891 -0
  257. data/python/doccomments.i +5134 -0
  258. data/python/docs/Makefile +448 -0
  259. data/python/docs/Makefile.am +14 -0
  260. data/python/docs/Makefile.in +448 -0
  261. data/python/docs/examples/simpleexpand.py +98 -0
  262. data/python/docs/examples/simpleindex.py +65 -0
  263. data/python/docs/examples/simplematchdecider.py +78 -0
  264. data/python/docs/examples/simplesearch.py +65 -0
  265. data/python/docs/index.html +420 -0
  266. data/python/except.i +290 -0
  267. data/python/extra.i +1048 -0
  268. data/python/extracomments.i +28 -0
  269. data/python/generate-python-exceptions +189 -0
  270. data/python/generate-python-exceptions.in +189 -0
  271. data/python/modern/xapian.py +5662 -0
  272. data/python/modern/xapian_wrap.cc +35170 -0
  273. data/python/modern/xapian_wrap.h +244 -0
  274. data/python/pythontest.py +1110 -0
  275. data/python/smoketest.py +328 -0
  276. data/python/testsuite.py +382 -0
  277. data/python/util.i +517 -0
  278. data/ruby/.deps/xapian_wrap.Plo +494 -0
  279. data/ruby/.libs/_xapian.bundle +0 -0
  280. data/ruby/.libs/_xapian.bundle.dSYM/Contents/Info.plist +25 -0
  281. data/ruby/.libs/_xapian.bundle.dSYM/Contents/Resources/DWARF/_xapian.bundle +0 -0
  282. data/ruby/.libs/_xapian.la +35 -0
  283. data/ruby/.libs/_xapian.lai +35 -0
  284. data/ruby/Makefile +854 -0
  285. data/ruby/Makefile.am +62 -0
  286. data/ruby/Makefile.in +854 -0
  287. data/ruby/_xapian.la +35 -0
  288. data/ruby/docs/Makefile +487 -0
  289. data/ruby/docs/Makefile.am +50 -0
  290. data/ruby/docs/Makefile.in +487 -0
  291. data/ruby/docs/examples/simpleexpand.rb +98 -0
  292. data/ruby/docs/examples/simpleindex.rb +60 -0
  293. data/ruby/docs/examples/simplematchdecider.rb +74 -0
  294. data/ruby/docs/examples/simplesearch.rb +63 -0
  295. data/ruby/docs/index.html +197 -0
  296. data/ruby/smoketest.rb +211 -0
  297. data/ruby/util.i +232 -0
  298. data/ruby/xapian.rb +280 -0
  299. data/ruby/xapian_wrap.cc +25837 -0
  300. data/ruby/xapian_wrap.h +65 -0
  301. data/ruby/xapian_wrap.lo +12 -0
  302. data/skiptest +2 -0
  303. data/stamp-h1 +1 -0
  304. data/tcl8/.deps/xapian_wrap.Plo +1 -0
  305. data/tcl8/Makefile +835 -0
  306. data/tcl8/Makefile.am +49 -0
  307. data/tcl8/Makefile.in +835 -0
  308. data/tcl8/docs/Makefile +448 -0
  309. data/tcl8/docs/Makefile.am +14 -0
  310. data/tcl8/docs/Makefile.in +448 -0
  311. data/tcl8/docs/examples/simpleexpand.tcl +104 -0
  312. data/tcl8/docs/examples/simpleindex.tcl +68 -0
  313. data/tcl8/docs/examples/simplesearch.tcl +66 -0
  314. data/tcl8/docs/index.html +208 -0
  315. data/tcl8/except.i +48 -0
  316. data/tcl8/pkgIndex.tcl +1 -0
  317. data/tcl8/pkgIndex.tcl.in +1 -0
  318. data/tcl8/run-tcl-test +15 -0
  319. data/tcl8/runtest.tcl +29 -0
  320. data/tcl8/smoketest.tcl +155 -0
  321. data/tcl8/util.i +76 -0
  322. data/tcl8/xapian_wrap.cc +20900 -0
  323. data/xapian-bindings.spec +206 -0
  324. data/xapian-bindings.spec.in +206 -0
  325. data/xapian-version.h +1 -0
  326. data/xapian-version.h.in +1 -0
  327. data/xapian.i +939 -0
  328. metadata +395 -0
@@ -0,0 +1,132 @@
1
+ ## Process this file with automake to produce Makefile.in
2
+
3
+ include ../generic/generic.mk
4
+
5
+ #SUBDIRS = docs
6
+
7
+ TESTS_ENVIRONMENT = \
8
+ LIBTOOL="$(LIBTOOL)" JAVA="$(JAVA)" PATHSEP="$(JAVA_PATHSEP)" $(srcdir)/run-java-test
9
+
10
+ ## Test programs to be run
11
+ TESTS = SmokeTest.class
12
+
13
+ CLEANFILES = SmokeTest.class built/xapian_jni.jar\
14
+ $(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES)\
15
+ Query*1.class
16
+
17
+ SmokeTest: SmokeTest.class
18
+
19
+ .java.class:
20
+ $(JAVAC) -classpath $(srcdir)$(JAVA_PATHSEP). -d . $<
21
+
22
+ XAPIAN_SWIG_JAVA_SRCS=\
23
+ Auto.java\
24
+ BM25Weight.java\
25
+ BoolWeight.java\
26
+ Database.java\
27
+ DateValueRangeProcessor.java\
28
+ Document.java\
29
+ Enquire.java\
30
+ ESet.java\
31
+ ESetIterator.java\
32
+ ExpandDecider.java\
33
+ Flint.java\
34
+ InMemory.java\
35
+ MatchDecider.java\
36
+ MSet.java\
37
+ MSetIterator.java\
38
+ MultiValueSorter.java\
39
+ NumberValueRangeProcessor.java\
40
+ PositionIterator.java\
41
+ PostingIterator.java\
42
+ Quartz.java\
43
+ Query.java\
44
+ QueryParser.java\
45
+ Remote.java\
46
+ RSet.java\
47
+ SimpleStopper.java\
48
+ Sorter.java\
49
+ Stem.java\
50
+ Stopper.java\
51
+ StringValueRangeProcessor.java\
52
+ SWIGTYPE_p_std__string.java\
53
+ TermGenerator.java\
54
+ TermIterator.java\
55
+ TradWeight.java\
56
+ ValueIterator.java\
57
+ ValueRangeProcessor.java\
58
+ Version.java\
59
+ Weight.java\
60
+ WritableDatabase.java\
61
+ Xapian.java\
62
+ XapianConstants.java\
63
+ XapianJNI.java
64
+
65
+ XAPIAN_SWIG_JAVA_CLASS = $(XAPIAN_SWIG_JAVA_SRCS:.java=.class)
66
+
67
+ # Java generates nested classes with filenames containing a $ (smart move) so
68
+ # we pick them up with a wildcard and omit them from dependencies to avoid
69
+ # escaping hell. The lack of a dependency shouldn't really be an issue since
70
+ # these classes are always generated along with the containing class which
71
+ # is listed in the dependencies.
72
+ XAPIAN_SWIG_JAVA_EXTRA_CLASSES=\
73
+ Enquire*docid_order.class\
74
+ Query*op.class\
75
+ QueryParser*feature_flag.class\
76
+ QueryParser*stem_strategy.class\
77
+ TermGenerator*flags.class
78
+
79
+ noinst_DATA = built/xapian_jni.jar
80
+
81
+ built/xapian_jni.jar: $(XAPIAN_SWIG_JAVA_CLASS)
82
+ -test -d built || mkdir built
83
+ $(JAR) -cf built/xapian_jni.jar $(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES)
84
+
85
+ jnidir = `pwd`/built
86
+
87
+ jni_LTLIBRARIES = libxapian_jni.la
88
+
89
+ # Remove the .la file - libxapian_jni.la is never linked against (it's a
90
+ # module) and JVMs don't use libltdl. Note that the library gets installed by
91
+ # install-data, so that's where we need to hook.
92
+ install-data-hook:
93
+ rm -f $(DESTDIR)$(jnidir)/xapian.la
94
+
95
+ # Because we don't install the .la file, "make uninstall" doesn't work and
96
+ # we need to remove the file ourselves.
97
+ uninstall-local:
98
+ eval `grep '^dlname=' $(jni_LTLIBRARIES)` ; \
99
+ rm -f $(DESTDIR)$(jnidir)/"$$dlname"
100
+
101
+ AM_CXXFLAGS = $(SWIG_CXXFLAGS) $(XAPIAN_CXXFLAGS)
102
+ AM_CPPFLAGS = $(JAVA_CPPFLAGS)
103
+ libxapian_jni_la_LDFLAGS = -avoid-version -module $(NO_UNDEFINED)
104
+ libxapian_jni_la_LIBADD = $(XAPIAN_LIBS)
105
+ libxapian_jni_la_SOURCES = xapian_wrap.cc
106
+
107
+ BUILT_SOURCES = xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS)
108
+
109
+ EXTRA_DIST = run-java-test SmokeTest.java $(BUILT_SOURCES)
110
+
111
+ if MAINTAINER_MODE
112
+ xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS): xapian_wrap.stamp
113
+ @stamp=xapian_wrap.stamp; $(make_many_locked)
114
+ xapian_wrap.stamp: $(SWIG_sources) util.i
115
+ $(multitarget_begin)
116
+ : # Make sure that we don't package stale generated sources in the
117
+ : # case where SWIG changes its mind as to which files it generates.
118
+ -rm -f $(XAPIAN_SWIG_JAVA_SRCS)
119
+ $(SWIG) $(SWIG_includes) $(SWIG_FLAGS) -c++ \
120
+ -java -module Xapian \
121
+ -o xapian_wrap.cc $(SWIG_mainsource)
122
+ : # -package org.xapian
123
+ : # Insert code to automatically load the JNI library.
124
+ $(PERL) -pi -e 'print " System.loadLibrary(\"xapian_jni\");\n" if /^\s*swig_module_init/' XapianJNI.java
125
+ : # Check that all the sources we expected were generated.
126
+ ls $(XAPIAN_SWIG_JAVA_SRCS) > /dev/null
127
+ $(multitarget_end)
128
+
129
+ CLEANFILES += $(BUILT_SOURCES)
130
+ else
131
+ MAINTAINERCLEANFILES = $(BUILT_SOURCES)
132
+ endif
@@ -0,0 +1,781 @@
1
+ # Makefile.in generated by automake 1.10.3 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
+ VPATH = @srcdir@
20
+ pkgdatadir = $(datadir)/@PACKAGE@
21
+ pkglibdir = $(libdir)/@PACKAGE@
22
+ pkgincludedir = $(includedir)/@PACKAGE@
23
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24
+ install_sh_DATA = $(install_sh) -c -m 644
25
+ install_sh_PROGRAM = $(install_sh) -c
26
+ install_sh_SCRIPT = $(install_sh) -c
27
+ INSTALL_HEADER = $(INSTALL_DATA)
28
+ transform = $(program_transform_name)
29
+ NORMAL_INSTALL = :
30
+ PRE_INSTALL = :
31
+ POST_INSTALL = :
32
+ NORMAL_UNINSTALL = :
33
+ PRE_UNINSTALL = :
34
+ POST_UNINSTALL = :
35
+ build_triplet = @build@
36
+ host_triplet = @host@
37
+ DIST_COMMON = $(srcdir)/../generic/generic.mk $(srcdir)/Makefile.am \
38
+ $(srcdir)/Makefile.in
39
+ @MAINTAINER_MODE_TRUE@am__append_1 = $(BUILT_SOURCES)
40
+ subdir = java-swig
41
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42
+ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
43
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44
+ $(ACLOCAL_M4)
45
+ mkinstalldirs = $(install_sh) -d
46
+ CONFIG_HEADER = $(top_builddir)/config.h
47
+ CONFIG_CLEAN_FILES =
48
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49
+ am__vpath_adj = case $$p in \
50
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51
+ *) f=$$p;; \
52
+ esac;
53
+ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54
+ am__installdirs = "$(DESTDIR)$(jnidir)"
55
+ jniLTLIBRARIES_INSTALL = $(INSTALL)
56
+ LTLIBRARIES = $(jni_LTLIBRARIES)
57
+ am__DEPENDENCIES_1 =
58
+ libxapian_jni_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
59
+ am_libxapian_jni_la_OBJECTS = xapian_wrap.lo
60
+ libxapian_jni_la_OBJECTS = $(am_libxapian_jni_la_OBJECTS)
61
+ libxapian_jni_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
62
+ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
63
+ $(CXXFLAGS) $(libxapian_jni_la_LDFLAGS) $(LDFLAGS) -o $@
64
+ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
65
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
66
+ am__depfiles_maybe = depfiles
67
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
69
+ LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70
+ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
71
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
72
+ CXXLD = $(CXX)
73
+ CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74
+ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
75
+ $(LDFLAGS) -o $@
76
+ SOURCES = $(libxapian_jni_la_SOURCES)
77
+ DIST_SOURCES = $(libxapian_jni_la_SOURCES)
78
+ DATA = $(noinst_DATA)
79
+ ETAGS = etags
80
+ CTAGS = ctags
81
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
82
+ ACLOCAL = @ACLOCAL@
83
+ AMTAR = @AMTAR@
84
+ AR = @AR@
85
+ AUTOCONF = @AUTOCONF@
86
+ AUTOHEADER = @AUTOHEADER@
87
+ AUTOM4TE = @AUTOM4TE@
88
+ AUTOMAKE = @AUTOMAKE@
89
+ AWK = @AWK@
90
+ BINDINGS = @BINDINGS@
91
+ CC = @CC@
92
+ CCDEPMODE = @CCDEPMODE@
93
+ CFLAGS = @CFLAGS@
94
+ COMPAT_VERSION = @COMPAT_VERSION@
95
+ CPP = @CPP@
96
+ CPPFLAGS = @CPPFLAGS@
97
+ CSC = @CSC@
98
+ CXX = @CXX@
99
+ CXXCPP = @CXXCPP@
100
+ CXXDEPMODE = @CXXDEPMODE@
101
+ CXXFLAGS = @CXXFLAGS@
102
+ CYGPATH_W = @CYGPATH_W@
103
+ DEFS = @DEFS@
104
+ DEPDIR = @DEPDIR@
105
+ DSYMUTIL = @DSYMUTIL@
106
+ ECHO = @ECHO@
107
+ ECHO_C = @ECHO_C@
108
+ ECHO_N = @ECHO_N@
109
+ ECHO_T = @ECHO_T@
110
+ EGREP = @EGREP@
111
+ EXEEXT = @EXEEXT@
112
+ GACUTIL = @GACUTIL@
113
+ GREP = @GREP@
114
+ INSTALL = @INSTALL@
115
+ INSTALL_DATA = @INSTALL_DATA@
116
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
117
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
118
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
119
+ JAR = @JAR@
120
+ JAVA = @JAVA@
121
+ JAVAC = @JAVAC@
122
+ JAVA_CPPFLAGS = @JAVA_CPPFLAGS@
123
+ JAVA_CXXFLAGS = @JAVA_CXXFLAGS@
124
+ JAVA_HOME = @JAVA_HOME@
125
+ JAVA_PATHSEP = @JAVA_PATHSEP@
126
+ JDK_HOME = @JDK_HOME@
127
+ JNI_INCLUDE_DIR = @JNI_INCLUDE_DIR@
128
+ LDFLAGS = @LDFLAGS@
129
+ LIBOBJS = @LIBOBJS@
130
+ LIBS = @LIBS@
131
+
132
+ # `make QUIET=' overrides `./configure --enable-quiet'.
133
+ # `make QUIET=y' overrides `./configure' without `--enable-quiet'.
134
+ LIBTOOL = @LIBTOOL@ $(QUIET:y=--quiet)
135
+ LN_S = @LN_S@
136
+ LTLIBOBJS = @LTLIBOBJS@
137
+ MAINT = @MAINT@
138
+ MAKEINFO = @MAKEINFO@
139
+ MKDIR_P = @MKDIR_P@
140
+ MONO = @MONO@
141
+ NMEDIT = @NMEDIT@
142
+ NO_UNDEFINED = @NO_UNDEFINED@
143
+ OBJEXT = @OBJEXT@
144
+ OVERRIDE_MACOSX_DEPLOYMENT_TARGET = @OVERRIDE_MACOSX_DEPLOYMENT_TARGET@
145
+ PACKAGE = @PACKAGE@
146
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147
+ PACKAGE_NAME = @PACKAGE_NAME@
148
+ PACKAGE_STRING = @PACKAGE_STRING@
149
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
150
+ PACKAGE_VERSION = @PACKAGE_VERSION@
151
+ PATH_SEPARATOR = @PATH_SEPARATOR@
152
+ PERL = @PERL@
153
+ PHP = @PHP@
154
+ PHP_CONFIG = @PHP_CONFIG@
155
+ PHP_EXTENSION_DIR = @PHP_EXTENSION_DIR@
156
+ PHP_INC = @PHP_INC@
157
+ PHP_LIBS = @PHP_LIBS@
158
+ PHP_MAJOR_VERSION = @PHP_MAJOR_VERSION@
159
+ PYTHON = @PYTHON@
160
+ PYTHON_INC = @PYTHON_INC@
161
+ PYTHON_LIB = @PYTHON_LIB@
162
+ PYTHON_LIBS = @PYTHON_LIBS@
163
+ PYTHON_SO = @PYTHON_SO@
164
+ RANLIB = @RANLIB@
165
+ RDOC = @RDOC@
166
+ RUBY = @RUBY@
167
+ RUBY_DLEXT = @RUBY_DLEXT@
168
+ RUBY_INC = @RUBY_INC@
169
+ RUBY_INC_ARCH = @RUBY_INC_ARCH@
170
+ RUBY_LIB = @RUBY_LIB@
171
+ RUBY_LIBS = @RUBY_LIBS@
172
+ RUBY_LIB_ARCH = @RUBY_LIB_ARCH@
173
+ RUN_CSHARP = @RUN_CSHARP@
174
+ SED = @SED@
175
+ SET_MAKE = @SET_MAKE@
176
+ SHELL = @SHELL@
177
+ SN = @SN@
178
+ STRIP = @STRIP@
179
+ SWIG = @SWIG@
180
+ SWIG_CXXFLAGS = @SWIG_CXXFLAGS@
181
+ SWIG_FLAGS = @SWIG_FLAGS@
182
+ TCLSH = @TCLSH@
183
+ TCL_CPPFLAGS = @TCL_CPPFLAGS@
184
+ TCL_LIB = @TCL_LIB@
185
+ TCL_LIBS = @TCL_LIBS@
186
+ VERSION = @VERSION@
187
+ VERSION_NO_SNAPSHOT = @VERSION_NO_SNAPSHOT@
188
+ XAPIAN_CONFIG = @XAPIAN_CONFIG@
189
+ XAPIAN_CXXFLAGS = @XAPIAN_CXXFLAGS@
190
+ XAPIAN_LIBS = @XAPIAN_LIBS@
191
+ XAPIAN_VERSION = @XAPIAN_VERSION@
192
+ abs_builddir = @abs_builddir@
193
+ abs_srcdir = @abs_srcdir@
194
+ abs_top_builddir = @abs_top_builddir@
195
+ abs_top_srcdir = @abs_top_srcdir@
196
+ ac_ct_CC = @ac_ct_CC@
197
+ ac_ct_CXX = @ac_ct_CXX@
198
+ am__include = @am__include@
199
+ am__leading_dot = @am__leading_dot@
200
+ am__quote = @am__quote@
201
+ am__tar = @am__tar@
202
+ am__untar = @am__untar@
203
+ bindir = @bindir@
204
+ build = @build@
205
+ build_alias = @build_alias@
206
+ build_cpu = @build_cpu@
207
+ build_os = @build_os@
208
+ build_vendor = @build_vendor@
209
+ builddir = @builddir@
210
+ datadir = @datadir@
211
+ datarootdir = @datarootdir@
212
+ docdir = @docdir@
213
+ dvidir = @dvidir@
214
+ exec_prefix = @exec_prefix@
215
+ host = @host@
216
+ host_alias = @host_alias@
217
+ host_cpu = @host_cpu@
218
+ host_os = @host_os@
219
+ host_vendor = @host_vendor@
220
+ htmldir = @htmldir@
221
+ includedir = @includedir@
222
+ infodir = @infodir@
223
+ install_sh = @install_sh@
224
+ libdir = @libdir@
225
+ libexecdir = @libexecdir@
226
+ localedir = @localedir@
227
+ localstatedir = @localstatedir@
228
+ mandir = @mandir@
229
+ mkdir_p = @mkdir_p@
230
+ oldincludedir = @oldincludedir@
231
+ pdfdir = @pdfdir@
232
+ prefix = @prefix@
233
+ program_transform_name = @program_transform_name@
234
+ psdir = @psdir@
235
+ sbindir = @sbindir@
236
+ sharedstatedir = @sharedstatedir@
237
+ srcdir = @srcdir@
238
+ sysconfdir = @sysconfdir@
239
+ target_alias = @target_alias@
240
+ top_build_prefix = @top_build_prefix@
241
+ top_builddir = @top_builddir@
242
+ top_srcdir = @top_srcdir@
243
+
244
+ # Recover from the removal of $@. A full explanation of this is in the
245
+ # automake manual under the heading "Multiple Outputs".
246
+ make_many_locked = \
247
+ if test -f $@; then :; else \
248
+ trap 'rm -rf "$$stamp-lck" "$$stamp"' 1 2 13 15; \
249
+ if mkdir "$$stamp-lck" 2>/dev/null; then \
250
+ rm -f "$$stamp"; \
251
+ $(MAKE) $(AM_MAKEFLAGS) "$$stamp"; \
252
+ result=$$?; rm -rf "$$stamp-lck"; exit $$result; \
253
+ else \
254
+ while test -d "$$stamp-lck"; do sleep 1; done; \
255
+ test -f "$$stamp"; \
256
+ fi; \
257
+ fi
258
+
259
+ multitarget_begin = @rm -f $@-t; touch $@-t
260
+ multitarget_end = @mv -f $@-t $@
261
+ SWIG_mainsource = \
262
+ $(srcdir)/../xapian.i
263
+
264
+ SWIG_sources = \
265
+ $(SWIG_mainsource) \
266
+ $(srcdir)/../generic/except.i
267
+
268
+ SWIG_includes = \
269
+ -I$(srcdir) \
270
+ -I$(srcdir)/../generic
271
+
272
+
273
+ #SUBDIRS = docs
274
+ TESTS_ENVIRONMENT = \
275
+ LIBTOOL="$(LIBTOOL)" JAVA="$(JAVA)" PATHSEP="$(JAVA_PATHSEP)" $(srcdir)/run-java-test
276
+
277
+ TESTS = SmokeTest.class
278
+ CLEANFILES = SmokeTest.class built/xapian_jni.jar \
279
+ $(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES) \
280
+ Query*1.class $(am__append_1)
281
+ XAPIAN_SWIG_JAVA_SRCS = \
282
+ Auto.java\
283
+ BM25Weight.java\
284
+ BoolWeight.java\
285
+ Database.java\
286
+ DateValueRangeProcessor.java\
287
+ Document.java\
288
+ Enquire.java\
289
+ ESet.java\
290
+ ESetIterator.java\
291
+ ExpandDecider.java\
292
+ Flint.java\
293
+ InMemory.java\
294
+ MatchDecider.java\
295
+ MSet.java\
296
+ MSetIterator.java\
297
+ MultiValueSorter.java\
298
+ NumberValueRangeProcessor.java\
299
+ PositionIterator.java\
300
+ PostingIterator.java\
301
+ Quartz.java\
302
+ Query.java\
303
+ QueryParser.java\
304
+ Remote.java\
305
+ RSet.java\
306
+ SimpleStopper.java\
307
+ Sorter.java\
308
+ Stem.java\
309
+ Stopper.java\
310
+ StringValueRangeProcessor.java\
311
+ SWIGTYPE_p_std__string.java\
312
+ TermGenerator.java\
313
+ TermIterator.java\
314
+ TradWeight.java\
315
+ ValueIterator.java\
316
+ ValueRangeProcessor.java\
317
+ Version.java\
318
+ Weight.java\
319
+ WritableDatabase.java\
320
+ Xapian.java\
321
+ XapianConstants.java\
322
+ XapianJNI.java
323
+
324
+ XAPIAN_SWIG_JAVA_CLASS = $(XAPIAN_SWIG_JAVA_SRCS:.java=.class)
325
+
326
+ # Java generates nested classes with filenames containing a $ (smart move) so
327
+ # we pick them up with a wildcard and omit them from dependencies to avoid
328
+ # escaping hell. The lack of a dependency shouldn't really be an issue since
329
+ # these classes are always generated along with the containing class which
330
+ # is listed in the dependencies.
331
+ XAPIAN_SWIG_JAVA_EXTRA_CLASSES = \
332
+ Enquire*docid_order.class\
333
+ Query*op.class\
334
+ QueryParser*feature_flag.class\
335
+ QueryParser*stem_strategy.class\
336
+ TermGenerator*flags.class
337
+
338
+ noinst_DATA = built/xapian_jni.jar
339
+ jnidir = `pwd`/built
340
+ jni_LTLIBRARIES = libxapian_jni.la
341
+ AM_CXXFLAGS = $(SWIG_CXXFLAGS) $(XAPIAN_CXXFLAGS)
342
+ AM_CPPFLAGS = $(JAVA_CPPFLAGS)
343
+ libxapian_jni_la_LDFLAGS = -avoid-version -module $(NO_UNDEFINED)
344
+ libxapian_jni_la_LIBADD = $(XAPIAN_LIBS)
345
+ libxapian_jni_la_SOURCES = xapian_wrap.cc
346
+ BUILT_SOURCES = xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS)
347
+ EXTRA_DIST = run-java-test SmokeTest.java $(BUILT_SOURCES)
348
+ @MAINTAINER_MODE_FALSE@MAINTAINERCLEANFILES = $(BUILT_SOURCES)
349
+ all: $(BUILT_SOURCES)
350
+ $(MAKE) $(AM_MAKEFLAGS) all-am
351
+
352
+ .SUFFIXES:
353
+ .SUFFIXES: .cc .class .java .lo .o .obj
354
+ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../generic/generic.mk $(am__configure_deps)
355
+ @for dep in $?; do \
356
+ case '$(am__configure_deps)' in \
357
+ *$$dep*) \
358
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
359
+ && { if test -f $@; then exit 0; else break; fi; }; \
360
+ exit 1;; \
361
+ esac; \
362
+ done; \
363
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu java-swig/Makefile'; \
364
+ cd $(top_srcdir) && \
365
+ $(AUTOMAKE) --gnu java-swig/Makefile
366
+ .PRECIOUS: Makefile
367
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
368
+ @case '$?' in \
369
+ *config.status*) \
370
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
371
+ *) \
372
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
373
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
374
+ esac;
375
+
376
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
377
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
378
+
379
+ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
380
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
381
+ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
382
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
383
+ install-jniLTLIBRARIES: $(jni_LTLIBRARIES)
384
+ @$(NORMAL_INSTALL)
385
+ test -z "$(jnidir)" || $(MKDIR_P) "$(DESTDIR)$(jnidir)"
386
+ @list='$(jni_LTLIBRARIES)'; for p in $$list; do \
387
+ if test -f $$p; then \
388
+ f=$(am__strip_dir) \
389
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(jniLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(jnidir)/$$f'"; \
390
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(jniLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(jnidir)/$$f"; \
391
+ else :; fi; \
392
+ done
393
+
394
+ uninstall-jniLTLIBRARIES:
395
+ @$(NORMAL_UNINSTALL)
396
+ @list='$(jni_LTLIBRARIES)'; for p in $$list; do \
397
+ p=$(am__strip_dir) \
398
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(jnidir)/$$p'"; \
399
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(jnidir)/$$p"; \
400
+ done
401
+
402
+ clean-jniLTLIBRARIES:
403
+ -test -z "$(jni_LTLIBRARIES)" || rm -f $(jni_LTLIBRARIES)
404
+ @list='$(jni_LTLIBRARIES)'; for p in $$list; do \
405
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
406
+ test "$$dir" != "$$p" || dir=.; \
407
+ echo "rm -f \"$${dir}/so_locations\""; \
408
+ rm -f "$${dir}/so_locations"; \
409
+ done
410
+ libxapian_jni.la: $(libxapian_jni_la_OBJECTS) $(libxapian_jni_la_DEPENDENCIES)
411
+ $(libxapian_jni_la_LINK) -rpath $(jnidir) $(libxapian_jni_la_OBJECTS) $(libxapian_jni_la_LIBADD) $(LIBS)
412
+
413
+ mostlyclean-compile:
414
+ -rm -f *.$(OBJEXT)
415
+
416
+ distclean-compile:
417
+ -rm -f *.tab.c
418
+
419
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xapian_wrap.Plo@am__quote@
420
+
421
+ .cc.o:
422
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
423
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
424
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
425
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
426
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
427
+
428
+ .cc.obj:
429
+ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
430
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
431
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
432
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
433
+ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
434
+
435
+ .cc.lo:
436
+ @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
437
+ @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
438
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
439
+ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
440
+ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
441
+
442
+ mostlyclean-libtool:
443
+ -rm -f *.lo
444
+
445
+ clean-libtool:
446
+ -rm -rf .libs _libs
447
+
448
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
449
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
450
+ unique=`for i in $$list; do \
451
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
452
+ done | \
453
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
454
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
455
+ mkid -fID $$unique
456
+ tags: TAGS
457
+
458
+ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
459
+ $(TAGS_FILES) $(LISP)
460
+ tags=; \
461
+ here=`pwd`; \
462
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
463
+ unique=`for i in $$list; do \
464
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
465
+ done | \
466
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
467
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
468
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
469
+ test -n "$$unique" || unique=$$empty_fix; \
470
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
471
+ $$tags $$unique; \
472
+ fi
473
+ ctags: CTAGS
474
+ CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
475
+ $(TAGS_FILES) $(LISP)
476
+ tags=; \
477
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
478
+ unique=`for i in $$list; do \
479
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
480
+ done | \
481
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
482
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
483
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
484
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
485
+ $$tags $$unique
486
+
487
+ GTAGS:
488
+ here=`$(am__cd) $(top_builddir) && pwd` \
489
+ && cd $(top_srcdir) \
490
+ && gtags -i $(GTAGS_ARGS) $$here
491
+
492
+ distclean-tags:
493
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
494
+
495
+ check-TESTS: $(TESTS)
496
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; \
497
+ srcdir=$(srcdir); export srcdir; \
498
+ list=' $(TESTS) '; \
499
+ if test -n "$$list"; then \
500
+ for tst in $$list; do \
501
+ if test -f ./$$tst; then dir=./; \
502
+ elif test -f $$tst; then dir=; \
503
+ else dir="$(srcdir)/"; fi; \
504
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
505
+ all=`expr $$all + 1`; \
506
+ case " $(XFAIL_TESTS) " in \
507
+ *[\ \ ]$$tst[\ \ ]*) \
508
+ xpass=`expr $$xpass + 1`; \
509
+ failed=`expr $$failed + 1`; \
510
+ echo "XPASS: $$tst"; \
511
+ ;; \
512
+ *) \
513
+ echo "PASS: $$tst"; \
514
+ ;; \
515
+ esac; \
516
+ elif test $$? -ne 77; then \
517
+ all=`expr $$all + 1`; \
518
+ case " $(XFAIL_TESTS) " in \
519
+ *[\ \ ]$$tst[\ \ ]*) \
520
+ xfail=`expr $$xfail + 1`; \
521
+ echo "XFAIL: $$tst"; \
522
+ ;; \
523
+ *) \
524
+ failed=`expr $$failed + 1`; \
525
+ echo "FAIL: $$tst"; \
526
+ ;; \
527
+ esac; \
528
+ else \
529
+ skip=`expr $$skip + 1`; \
530
+ echo "SKIP: $$tst"; \
531
+ fi; \
532
+ done; \
533
+ if test "$$all" -eq 1; then \
534
+ tests="test"; \
535
+ All=""; \
536
+ else \
537
+ tests="tests"; \
538
+ All="All "; \
539
+ fi; \
540
+ if test "$$failed" -eq 0; then \
541
+ if test "$$xfail" -eq 0; then \
542
+ banner="$$All$$all $$tests passed"; \
543
+ else \
544
+ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
545
+ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
546
+ fi; \
547
+ else \
548
+ if test "$$xpass" -eq 0; then \
549
+ banner="$$failed of $$all $$tests failed"; \
550
+ else \
551
+ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
552
+ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
553
+ fi; \
554
+ fi; \
555
+ dashes="$$banner"; \
556
+ skipped=""; \
557
+ if test "$$skip" -ne 0; then \
558
+ if test "$$skip" -eq 1; then \
559
+ skipped="($$skip test was not run)"; \
560
+ else \
561
+ skipped="($$skip tests were not run)"; \
562
+ fi; \
563
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
564
+ dashes="$$skipped"; \
565
+ fi; \
566
+ report=""; \
567
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
568
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
569
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
570
+ dashes="$$report"; \
571
+ fi; \
572
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
573
+ echo "$$dashes"; \
574
+ echo "$$banner"; \
575
+ test -z "$$skipped" || echo "$$skipped"; \
576
+ test -z "$$report" || echo "$$report"; \
577
+ echo "$$dashes"; \
578
+ test "$$failed" -eq 0; \
579
+ else :; fi
580
+
581
+ distdir: $(DISTFILES)
582
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
583
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
584
+ list='$(DISTFILES)'; \
585
+ dist_files=`for file in $$list; do echo $$file; done | \
586
+ sed -e "s|^$$srcdirstrip/||;t" \
587
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
588
+ case $$dist_files in \
589
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
590
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
591
+ sort -u` ;; \
592
+ esac; \
593
+ for file in $$dist_files; do \
594
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
595
+ if test -d $$d/$$file; then \
596
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
597
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
598
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
599
+ fi; \
600
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
601
+ else \
602
+ test -f $(distdir)/$$file \
603
+ || cp -p $$d/$$file $(distdir)/$$file \
604
+ || exit 1; \
605
+ fi; \
606
+ done
607
+ check-am: all-am
608
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
609
+ check: $(BUILT_SOURCES)
610
+ $(MAKE) $(AM_MAKEFLAGS) check-am
611
+ all-am: Makefile $(LTLIBRARIES) $(DATA)
612
+ installdirs:
613
+ for dir in "$(DESTDIR)$(jnidir)"; do \
614
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
615
+ done
616
+ install: $(BUILT_SOURCES)
617
+ $(MAKE) $(AM_MAKEFLAGS) install-am
618
+ install-exec: install-exec-am
619
+ install-data: install-data-am
620
+ uninstall: uninstall-am
621
+
622
+ install-am: all-am
623
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
624
+
625
+ installcheck: installcheck-am
626
+ install-strip:
627
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
628
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
629
+ `test -z '$(STRIP)' || \
630
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
631
+ mostlyclean-generic:
632
+
633
+ clean-generic:
634
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
635
+
636
+ distclean-generic:
637
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
638
+
639
+ maintainer-clean-generic:
640
+ @echo "This command is intended for maintainers to use"
641
+ @echo "it deletes files that may require special tools to rebuild."
642
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
643
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
644
+ clean: clean-am
645
+
646
+ clean-am: clean-generic clean-jniLTLIBRARIES clean-libtool \
647
+ mostlyclean-am
648
+
649
+ distclean: distclean-am
650
+ -rm -rf ./$(DEPDIR)
651
+ -rm -f Makefile
652
+ distclean-am: clean-am distclean-compile distclean-generic \
653
+ distclean-tags
654
+
655
+ dvi: dvi-am
656
+
657
+ dvi-am:
658
+
659
+ html: html-am
660
+
661
+ html-am:
662
+
663
+ info: info-am
664
+
665
+ info-am:
666
+
667
+ install-data-am: install-jniLTLIBRARIES
668
+ @$(NORMAL_INSTALL)
669
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
670
+
671
+ install-dvi: install-dvi-am
672
+
673
+ install-dvi-am:
674
+
675
+ install-exec-am:
676
+
677
+ install-html: install-html-am
678
+
679
+ install-html-am:
680
+
681
+ install-info: install-info-am
682
+
683
+ install-info-am:
684
+
685
+ install-man:
686
+
687
+ install-pdf: install-pdf-am
688
+
689
+ install-pdf-am:
690
+
691
+ install-ps: install-ps-am
692
+
693
+ install-ps-am:
694
+
695
+ installcheck-am:
696
+
697
+ maintainer-clean: maintainer-clean-am
698
+ -rm -rf ./$(DEPDIR)
699
+ -rm -f Makefile
700
+ maintainer-clean-am: distclean-am maintainer-clean-generic
701
+
702
+ mostlyclean: mostlyclean-am
703
+
704
+ mostlyclean-am: mostlyclean-compile mostlyclean-generic \
705
+ mostlyclean-libtool
706
+
707
+ pdf: pdf-am
708
+
709
+ pdf-am:
710
+
711
+ ps: ps-am
712
+
713
+ ps-am:
714
+
715
+ uninstall-am: uninstall-jniLTLIBRARIES uninstall-local
716
+
717
+ .MAKE: install-am install-data-am install-strip
718
+
719
+ .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
720
+ clean-generic clean-jniLTLIBRARIES clean-libtool ctags \
721
+ distclean distclean-compile distclean-generic \
722
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
723
+ html-am info info-am install install-am install-data \
724
+ install-data-am install-data-hook install-dvi install-dvi-am \
725
+ install-exec install-exec-am install-html install-html-am \
726
+ install-info install-info-am install-jniLTLIBRARIES \
727
+ install-man install-pdf install-pdf-am install-ps \
728
+ install-ps-am install-strip installcheck installcheck-am \
729
+ installdirs maintainer-clean maintainer-clean-generic \
730
+ mostlyclean mostlyclean-compile mostlyclean-generic \
731
+ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
732
+ uninstall-am uninstall-jniLTLIBRARIES uninstall-local
733
+
734
+
735
+ # Export these so that we run the locally installed autotools when building
736
+ # from a bootstrapped SVN tree.
737
+ @MAINTAINER_MODE_TRUE@export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
738
+
739
+ # This requires GNU make, but apparently that's the default on OS X.
740
+ @OVERRIDE_MACOSX_DEPLOYMENT_TARGET_TRUE@export MACOSX_DEPLOYMENT_TARGET=@OVERRIDE_MACOSX_DEPLOYMENT_TARGET@
741
+
742
+ SmokeTest: SmokeTest.class
743
+
744
+ .java.class:
745
+ $(JAVAC) -classpath $(srcdir)$(JAVA_PATHSEP). -d . $<
746
+
747
+ built/xapian_jni.jar: $(XAPIAN_SWIG_JAVA_CLASS)
748
+ -test -d built || mkdir built
749
+ $(JAR) -cf built/xapian_jni.jar $(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES)
750
+
751
+ # Remove the .la file - libxapian_jni.la is never linked against (it's a
752
+ # module) and JVMs don't use libltdl. Note that the library gets installed by
753
+ # install-data, so that's where we need to hook.
754
+ install-data-hook:
755
+ rm -f $(DESTDIR)$(jnidir)/xapian.la
756
+
757
+ # Because we don't install the .la file, "make uninstall" doesn't work and
758
+ # we need to remove the file ourselves.
759
+ uninstall-local:
760
+ eval `grep '^dlname=' $(jni_LTLIBRARIES)` ; \
761
+ rm -f $(DESTDIR)$(jnidir)/"$$dlname"
762
+
763
+ @MAINTAINER_MODE_TRUE@xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS): xapian_wrap.stamp
764
+ @MAINTAINER_MODE_TRUE@ @stamp=xapian_wrap.stamp; $(make_many_locked)
765
+ @MAINTAINER_MODE_TRUE@xapian_wrap.stamp: $(SWIG_sources) util.i
766
+ @MAINTAINER_MODE_TRUE@ $(multitarget_begin)
767
+ @MAINTAINER_MODE_TRUE@ : # Make sure that we don't package stale generated sources in the
768
+ @MAINTAINER_MODE_TRUE@ : # case where SWIG changes its mind as to which files it generates.
769
+ @MAINTAINER_MODE_TRUE@ -rm -f $(XAPIAN_SWIG_JAVA_SRCS)
770
+ @MAINTAINER_MODE_TRUE@ $(SWIG) $(SWIG_includes) $(SWIG_FLAGS) -c++ \
771
+ @MAINTAINER_MODE_TRUE@ -java -module Xapian \
772
+ @MAINTAINER_MODE_TRUE@ -o xapian_wrap.cc $(SWIG_mainsource)
773
+ @MAINTAINER_MODE_TRUE@ : # -package org.xapian
774
+ @MAINTAINER_MODE_TRUE@ : # Insert code to automatically load the JNI library.
775
+ @MAINTAINER_MODE_TRUE@ $(PERL) -pi -e 'print " System.loadLibrary(\"xapian_jni\");\n" if /^\s*swig_module_init/' XapianJNI.java
776
+ @MAINTAINER_MODE_TRUE@ : # Check that all the sources we expected were generated.
777
+ @MAINTAINER_MODE_TRUE@ ls $(XAPIAN_SWIG_JAVA_SRCS) > /dev/null
778
+ @MAINTAINER_MODE_TRUE@ $(multitarget_end)
779
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
780
+ # Otherwise a system limit (for SysV at least) may be exceeded.
781
+ .NOEXPORT: