Updated Macedonian Translation, Arangel Angov <ufo@linux.net.mk>
[beagle.git] / beagled / Makefile.am
blobac204c9f5ffdaab7f565c4d372ea44248f2970ab
2 # Warnings we don't want to see.
3 # Most of these are thanks to DotLucene.  It would be nice if we could use
4 # "#pragma warning" on these.
6 # 0162 = Unreachable code detected
7 # 0164 = This label has not been referenced
8 # 0169 = The private method/field 'foo' is never used
9 # 0219 = Variable is assigned but never used
10 # 0436 = Ignore imported type (local SqliteClient)
12 # unsafe arg for Mono.Data.SqliteClient fork
13 CSC = mcs -debug -nowarn:0162,0164,0169,0219,0436 -unsafe
15 BACKENDDIR = $(pkglibdir)/Backends
17 PLUGIN_TARGET = BeagleDaemonPlugins.dll
19 PLUGIN_CSFLAGS = -target:library
21 PLUGIN_CSFILES =                        \
22         $(srcdir)/Flavor.cs             \
23         $(srcdir)/Filter.cs
25 PLUGIN_LOCAL_ASSEMBLIES =               \
26         ../Util/Util.dll                \
27         ../BeagleClient/Beagle.dll
29 PLUGIN_ASSEMBLIES =                             \
30         -r:Mono.Posix                           \
31         $(BEAGLED_LIBS)                         \
32         $(PLUGIN_LOCAL_ASSEMBLIES:%=-r:%)
35 $(PLUGIN_TARGET): $(PLUGIN_CSFILES) $(PLUGIN_LOCAL_ASSEMBLIES)
36         $(CSC) -out:$@ $(PLUGIN_CSFLAGS) $(PLUGIN_CSFILES) $(PLUGIN_ASSEMBLIES)
38 ############################################################
40 WRAPPER_IN = wrapper.in
41 WRAPPER_SED = sed                                       \
42         -e "s|\@prefix\@|$(prefix)|g"                   \
43         -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
44         -e "s|\@libdir\@|$(libdir)|g"                   \
45         -e "s|\@evolibdir\@|$(EVO_LIBDIR)|g"            \
46         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"            \
47         -e "s|\@bash\@|$(BASH)|"                        \
48         -e "s|\@wrapper\@|$@|g"
50 ############################################################
52 lucenedir = $(srcdir)/Lucene.Net
54 LUCENE_1_9_CSFILES =                                                    \
55         $(lucenedir)/AssemblyInfo.cs                                    \
56         $(lucenedir)/LucenePackage.cs                                   \
57         $(lucenedir)/SupportClass.cs                                    \
58         $(lucenedir)/Store/BufferedIndexInput.cs                        \
59         $(lucenedir)/Store/BufferedIndexOutput.cs                       \
60         $(lucenedir)/Store/Directory.cs                                 \
61         $(lucenedir)/Store/FSDirectory.cs                               \
62         $(lucenedir)/Store/IndexInput.cs                                \
63         $(lucenedir)/Store/IndexOutput.cs                               \
64         $(lucenedir)/Store/InputStream.cs                               \
65         $(lucenedir)/Store/Lock.cs                                      \
66         $(lucenedir)/Store/MMapDirectory.cs                             \
67         $(lucenedir)/Store/OutputStream.cs                              \
68         $(lucenedir)/Store/RAMDirectory.cs                              \
69         $(lucenedir)/Store/RAMFile.cs                                   \
70         $(lucenedir)/Store/RAMInputStream.cs                            \
71         $(lucenedir)/Store/RAMOutputStream.cs                           \
72         $(lucenedir)/Util/BitVector.cs                                  \
73         $(lucenedir)/Util/Constants.cs                                  \
74         $(lucenedir)/Util/Parameter.cs                                  \
75         $(lucenedir)/Util/PriorityQueue.cs                              \
76         $(lucenedir)/Util/StringHelper.cs                               \
77         $(lucenedir)/Index/CompoundFileReader.cs                        \
78         $(lucenedir)/Index/CompoundFileWriter.cs                        \
79         $(lucenedir)/Index/DocumentWriter.cs                            \
80         $(lucenedir)/Index/FieldInfo.cs                                 \
81         $(lucenedir)/Index/FieldInfos.cs                                \
82         $(lucenedir)/Index/FieldsReader.cs                              \
83         $(lucenedir)/Index/FieldsWriter.cs                              \
84         $(lucenedir)/Index/FilterIndexReader.cs                         \
85         $(lucenedir)/Index/IndexReader.cs                               \
86         $(lucenedir)/Index/IndexWriter.cs                               \
87         $(lucenedir)/Index/MultipleTermPositions.cs                     \
88         $(lucenedir)/Index/MultiReader.cs                               \
89         $(lucenedir)/Index/SegmentInfo.cs                               \
90         $(lucenedir)/Index/SegmentInfos.cs                              \
91         $(lucenedir)/Index/SegmentMergeInfo.cs                          \
92         $(lucenedir)/Index/SegmentMergeQueue.cs                         \
93         $(lucenedir)/Index/SegmentMerger.cs                             \
94         $(lucenedir)/Index/SegmentReader.cs                             \
95         $(lucenedir)/Index/SegmentTermDocs.cs                           \
96         $(lucenedir)/Index/SegmentTermEnum.cs                           \
97         $(lucenedir)/Index/SegmentTermPositions.cs                      \
98         $(lucenedir)/Index/SegmentTermPositionVector.cs                 \
99         $(lucenedir)/Index/SegmentTermVector.cs                         \
100         $(lucenedir)/Index/Term.cs                                      \
101         $(lucenedir)/Index/TermBuffer.cs                                \
102         $(lucenedir)/Index/TermDocs.cs                                  \
103         $(lucenedir)/Index/TermEnum.cs                                  \
104         $(lucenedir)/Index/TermFreqVector.cs                            \
105         $(lucenedir)/Index/TermInfo.cs                                  \
106         $(lucenedir)/Index/TermInfosReader.cs                           \
107         $(lucenedir)/Index/TermInfosWriter.cs                           \
108         $(lucenedir)/Index/TermPositions.cs                             \
109         $(lucenedir)/Index/TermPositionVector.cs                        \
110         $(lucenedir)/Index/TermVectorOffsetInfo.cs                      \
111         $(lucenedir)/Index/TermVectorsReader.cs                         \
112         $(lucenedir)/Index/TermVectorsWriter.cs                         \
113         $(lucenedir)/Document/DateField.cs                              \
114         $(lucenedir)/Document/DateTools.cs                              \
115         $(lucenedir)/Document/Document.cs                               \
116         $(lucenedir)/Document/Field.cs                                  \
117         $(lucenedir)/Document/NumberTools.cs                            \
118         $(lucenedir)/Analysis/DE/WordlistLoader.cs                      \
119         $(lucenedir)/Analysis/Standard/CharStream.cs                    \
120         $(lucenedir)/Analysis/Standard/FastCharStream.cs                \
121         $(lucenedir)/Analysis/Standard/ParseException.cs                \
122         $(lucenedir)/Analysis/Standard/StandardAnalyzer.cs              \
123         $(lucenedir)/Analysis/Standard/StandardFilter.cs                \
124         $(lucenedir)/Analysis/Standard/StandardTokenizer.cs             \
125         $(lucenedir)/Analysis/Standard/StandardTokenizerConstants.cs    \
126         $(lucenedir)/Analysis/Standard/StandardTokenizerTokenManager.cs \
127         $(lucenedir)/Analysis/Standard/Token.cs                         \
128         $(lucenedir)/Analysis/Standard/TokenMgrError.cs                 \
129         $(lucenedir)/Analysis/Analyzer.cs                               \
130         $(lucenedir)/Analysis/CharTokenizer.cs                          \
131         $(lucenedir)/Analysis/LetterTokenizer.cs                        \
132         $(lucenedir)/Analysis/LowerCaseFilter.cs                        \
133         $(lucenedir)/Analysis/LowerCaseTokenizer.cs                     \
134         $(lucenedir)/Analysis/PerFieldAnalyzerWrapper.cs                \
135         $(lucenedir)/Analysis/PorterStemFilter.cs                       \
136         $(lucenedir)/Analysis/PorterStemmer.cs                          \
137         $(lucenedir)/Analysis/SimpleAnalyzer.cs                         \
138         $(lucenedir)/Analysis/StopAnalyzer.cs                           \
139         $(lucenedir)/Analysis/StopFilter.cs                             \
140         $(lucenedir)/Analysis/Token.cs                                  \
141         $(lucenedir)/Analysis/TokenFilter.cs                            \
142         $(lucenedir)/Analysis/Tokenizer.cs                              \
143         $(lucenedir)/Analysis/TokenStream.cs                            \
144         $(lucenedir)/Analysis/WhitespaceAnalyzer.cs                     \
145         $(lucenedir)/Analysis/WhitespaceTokenizer.cs                    \
146         $(lucenedir)/Search/Spans/NearSpans.cs                          \
147         $(lucenedir)/Search/Spans/SpanFirstQuery.cs                     \
148         $(lucenedir)/Search/Spans/SpanNearQuery.cs                      \
149         $(lucenedir)/Search/Spans/SpanNotQuery.cs                       \
150         $(lucenedir)/Search/Spans/SpanOrQuery.cs                        \
151         $(lucenedir)/Search/Spans/SpanQuery.cs                          \
152         $(lucenedir)/Search/Spans/Spans.cs                              \
153         $(lucenedir)/Search/Spans/SpanScorer.cs                         \
154         $(lucenedir)/Search/Spans/SpanTermQuery.cs                      \
155         $(lucenedir)/Search/Spans/SpanWeight.cs                         \
156         $(lucenedir)/Search/BooleanClause.cs                            \
157         $(lucenedir)/Search/BooleanQuery.cs                             \
158         $(lucenedir)/Search/BooleanScorer.cs                            \
159         $(lucenedir)/Search/BooleanScorer2.cs                           \
160         $(lucenedir)/Search/CachingWrapperFilter.cs                     \
161         $(lucenedir)/Search/ConjunctionScorer.cs                        \
162         $(lucenedir)/Search/DateFilter.cs                               \
163         $(lucenedir)/Search/DefaultSimilarity.cs                        \
164         $(lucenedir)/Search/DisjunctionSumScorer.cs                     \
165         $(lucenedir)/Search/ExactPhraseScorer.cs                        \
166         $(lucenedir)/Search/Explanation.cs                              \
167         $(lucenedir)/Search/FieldCache.cs                               \
168         $(lucenedir)/Search/FieldCacheImpl.cs                           \
169         $(lucenedir)/Search/FieldDoc.cs                                 \
170         $(lucenedir)/Search/FieldDocSortedHitQueue.cs                   \
171         $(lucenedir)/Search/FieldSortedHitQueue.cs                      \
172         $(lucenedir)/Search/Filter.cs                                   \
173         $(lucenedir)/Search/FilteredQuery.cs                            \
174         $(lucenedir)/Search/FilteredTermEnum.cs                         \
175         $(lucenedir)/Search/FuzzyQuery.cs                               \
176         $(lucenedir)/Search/FuzzyTermEnum.cs                            \
177         $(lucenedir)/Search/HitCollector.cs                             \
178         $(lucenedir)/Search/HitQueue.cs                                 \
179         $(lucenedir)/Search/Hits.cs                                     \
180         $(lucenedir)/Search/IndexSearcher.cs                            \
181         $(lucenedir)/Search/MultiPhraseQuery.cs                         \
182         $(lucenedir)/Search/MultiSearcher.cs                            \
183         $(lucenedir)/Search/MultiTermQuery.cs                           \
184         $(lucenedir)/Search/NonMatchingScorer.cs                        \
185         $(lucenedir)/Search/ParallelMultiSearcher.cs                    \
186         $(lucenedir)/Search/PhrasePositions.cs                          \
187         $(lucenedir)/Search/PhrasePrefixQuery.cs                        \
188         $(lucenedir)/Search/PhraseQuery.cs                              \
189         $(lucenedir)/Search/PhraseQueue.cs                              \
190         $(lucenedir)/Search/PhraseScorer.cs                             \
191         $(lucenedir)/Search/PrefixQuery.cs                              \
192         $(lucenedir)/Search/Query.cs                                    \
193         $(lucenedir)/Search/QueryFilter.cs                              \
194         $(lucenedir)/Search/QueryTermVector.cs                          \
195         $(lucenedir)/Search/RangeFilter.cs                              \
196         $(lucenedir)/Search/RangeQuery.cs                               \
197         $(lucenedir)/Search/RemoteSearchable.cs                         \
198         $(lucenedir)/Search/ReqExclScorer.cs                            \
199         $(lucenedir)/Search/ReqOptSumScorer.cs                          \
200         $(lucenedir)/Search/ScoreDoc.cs                                 \
201         $(lucenedir)/Search/ScoreDocComparator.cs                       \
202         $(lucenedir)/Search/Scorer.cs                                   \
203         $(lucenedir)/Search/Searchable.cs                               \
204         $(lucenedir)/Search/Searcher.cs                                 \
205         $(lucenedir)/Search/Similarity.cs                               \
206         $(lucenedir)/Search/SimilarityDelegator.cs                      \
207         $(lucenedir)/Search/SloppyPhraseScorer.cs                       \
208         $(lucenedir)/Search/Sort.cs                                     \
209         $(lucenedir)/Search/SortComparator.cs                           \
210         $(lucenedir)/Search/SortComparatorSource.cs                     \
211         $(lucenedir)/Search/SortField.cs                                \
212         $(lucenedir)/Search/TermQuery.cs                                \
213         $(lucenedir)/Search/TermScorer.cs                               \
214         $(lucenedir)/Search/TopDocs.cs                                  \
215         $(lucenedir)/Search/TopFieldDocs.cs                             \
216         $(lucenedir)/Search/Weight.cs                                   \
217         $(lucenedir)/Search/WildcardQuery.cs                            \
218         $(lucenedir)/Search/WildcardTermEnum.cs                         \
219         $(lucenedir)/QueryParser/Precedence/CharStream.cs               \
220         $(lucenedir)/QueryParser/Precedence/ParseException.cs           \
221         $(lucenedir)/QueryParser/Precedence/FastCharStream.cs           \
222         $(lucenedir)/QueryParser/Precedence/PrecedenceQueryParserConstants.cs\
223         $(lucenedir)/QueryParser/Precedence/Token.cs                    \
224         $(lucenedir)/QueryParser/Precedence/PrecedenceQueryParserTokenManager.cs\
225         $(lucenedir)/QueryParser/Precedence/PrecedenceQueryParser.cs    \
226         $(lucenedir)/QueryParser/Precedence/TokenMgrError.cs            \
227         $(lucenedir)/QueryParser/CharStream.cs                          \
228         $(lucenedir)/QueryParser/FastCharStream.cs                      \
229         $(lucenedir)/QueryParser/MultiFieldQueryParser.cs               \
230         $(lucenedir)/QueryParser/ParseException.cs                      \
231         $(lucenedir)/QueryParser/QueryParser.cs                         \
232         $(lucenedir)/QueryParser/QueryParserConstants.cs                \
233         $(lucenedir)/QueryParser/QueryParserTokenManager.cs             \
234         $(lucenedir)/QueryParser/Token.cs                               \
235         $(lucenedir)/QueryParser/TokenMgrError.cs
237 LUCENE_CSFILES = $(LUCENE_1_9_CSFILES)
239 ############################################################
241 sqlitedir = $(srcdir)/Mono.Data.SqliteClient
243 SQLITE_CSFILES =                                        \
244         $(sqlitedir)/SqliteCommand.cs                   \
245         $(sqlitedir)/SqliteConnection.cs                \
246         $(sqlitedir)/Sqlite.cs                          \
247         $(sqlitedir)/SqliteDataAdapter.cs               \
248         $(sqlitedir)/SqliteDataReader.cs                \
249         $(sqlitedir)/SqliteExceptions.cs                \
250         $(sqlitedir)/SqliteParameterCollection.cs       \
251         $(sqlitedir)/SqliteParameter.cs                 \
252         $(sqlitedir)/SqliteRowUpdatedEventArgs.cs       \
253         $(sqlitedir)/SqliteRowUpdatedEventHandler.cs    \
254         $(sqlitedir)/SqliteRowUpdatingEventArgs.cs      \
255         $(sqlitedir)/SqliteRowUpdatingEventHandler.cs   \
256         $(sqlitedir)/SqliteTransaction.cs
258 ############################################################
260 DAEMON_DLL_TARGET = BeagleDaemonLib.dll
262 DAEMON_DLL_CSFLAGS = -target:library $(BEAGLE_DEFINES)
264 fsqueryabledir = $(srcdir)/FileSystemQueryable
265 FILE_SYSTEM_QUERYABLE_CSFILES =                                 \
266         $(fsqueryabledir)/DirectoryModel.cs                     \
267         $(fsqueryabledir)/DirectoryState.cs                     \
268         $(fsqueryabledir)/TreeCrawlTask.cs                      \
269         $(fsqueryabledir)/FileCrawlTask.cs                      \
270         $(fsqueryabledir)/DirectoryIndexableGenerator.cs        \
271         $(fsqueryabledir)/FileNameFilter.cs                     \
272         $(fsqueryabledir)/LuceneNameResolver.cs                 \
273         $(fsqueryabledir)/FileSystemQueryable.cs                \
274         $(fsqueryabledir)/IFileEventBackend.cs                  \
275         $(fsqueryabledir)/InotifyBackend.cs                     \
276         $(fsqueryabledir)/NullFileEventBackend.cs
279 gaimlogqueryable = $(srcdir)/GaimLogQueryable
280 GAIM_LOG_QUERYABLE_CSFILES =                            \
281         $(gaimlogqueryable)/GaimLogQueryable.cs
283 tomboyqueryable = $(srcdir)/TomboyQueryable
284 TOMBOY_QUERYABLE_CSFILES =                              \
285         $(tomboyqueryable)/TomboyQueryable.cs
287 kmailqueryable = $(srcdir)/KMailQueryable
288 KMAIL_QUERYABLE_CSFILES =                               \
289         $(kmailqueryable)/KMailQueryable.cs             \
290         $(kmailqueryable)/KMailIndexableGenerator.cs    \
291         $(kmailqueryable)/KMailIndexer.cs
293 blamqueryable = $(srcdir)/BlamQueryable
294 BLAM_QUERYABLE_CSFILES =                                \
295         $(blamqueryable)/BlamQueryable.cs
297 lifereaqueryable = $(srcdir)/LifereaQueryable
298 LIFEREA_QUERYABLE_CSFILES =                             \
299         $(lifereaqueryable)/LifereaQueryable.cs
301 akregatorqueryable = $(srcdir)/AkregatorQueryable
302 AKREGATOR_QUERYABLE_CSFILES =                           \
303         $(akregatorqueryable)/AkregatorQueryable.cs
305 konqhistoryqueryable = $(srcdir)/KonqHistoryQueryable
306 KONQHISTORY_QUERYABLE_CSFILES =                         \
307         $(konqhistoryqueryable)/KonqQueryable.cs
309 kopetequeryable = $(srcdir)/KopeteQueryable
310 KOPETE_QUERYABLE_CSFILES =                              \
311         $(kopetequeryable)/KopeteQueryable.cs           \
312         $(kopetequeryable)/KopeteCrawler.cs
314 indexingservicequeryable = $(srcdir)/IndexingServiceQueryable
315 INDEXING_SERVICE_QUERYABLE_CSFILES =                    \
316         $(indexingservicequeryable)/IndexingServiceQueryable.cs
318 DAEMON_DLL_CSFILES =                                            \
319         $(LUCENE_CSFILES)                                       \
320         $(KMAIL_QUERYABLE_CSFILES)                              \
321         $(FILE_SYSTEM_QUERYABLE_CSFILES)                        \
322         $(GAIM_LOG_QUERYABLE_CSFILES)                           \
323         $(INDEXING_SERVICE_QUERYABLE_CSFILES)                   \
324         $(TOMBOY_QUERYABLE_CSFILES)                             \
325         $(BLAM_QUERYABLE_CSFILES)                               \
326         $(LIFEREA_QUERYABLE_CSFILES)                            \
327         $(AKREGATOR_QUERYABLE_CSFILES)                          \
328         $(KONQHISTORY_QUERYABLE_CSFILES)                                \
329         $(KOPETE_QUERYABLE_CSFILES)                             \
330         $(srcdir)/FileAttributes.cs                             \
331         $(srcdir)/FileAttributesStore.cs                        \
332         $(srcdir)/FileAttributesStore_ExtendedAttribute.cs      \
333         $(srcdir)/FileAttributesStore_Mixed.cs                  \
334         $(srcdir)/FileAttributesStore_Sqlite.cs                 \
335         $(srcdir)/FilterFactory.cs                              \
336         $(srcdir)/IFileAttributesStore.cs                       \
337         $(srcdir)/IIndexer.cs                                   \
338         $(srcdir)/IndexSynchronization.cs                       \
339         $(srcdir)/IndexerReceipts.cs                            \
340         $(srcdir)/IndexerRequest.cs                             \
341         $(srcdir)/IQueryResult.cs                               \
342         $(srcdir)/IQueryWorker.cs                               \
343         $(srcdir)/IQueryable.cs                                 \
344         $(srcdir)/LuceneBitArray.cs                             \
345         $(srcdir)/LuceneCommon.cs                               \
346         $(srcdir)/LuceneIndexingDriver.cs                       \
347         $(srcdir)/LuceneQueryingDriver.cs                       \
348         $(srcdir)/LuceneFileQueryable.cs                        \
349         $(srcdir)/LuceneQueryable.cs                            \
350         $(srcdir)/NoiseFilter.cs                                \
351         $(srcdir)/PropertyKeywordFu.cs                          \
352         $(srcdir)/QueryDriver.cs                                \
353         $(srcdir)/QueryExecutor.cs                              \
354         $(srcdir)/QueryResult.cs                                \
355         $(srcdir)/QueryStringParser.cs                          \
356         $(srcdir)/Queryable.cs                                  \
357         $(srcdir)/QueryableFlavor.cs                            \
358         $(srcdir)/RemoteControlExecutors.cs                     \
359         $(srcdir)/RemoteIndexerRequest.cs                       \
360         $(srcdir)/RemoteIndexerResponse.cs                      \
361         $(srcdir)/Server.cs                                     \
362         $(srcdir)/Shutdown.cs                                   \
363         $(srcdir)/SnippetExecutor.cs                            \
364         $(srcdir)/SnippetFu.cs                                  \
365         $(srcdir)/SqliteUtils.cs                                \
366         $(srcdir)/StaticQueryable.cs                            \
367         $(srcdir)/TextCache.cs
369 DAEMON_DLL_LOCAL_ASSEMBLIES =           \
370         ../Util/Util.dll                \
371         ../BeagleClient/Beagle.dll      \
372         ./$(PLUGIN_TARGET)
374 DAEMON_DLL_ASSEMBLIES =                         \
375         $(BEAGLED_LIBS)                         \
376         $(DAEMON_DLL_LOCAL_ASSEMBLIES:%=-r:%)   \
377         $(SHARPZIPLIB_LIBS)             \
378         -r:Mono.Data.SqliteClient               \
379         -r:Mono.Posix                           \
380         -r:System.Runtime.Remoting              \
381         -r:System.Web
383 if USE_LOCAL_SQLITE
384 DAEMON_DLL_CSFILES += $(SQLITE_CSFILES)
385 DAEMON_DLL_ASSEMBLIES += -r:System.Data
386 else
387 DAEMON_DLL_ASSEMBLIES += -r:Mono.Data.SqliteClient
388 endif
390 #if ENABLE_MOZILLA_BACKEND
391 #mozillaqueryable = $(srcdir)/MozillaQueryable
392 #MOZILLA_QUERYABLE_CSFILES =                            \
393 #       $(mozillaqueryable)/MozillaQueryable.cs
394 #DAEMON_DLL_CSFILES +=                                  \
395 #       $(MOZILLA_QUERYABLE_CSFILES)
396 #endif
398 if ENABLE_WEBSERVICES
399 DAEMON_DLL_CSFILES += \
400         $(webservicesdir)/WebServiceProxy.cs    \
401         $(webservicesdir)/NetBeagleHandler.cs   \
402         $(webservicesdir)/NetBeagleQueryable.cs 
403 DAEMON_DLL_ASSEMBLIES += -r:System.Web.Services 
404 endif
406 if ENABLE_GOOGLEDRIVER
407 DAEMON_DLL_CSFILES +=                  \
408        $(srcdir)/GoogleDriver.cs
409 endif
411 $(DAEMON_DLL_TARGET): $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES)
412         $(CSC) -out:$@ $(DAEMON_DLL_CSFLAGS) $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_ASSEMBLIES)
414 ############################################################
417 ### Pluggable backend support
420 BACKEND_CSFLAGS = -target:library
421 BACKEND_LOCAL_ASSEMBLIES =                      \
422         ../Util/Util.dll                        \
423         ../BeagleClient/Beagle.dll              \
424         ./$(DAEMON_DLL_TARGET)
426 BACKEND_ASSEMBLIES =                            \
427         $(SHARPZIPLIB_LIBS)                     \
428         $(BACKEND_LOCAL_ASSEMBLIES:%=-r:%)      \
429         -r:Mono.Posix
432 ### Evolution backend
435 edsqueryable = $(srcdir)/EvolutionDataServerQueryable
436 EDS_QUERYABLE_CSFILES =                                 \
437         $(edsqueryable)/BookContainer.cs                \
438         $(edsqueryable)/CalContainer.cs                 \
439         $(edsqueryable)/Container.cs                    \
440         $(edsqueryable)/EvolutionDataServerQueryable.cs \
441         $(edsqueryable)/SourcesHandler.cs
443 evomailqueryable = $(srcdir)/EvolutionMailDriver
444 EVO_MAIL_QUERYABLE_CSFILES =                                    \
445         $(evomailqueryable)/EvolutionMailDriver.cs              \
446         $(evomailqueryable)/EvolutionMailIndexableGenerator.cs  \
447         $(evomailqueryable)/GConfThreadHelper.cs                \
448         $(evomailqueryable)/MailCrawler.cs
450 EVO_DLL_TARGET = EvolutionBackends.dll
451 EVO_DLL_CSFLAGS = $(BACKEND_CSFLAGS)
452 EVO_DLL_CSFILES = $(EDS_QUERYABLE_CSFILES) $(EVO_MAIL_QUERYABLE_CSFILES)
453 EVO_DLL_ASSEMBLIES = $(BACKEND_ASSEMBLIES) $(EVO_LIBS)
455 $(EVO_DLL_TARGET): $(EVO_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES) $(DAEMON_DLL_TARGET)
456         $(CSC) -out:$@ $(EVO_DLL_CSFLAGS) $(EVO_DLL_CSFILES) -r:$(DAEMON_DLL_TARGET) $(EVO_DLL_ASSEMBLIES)
458 ############################################################
461 ### Web Services
464 webservicesdir = $(srcdir)/WebServices
465 xspdir = $(srcdir)/WebServices/WebServer
467 WEBSERVICES_XSP_TARGET = BeagleXsp.dll
469 WEBSERVICES_XSP_CSFLAGS = -target:library 
471 WEBSERVICES_XSP_ASSEMBLIES =                    \
472         -r:System                               \
473         -r:System.Web                           \
474         -r:System.Runtime.Remoting      
476 WEBSERVICES_XSP_CSFILES =                       \
477         $(xspdir)/IApplicationHost.cs           \
478         $(xspdir)/MonoWorkerRequest.cs          \
479         $(xspdir)/Tracing.cs                    \
480         $(xspdir)/ApplicationServer.cs          \
481         $(xspdir)/LingeringNetworkStream.cs     \
482         $(xspdir)/BaseApplicationHost.cs        \
483         $(xspdir)/BaseRequestBroker.cs          \
484         $(xspdir)/IWebSource.cs                 \
485         $(xspdir)/server.cs                     \
486         $(xspdir)/InitialWorkerRequest.cs       \
487         $(xspdir)/XSPApplicationHost.cs         \
488         $(xspdir)/XSPWorkerRequest.cs           \
489         $(xspdir)/AssemblyInfo.cs
491 $(WEBSERVICES_XSP_TARGET): $(WEBSERVICES_XSP_CSFILES) 
492         $(CSC) -out:$@ $(WEBSERVICES_XSP_CSFLAGS) $(WEBSERVICES_XSP_CSFILES) $(WEBSERVICES_XSP_ASSEMBLIES)
495 WEBSERVICES_BACKEND_TARGET = BeagleWebServicesBackEnd.dll
497 WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES =  \
498         ../Util/Util.dll                \
499         ../images/Images.dll            \
500         ../BeagleClient/Beagle.dll      \
501         ../Tiles/Tiles.dll              \
502         BeagleDaemonPlugins.dll         \
503         BeagleDaemonLib.dll                     \
504         $(WEBSERVICES_XSP_TARGET)
506 WEBSERVICES_BACKEND_ASSEMBLIES = \
507         $(WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES:%=-r:%)  \
508         -r:System                                       \
509         -r:System.Web                           \
510         -r:System.Runtime.Remoting      \
511         $(BEAGLED_LIBS)
513 WEBSERVICES_BACKEND_CSFILES = \
514         $(webservicesdir)/ExternalAccessFilter.cs       \
515         $(webservicesdir)/WebBackEnd.cs         \
516         $(webservicesdir)/WebServiceBackEnd.cs
518 WEBSERVICES_CSFLAGS = -target:library -noconfig
520 $(WEBSERVICES_BACKEND_TARGET): $(WEBSERVICES_BACKEND_CSFILES) $(WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES)
521         $(CSC) -out:$@ $(WEBSERVICES_CSFLAGS) $(WEBSERVICES_BACKEND_CSFILES) $(WEBSERVICES_BACKEND_ASSEMBLIES)
523 WEBSERVICES_FRONTEND_TARGET = BeagleWebServicesFrontEnd.dll
524 WEBSERVICES_FRONTEND_CSFILES = \
525         $(webservicesdir)/WebFrontEnd.cs        \
526         $(webservicesdir)/WebServiceFrontEnd.cs
528 WEBSERVICES_FRONTEND_ASSEMBLIES =       \
529         $(WEBSERVICES_BACKEND_ASSEMBLIES)       \
530         -r:$(WEBSERVICES_BACKEND_TARGET)        \
531         -r:System.Web.Services
533 $(WEBSERVICES_FRONTEND_TARGET): $(WEBSERVICES_FRONTEND_CSFILES) $(WEBSERVICES_BACKEND_TARGET) 
534         $(CSC) -out:$@ $(WEBSERVICES_CSFLAGS) $(WEBSERVICES_FRONTEND_CSFILES) $(WEBSERVICES_FRONTEND_ASSEMBLIES)
536 WEBSERVICES_RESOURCES =                         \
537         $(webservicesdir)/search.aspx   \
538         $(webservicesdir)/search.asmx   \
539         $(webservicesdir)/web.config
541 WEBSERVICES_RESOURCES_DIST =            \
542         $(webservicesdir)/search.aspx   \
543         $(webservicesdir)/search.asmx   \
544         $(webservicesdir)/web.config
546 XSP_DIR = $(pkgdatadir)/xsp
547 XSPBIN_DIR = $(XSP_DIR)/bin
549 ############################################################
551 DAEMON_WRAPPER = beagled
552 DAEMON_WRAPPER_IN = beagled.in
553 DAEMON_TARGET = BeagleDaemon.exe
555 $(DAEMON_WRAPPER): $(srcdir)/$(DAEMON_WRAPPER_IN)
556         $(WRAPPER_SED) -e "s|\@target\@|$(DAEMON_TARGET)|g" < $(srcdir)/$(DAEMON_WRAPPER_IN) > $@
557         chmod +x $(DAEMON_WRAPPER)
559 DAEMON_CSFLAGS =                                \
560         -target:exe                             \
561         $(BEAGLE_DEFINES)
563 DAEMON_CSFILES =                                \
564         $(srcdir)/BeagleDaemon.cs               \
565         $(srcdir)/RemoteIndexer.cs
567 DAEMON_LOCAL_ASSEMBLIES =                       \
568         ../Util/Util.dll                        \
569         ../BeagleClient/Beagle.dll              \
570         ./$(PLUGIN_TARGET)                      \
571         ./$(DAEMON_DLL_TARGET)
573 DAEMON_ASSEMBLIES =                             \
574         $(BEAGLED_LIBS)                         \
575         $(SHARPZIPLIB_LIBS)                     \
576         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
577         -r:Mono.Posix
579 if ENABLE_WEBSERVICES
580 DAEMON_CSFLAGS += -define:ENABLE_WEBSERVICES
582 DAEMON_LOCAL_ASSEMBLIES +=              \
583         BeagleDaemonPlugins.dll         \
584         ../images/Images.dll            \
585         ../Tiles/Tiles.dll              \
586         $(WEBSERVICES_BACKEND_TARGET)   \
587         $(WEBSERVICES_FRONTEND_TARGET)  
589 DAEMON_ASSEMBLIES += -r:System.Runtime.Remoting
590 endif
592 $(DAEMON_TARGET): $(DAEMON_CSFILES) $(DAEMON_LOCAL_ASSEMBLIES)
593         $(CSC) -out:$@ $(DAEMON_CSFLAGS) $(DAEMON_CSFILES) $(DAEMON_ASSEMBLIES)
595 if ENABLE_THUNDERBIRD   
596 THUNDERBIRD_DIR = ./ThunderbirdQueryable
598 THUNDERBIRD_TARGET = $(THUNDERBIRD_DIR)/ThunderbirdBackends.dll
600 THUNDERBIRD_CSFLAGS = -target:library
603 THUNDERBIRD_CSFILES =                                           \
604         $(THUNDERBIRD_DIR)/LuceneAccess.cs                      \
605         $(THUNDERBIRD_DIR)/ThunderbirdIndexer.cs                \
606         $(THUNDERBIRD_DIR)/ThunderbirdIndexableGenerator.cs     \
607         $(THUNDERBIRD_DIR)/ThunderbirdQueryable.cs              \
608         $(THUNDERBIRD_DIR)/ThunderbirdInotify.cs                \
609         $(THUNDERBIRD_DIR)/Mail.cs                              \
610         $(THUNDERBIRD_DIR)/Contact.cs                           \
611         $(THUNDERBIRD_DIR)/Rss.cs                               \
612         $(THUNDERBIRD_DIR)/Nntp.cs                              \
613         $(THUNDERBIRD_DIR)/MoveMail.cs
615 THUNDERBIRD_LOCAL_ASSEMBLIES =          \
616         ../Util/Util.dll                \
617         ../BeagleClient/Beagle.dll      \
618         BeagleDaemonLib.dll
620 THUNDERBIRD_ASSEMBLIES =                                \
621         -r:Mono.Posix                           \
622         $(BEAGLED_LIBS)                         \
623         $(THUNDERBIRD_LOCAL_ASSEMBLIES:%=-r:%)
626 $(THUNDERBIRD_TARGET): $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_LOCAL_ASSEMBLIES)
627         $(CSC) -out:$@ $(THUNDERBIRD_CSFLAGS) $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_ASSEMBLIES)
628 endif
630 ############################################################
631 ############################################################
632 ############################################################
634 # This next section is a very good example of why we need real mono support in
635 # automake.  This is a massive wart on our development platform.
637 INDEX_HELPER_WRAPPER = beagled-index-helper
638 INDEX_HELPER_WRAPPER_IN = $(INDEX_HELPER_WRAPPER).in
639 INDEX_HELPER_TARGET = IndexHelper.exe
641 $(INDEX_HELPER_WRAPPER): $(srcdir)/$(INDEX_HELPER_WRAPPER_IN)
642         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_HELPER_TARGET)|g" < $(srcdir)/$(INDEX_HELPER_WRAPPER_IN) > $@
643         chmod +x $(INDEX_HELPER_WRAPPER)
645 INDEX_HELPER_CSFLAGS = -target:exe $(BEAGLE_DEFINES)
647 indexhelperdir = $(srcdir)/IndexHelper
649 INDEX_HELPER_CSFILES =  \
650         $(indexhelperdir)/IndexHelper.cs                \
651         $(indexhelperdir)/RemoteIndexerExecutor.cs
654 INDEX_HELPER_LOCAL_ASSEMBLIES =         \
655         ../Util/Util.dll                \
656         ../BeagleClient/Beagle.dll      \
657         ./$(DAEMON_DLL_TARGET)
659 INDEX_HELPER_ASSEMBLIES = \
660         $(BEAGLED_LIBS)                         \
661         $(SHARPZIPLIB_LIBS)                     \
662         $(INDEX_HELPER_LOCAL_ASSEMBLIES:%=-r:%) \
663         -r:Mono.Posix                           \
664         -r:System.Runtime.Remoting
666 $(INDEX_HELPER_TARGET): $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_LOCAL_ASSEMBLIES)
667         $(CSC) -out:$@ $(INDEX_HELPER_CSFLAGS) $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_ASSEMBLIES)
669 ############################################################
671 EXTRACT_CONTENT_WRAPPER = beagle-extract-content
672 EXTRACT_CONTENT_TARGET = ExtractContent.exe
674 $(EXTRACT_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
675         $(WRAPPER_SED) -e "s|\@target\@|$(EXTRACT_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
676         chmod +x $(EXTRACT_CONTENT_WRAPPER)
679 EXTRACT_CONTENT_CSFLAGS = \
680         -target:exe
682 EXTRACT_CONTENT_CSFILES = \
683         $(srcdir)/ExtractContent.cs
685 EXTRACT_CONTENT_LOCAL_ASSEMBLIES = \
686         ../Util/Util.dll                        \
687         ../BeagleClient/Beagle.dll              \
688         ./$(PLUGIN_TARGET)                      \
689         ./$(DAEMON_DLL_TARGET)
691 EXTRACT_CONTENT_ASSEMBLIES = \
692         $(BEAGLED_LIBS)                         \
693         $(SHARPZIPLIB_LIBS)                     \
694         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
695         -r:Mono.Posix                           \
696         -r:System.Runtime.Remoting
698 $(EXTRACT_CONTENT_TARGET): $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_LOCAL_ASSEMBLIES)
699         $(CSC) -out:$@ $(EXTRACT_CONTENT_CSFLAGS) $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_ASSEMBLIES)
701 ############################################################
703 DUMP_INDEX_WRAPPER = beagle-dump-index
704 DUMP_INDEX_TARGET = DumpIndex.exe
706 $(DUMP_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
707         $(WRAPPER_SED) -e "s|\@target\@|$(DUMP_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
708         chmod +x $(DUMP_INDEX_WRAPPER)
710 DUMP_INDEX_CSFLAGS = \
711         -target:exe
713 DUMP_INDEX_CSFILES = \
714         $(srcdir)/DumpIndex.cs
716 DUMP_INDEX_LOCAL_ASSEMBLIES = \
717         ../Util/Util.dll                        \
718         ../BeagleClient/Beagle.dll              \
719         ./$(PLUGIN_TARGET)                      \
720         ./$(DAEMON_DLL_TARGET)
722 DUMP_INDEX_ASSEMBLIES = \
723         $(BEAGLED_LIBS)                         \
724         $(SHARPZIPLIB_LIBS)                     \
725         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
726         -r:Mono.Posix                           \
727         -r:System.Runtime.Remoting
729 $(DUMP_INDEX_TARGET): $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_LOCAL_ASSEMBLIES)
730         $(CSC) -out:$@ $(DUMP_INDEX_CSFLAGS) $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_ASSEMBLIES)
732 ############################################################
734 INDEX_WEB_CONTENT_WRAPPER = beagle-index-url
735 INDEX_WEB_CONTENT_TARGET = IndexWebContent.exe
737 $(INDEX_WEB_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
738         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_WEB_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
739         chmod +x $(INDEX_WEB_CONTENT_WRAPPER)
742 INDEX_WEB_CONTENT_CSFLAGS = \
743         -target:exe
745 INDEX_WEB_CONTENT_CSFILES = \
746         $(srcdir)/IndexWebContent.cs
748 INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES = \
749         ../Util/Util.dll                        \
750         ../BeagleClient/Beagle.dll              \
751         ./$(PLUGIN_TARGET)                      \
752         ./$(DAEMON_DLL_TARGET)
754 INDEX_WEB_CONTENT_ASSEMBLIES =  \
755         $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES:%=-r:%)
757 $(INDEX_WEB_CONTENT_TARGET): $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES)
758         $(CSC) -out:$@ $(INDEX_WEB_CONTENT_CSFLAGS) $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_ASSEMBLIES)
760 ############################################################
762 MASTER_DELETE_WRAPPER = beagle-master-delete-button
763 MASTER_DELETE_TARGET = MasterDelete.exe
765 $(MASTER_DELETE_WRAPPER): $(srcdir)/$(WRAPPER_IN)
766         $(WRAPPER_SED) -e "s|\@target\@|$(MASTER_DELETE_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
767         chmod +x $(MASTER_DELETE_WRAPPER)
770 MASTER_DELETE_CSFLAGS = \
771         -target:exe
773 MASTER_DELETE_CSFILES = \
774         $(srcdir)/MasterDelete.cs
776 MASTER_DELETE_LOCAL_ASSEMBLIES = \
777         ../Util/Util.dll                        \
778         ../BeagleClient/Beagle.dll              \
779         ./$(PLUGIN_TARGET)                      \
780         ./$(DAEMON_DLL_TARGET)
782 MASTER_DELETE_ASSEMBLIES = \
783         $(BEAGLED_LIBS)                         \
784         $(SHARPZIPLIB_LIBS)                     \
785         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
786         -r:Mono.Posix                           \
787         -r:System.Runtime.Remoting
789 $(MASTER_DELETE_TARGET): $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_LOCAL_ASSEMBLIES)
790         $(CSC) -out:$@ $(MASTER_DELETE_CSFLAGS) $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_ASSEMBLIES)
792 ############################################################
794 SNIPPET_TEST_WRAPPER = beagle-snippet-test
795 SNIPPET_TEST_TARGET = SnippetTest.exe
797 $(SNIPPET_TEST_WRAPPER): $(srcdir)/$(WRAPPER_IN)
798         $(WRAPPER_SED) -e "s|\@target\@|$(SNIPPET_TEST_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
799         chmod +x $(SNIPPET_TEST_WRAPPER)
801 SNIPPET_TEST_CSFLAGS = \
802         -target:exe
804 SNIPPET_TEST_CSFILES = \
805         $(srcdir)/SnippetTest.cs
807 SNIPPET_TEST_LOCAL_ASSEMBLIES = \
808         ../Util/Util.dll                        \
809         ../BeagleClient/Beagle.dll              \
810         ./$(PLUGIN_TARGET)                      \
811         ./$(DAEMON_DLL_TARGET)
813 SNIPPET_TEST_ASSEMBLIES = \
814         $(BEAGLED_LIBS)                         \
815         $(SHARPZIPLIB_LIBS)                     \
816         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
817         -r:Mono.Posix                           \
818         -r:System.Runtime.Remoting
820 $(SNIPPET_TEST_TARGET): $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_LOCAL_ASSEMBLIES)
821         $(CSC) -out:$@ $(SNIPPET_TEST_CSFLAGS) $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_ASSEMBLIES)
823 ############################################################
825 TERM_STATS_WRAPPER = beagle-term-stats
826 TERM_STATS_TARGET = TermStatsTool.exe
828 $(TERM_STATS_WRAPPER): $(srcdir)/$(WRAPPER_IN)
829         $(WRAPPER_SED) -e "s|\@target\@|$(TERM_STATS_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
830         chmod +x $(TERM_STATS_WRAPPER)
832 TERM_STATS_CSFLAGS = \
833         -target:exe
835 TERM_STATS_CSFILES = \
836         $(srcdir)/TermStatsTool.cs
838 TERM_STATS_LOCAL_ASSEMBLIES =   \
839         ../Util/Util.dll                        \
840         ../BeagleClient/Beagle.dll              \
841         ./$(PLUGIN_TARGET)                      \
842         ./$(DAEMON_DLL_TARGET)
844 TERM_STATS_ASSEMBLIES = \
845         $(BEAGLED_LIBS)                         \
846         $(SHARPZIPLIB_LIBS)                     \
847         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
848         -r:Mono.Posix                           \
849         -r:System.Runtime.Remoting
851 $(TERM_STATS_TARGET): $(TERM_STATS_CSFILES) $(TERM_STATS_LOCAL_ASSEMBLIES)
852         $(CSC) -out:$@ $(TERM_STATS_CSFLAGS) $(TERM_STATS_CSFILES) $(TERM_STATS_ASSEMBLIES)
854 ############################################################
856 NAME_INDEX_WRAPPER = beagle-name-index
857 NAME_INDEX_TARGET = NameIndexTool.exe
859 $(NAME_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
860         $(WRAPPER_SED) -e "s|\@target\@|$(NAME_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
861         chmod +x $(NAME_INDEX_WRAPPER)
863 NAME_INDEX_CSFLAGS = \
864         -target:exe
866 NAME_INDEX_CSFILES = \
867         $(srcdir)/NameIndexTool.cs
869 NAME_INDEX_LOCAL_ASSEMBLIES =   \
870         ../Util/Util.dll                        \
871         ../BeagleClient/Beagle.dll              \
872         ./$(PLUGIN_TARGET)                      \
873         ./$(DAEMON_DLL_TARGET)
875 NAME_INDEX_ASSEMBLIES = \
876         $(BEAGLED_LIBS)                         \
877         $(SHARPZIPLIB_LIBS)                     \
878         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
879         -r:Mono.Posix                           \
880         -r:System.Runtime.Remoting
882 $(NAME_INDEX_TARGET): $(NAME_INDEX_CSFILES) $(NAME_INDEX_LOCAL_ASSEMBLIES)
883         $(CSC) -out:$@ $(NAME_INDEX_CSFLAGS) $(NAME_INDEX_CSFILES) $(NAME_INDEX_ASSEMBLIES)
885 ############################################################
887 FS_SANITY_CHECK_WRAPPER = beagle-file-system-sanity-check
888 FS_SANITY_CHECK_TARGET = SanityCheckTool.exe
890 $(FS_SANITY_CHECK_WRAPPER): $(srcdir)/$(WRAPPER_IN)
891         $(WRAPPER_SED) -e "s|\@target\@|$(FS_SANITY_CHECK_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
892         chmod +x $(FS_SANITY_CHECK_WRAPPER)
894 FS_SANITY_CHECK_CSFLAGS = \
895         -target:exe
897 FS_SANITY_CHECK_CSFILES = \
898         $(srcdir)/SanityCheckTool.cs
900 FS_SANITY_CHECK_LOCAL_ASSEMBLIES = \
901         ../Util/Util.dll                        \
902         ../BeagleClient/Beagle.dll              \
903         ./$(PLUGIN_TARGET)                      \
904         ./$(DAEMON_DLL_TARGET)
906 FS_SANITY_CHECK_ASSEMBLIES = \
907         $(BEAGLED_LIBS)                         \
908         $(SHARPZIPLIB_LIBS)                     \
909         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
910         -r:Mono.Posix                           \
911         -r:System.Runtime.Remoting
913 $(FS_SANITY_CHECK_TARGET): $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_LOCAL_ASSEMBLIES)
914         $(CSC) -out:$@ $(FS_SANITY_CHECK_CSFLAGS) $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_ASSEMBLIES)
916 ############################################################
918 BUILD_INDEX_WRAPPER = beagle-build-index
919 BUILD_INDEX_TARGET = BuildIndex.exe
921 $(BUILD_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
922         $(WRAPPER_SED) -e "s|\@target\@|$(BUILD_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
923         chmod +x $(BUILD_INDEX_WRAPPER)
925 BUILD_INDEX_CSFLAGS = \
926         -target:exe
928 BUILD_INDEX_CSFILES = \
929         $(srcdir)/BuildIndex.cs
931 BUILD_INDEX_LOCAL_ASSEMBLIES = \
932         ../Util/Util.dll                        \
933         ../BeagleClient/Beagle.dll              \
934         ./$(PLUGIN_TARGET)                      \
935         ./$(DAEMON_DLL_TARGET)
937 BUILD_INDEX_ASSEMBLIES = \
938         $(BEAGLED_LIBS)                         \
939         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
940         -r:Mono.Posix
942 $(BUILD_INDEX_TARGET): $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_LOCAL_ASSEMBLIES)
943         $(CSC) -out:$@ $(BUILD_INDEX_CSFLAGS) $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_ASSEMBLIES)
945 ############################################################
947 MANAGE_INDEX_WRAPPER = beagle-manage-index
948 MANAGE_INDEX_TARGET = ManageIndex.exe
950 $(MANAGE_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
951         $(WRAPPER_SED) -e "s|\@target\@|$(MANAGE_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
952         chmod +x $(MANAGE_INDEX_WRAPPER)
954 MANAGE_INDEX_CSFLAGS = \
955         -target:exe
957 MANAGE_INDEX_CSFILES = \
958         $(srcdir)/ManageIndex.cs
960 MANAGE_INDEX_LOCAL_ASSEMBLIES = \
961         ../Util/Util.dll                        \
962         ../BeagleClient/Beagle.dll              \
963         ./$(PLUGIN_TARGET)                      \
964         ./$(DAEMON_DLL_TARGET)
966 MANAGE_INDEX_ASSEMBLIES = \
967         $(BEAGLED_LIBS)                         \
968         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
969         -r:Mono.Posix
971 $(MANAGE_INDEX_TARGET): $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_LOCAL_ASSEMBLIES)
972         $(CSC) -out:$@ $(MANAGE_INDEX_CSFLAGS) $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_ASSEMBLIES)
974 ############################################################
976 CRAWL_SYSTEM_IN = beagle-crawl-system.in
977 CRAWL_SYSTEM = beagle-crawl-system
979 $(CRAWL_SYSTEM): $(srcdir)/$(CRAWL_SYSTEM_IN)
980         $(WRAPPER_SEB) -e "s|\@target\@|$(CRAWL_SYSTEM)|g" < $(srcdir)/$(CRAWL_SYSTEM_IN) > $@
981         chmod +x $(CRAWL_SYSTEM)
983 # OK, now back to our regularly scheduled program.  But notice all of the
984 # EXTRA_DIST and CLEANFILES stuff at the bottom of the file.  Yuck.
986 ############################################################
987 ############################################################
988 ############################################################
990 #       $(MASTER_DELETE_TARGET)
992 #       $(FS_SANITY_CHECK_TARGET)
994 ALL_TARGETS =                           \
995         $(PLUGIN_TARGET)                \
996         $(DAEMON_DLL_TARGET)            \
997         $(DAEMON_TARGET)                \
998         $(DAEMON_WRAPPER)               \
999         $(INDEX_HELPER_TARGET)          \
1000         $(INDEX_HELPER_WRAPPER)         \
1001         $(INDEX_WEB_CONTENT_TARGET)     \
1002         $(INDEX_WEB_CONTENT_WRAPPER)    \
1003         $(EXTRACT_CONTENT_TARGET)       \
1004         $(EXTRACT_CONTENT_WRAPPER)      \
1005         $(DUMP_INDEX_TARGET)            \
1006         $(SNIPPET_TEST_TARGET)          \
1007         $(TERM_STATS_TARGET)            \
1008         $(NAME_INDEX_TARGET)            \
1009         $(MANAGE_INDEX_TARGET)          \
1010         $(MANAGE_INDEX_WRAPPER)         \
1011         $(BUILD_INDEX_TARGET)           \
1012         $(BUILD_INDEX_WRAPPER)
1014 if ENABLE_THUNDERBIRD
1015 ALL_TARGETS += $(THUNDERBIRD_TARGET)
1016 endif
1018 if ENABLE_WEBSERVICES
1019 ALL_TARGETS +=                          \
1020         $(XSP_TARGET)                   \
1021         $(WEBSERVICES_FRONTEND_TARGET)  \
1022         $(WEBSERVICES_BACKEND_TARGET)   
1023 endif
1025 if ENABLE_EVOLUTION
1026 ALL_TARGETS +=                          \
1027         $(EVO_DLL_TARGET)
1028 endif
1030 man_MANS =                              \
1031         beagled.1                       \
1032         beagle-build-index.8            \
1033         beagle-manage-index.8
1035 all: $(ALL_TARGETS)
1037 install-data-local: $(ALL_TARGETS)
1038         $(mkinstalldirs) $(DESTDIR)$(bindir)
1039         $(mkinstalldirs) $(DESTDIR)$(sbindir)
1040         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
1041         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
1042         $(mkinstalldirs) $(DESTDIR)$(BACKENDDIR)
1043 if ENABLE_WEBSERVICES
1044         $(mkinstalldirs) $(DESTDIR)$(XSP_DIR)
1045         $(mkinstalldirs) $(DESTDIR)$(XSPBIN_DIR)
1046 endif
1047 if ENABLE_EVOLUTION
1048         $(INSTALL_DATA) $(EVO_DLL_TARGET) $(EVO_DLL_TARGET).mdb $(DESTDIR)$(BACKENDDIR)
1049 endif
1050         @for i in $(BIN_WRAPPERS); do                                           \
1051                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
1052                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i";       \
1053                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i || exit 1;    \
1054                 rm -f $$i.tmp;                                                  \
1055         done
1057         @for i in $(SBIN_WRAPPERS); do                                          \
1058                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
1059                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i";      \
1060                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i || exit 1;   \
1061                 rm -f $$i.tmp;                                                  \
1062         done
1064         @sed -e "s|\#installed=1|installed=1|" < $(INDEX_HELPER_WRAPPER) > $(INDEX_HELPER_WRAPPER).tmp
1065         $(INSTALL_SCRIPT) $(INDEX_HELPER_WRAPPER).tmp $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
1066         @rm -f $(INDEX_HELPER_WRAPPER).tmp
1068         $(INSTALL_DATA) $(PLUGIN_TARGET)                 $(DESTDIR)$(pkglibdir)
1069         $(INSTALL_DATA) $(PLUGIN_TARGET).mdb             $(DESTDIR)$(pkglibdir)
1070         $(INSTALL_DATA) $(DAEMON_DLL_TARGET)             $(DESTDIR)$(pkglibdir)
1071         $(INSTALL_DATA) $(DAEMON_DLL_TARGET).mdb         $(DESTDIR)$(pkglibdir)
1072         $(INSTALL_DATA) $(DAEMON_TARGET)                 $(DESTDIR)$(pkglibdir)
1073         $(INSTALL_DATA) $(DAEMON_TARGET).mdb             $(DESTDIR)$(pkglibdir)
1074         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET)        $(DESTDIR)$(pkglibdir)
1075         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET).mdb    $(DESTDIR)$(pkglibdir)
1076         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET)      $(DESTDIR)$(pkglibdir)
1077         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET).mdb  $(DESTDIR)$(pkglibdir)
1078         $(INSTALL_DATA) $(INDEX_HELPER_TARGET)           $(DESTDIR)$(pkglibdir)
1079         $(INSTALL_DATA) $(INDEX_HELPER_TARGET).mdb       $(DESTDIR)$(pkglibdir)
1080         $(INSTALL_DATA) $(BUILD_INDEX_TARGET)            $(DESTDIR)$(pkglibdir)
1081         $(INSTALL_DATA) $(BUILD_INDEX_TARGET).mdb        $(DESTDIR)$(pkglibdir)
1082         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET)           $(DESTDIR)$(pkglibdir)
1083         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET).mdb       $(DESTDIR)$(pkglibdir)
1084 if ENABLE_WEBSERVICES
1085         $(INSTALL_DATA) $(WEBSERVICES_XSP_TARGET) $(DESTDIR)$(pkglibdir)
1086         $(INSTALL_DATA) $(WEBSERVICES_BACKEND_TARGET) $(DESTDIR)$(pkglibdir)
1087         $(INSTALL_DATA) $(WEBSERVICES_FRONTEND_TARGET) $(DESTDIR)$(XSPBIN_DIR)
1088         $(INSTALL_DATA) $(WEBSERVICES_BACKEND_TARGET) $(DESTDIR)$(XSPBIN_DIR)
1089         $(INSTALL_DATA)  $(WEBSERVICES_RESOURCES) $(DESTDIR)$(XSP_DIR)
1090 #       $(INSTALL_DATA) ../Util/Util.dll ../images/Images.dll ../BeagleClient/Beagle.dll ../Tiles/Tiles.dll BeagleDaemonPlugins.dll BeagleDaemonLib.dll $(DESTDIR)$(XSPBIN_DIR)
1092 endif
1093 if ENABLE_THUNDERBIRD
1094         $(INSTALL_DATA) $(THUNDERBIRD_TARGET)                 $(DESTDIR)/$(BACKENDDIR)
1095         $(INSTALL_DATA) $(THUNDERBIRD_TARGET).mdb             $(DESTDIR)/$(BACKENDDIR)
1096 endif
1097 uninstall-local:
1098 if ENABLE_WEBSERVICES
1099         rm -f $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_BACKEND_TARGET)
1100         rm -f $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_XSP_TARGET)
1101         rm -rf $(DESTDIR)$(XSP_DIR)
1102 endif
1103 if ENABLE_THUNDERBIRD
1104         $(INSTALL_DATA) $(THUNDERBIRD_TARGET)                 $(DESTDIR)/$(BACKENDDIR)
1105         $(INSTALL_DATA) $(THUNDERBIRD_TARGET).mdb             $(DESTDIR)/$(BACKENDDIR)
1106 endif
1107 if ENABLE_EVOLUTION
1108         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET)
1109         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET).mdb
1110 endif
1112         @for i in $(BIN_WRAPPERS); do                           \
1113                 echo "rm -f $(DESTDIR)$(bindir)/$$i";           \
1114                 rm -f $(DESTDIR)$(bindir)/$$i || exit 1;        \
1115         done
1117         @for i in $(SBIN_WRAPPERS); do                          \
1118                 echo "rm -f $(DESTDIR)$(sbindir)/$$i";          \
1119                 rm -f $(DESTDIR)$(sbindir)/$$i || exit 1;       \
1120         done
1122         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET)
1123         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET).mdb
1124         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET)
1125         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET).mdb
1126         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET)
1127         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET).mdb
1128         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET)
1129         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET).mdb
1130         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
1131         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER).mdb
1132         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET)
1133         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET).mdb
1134         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET)
1135         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET).mdb
1136         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET)
1137         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET).mdb
1138         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET)
1139         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET).mdb
1141 BIN_WRAPPERS = \
1142         $(DAEMON_WRAPPER)               \
1143         $(EXTRACT_CONTENT_WRAPPER)      \
1144         $(INDEX_WEB_CONTENT_WRAPPER)
1146 SBIN_WRAPPERS = \
1147         $(BUILD_INDEX_WRAPPER)          \
1148         $(MANAGE_INDEX_WRAPPER)
1150 #       $(MASTER_DELETE_WRAPPER)
1151 #       $(FS_SANITY_CHECK_WRAPPER)
1153 noinst_SCRIPTS= \
1154         $(DUMP_INDEX_WRAPPER)           \
1155         $(SNIPPET_TEST_WRAPPER)         \
1156         $(TERM_STATS_WRAPPER)           \
1157         $(NAME_INDEX_WRAPPER)           
1159 EXTRA_DIST = \
1160         $(WRAPPER_IN)                           \
1161         $(DAEMON_WRAPPER_IN)                    \
1162         $(INDEX_HELPER_WRAPPER_IN)              \
1163         $(man_MANS)                             \
1164         $(PLUGIN_CSFILES)                       \
1165         $(DAEMON_DLL_CSFILES)                   \
1166         $(DAEMON_CSFILES)                       \
1167         $(EVO_DLL_CSFILES)                      \
1168         $(EXTRACT_CONTENT_CSFILES)              \
1169         $(DUMP_INDEX_CSFILES)                   \
1170         $(INDEX_WEB_CONTENT_CSFILES)            \
1171         $(SNIPPET_TEST_CSFILES)                 \
1172         $(INDEX_HELPER_CSFILES)                 \
1173         $(MASTER_DELETE_CSFILES)                \
1174         $(TERM_STATS_CSFILES)                   \
1175         $(NAME_INDEX_CSFILES)                   \
1176         $(FS_SANITY_CHECK_CSFILES)              \
1177         $(MANAGE_INDEX_CSFILES)                 \
1178         $(BUILD_INDEX_CSFILES)                  \
1179         $(WEBSERVICES_XSP_CSFILES)              \
1180         $(WEBSERVICES_BACKEND_CSFILES)          \
1181         $(WEBSERVICES_FRONTEND_CSFILES)         \
1182         $(WEBSERVICES_RESOURCES_DIST)           \
1183         $(webservicesdir)/WebServiceProxy.cs    \
1184         $(webservicesdir)/NetBeagleHandler.cs   \
1185         $(webservicesdir)/NetBeagleQueryable.cs
1187 CLEANFILES = \
1188         $(PLUGIN_TARGET)                        \
1189         $(PLUGIN_TARGET).mdb                    \
1190         $(DAEMON_DLL_TARGET)                    \
1191         $(DAEMON_DLL_TARGET).mdb                \
1192         $(DAEMON_TARGET)                        \
1193         $(DAEMON_TARGET).mdb                    \
1194         $(DAEMON_WRAPPER)                       \
1195         $(EVO_DLL_TARGET)                       \
1196         $(EVO_DLL_TARGET).mdb                   \
1197         $(INDEX_HELPER_TARGET)                  \
1198         $(INDEX_HELPER_TARGET).mdb              \
1199         $(INDEX_HELPER_WRAPPER)                 \
1200         $(EXTRACT_CONTENT_TARGET)               \
1201         $(EXTRACT_CONTENT_TARGET).mdb           \
1202         $(EXTRACT_CONTENT_WRAPPER)              \
1203         $(DUMP_INDEX_TARGET)                    \
1204         $(DUMP_INDEX_TARGET).mdb                \
1205         $(DUMP_INDEX_WRAPPER)                   \
1206         $(INDEX_WEB_CONTENT_TARGET)             \
1207         $(INDEX_WEB_CONTENT_TARGET).mdb         \
1208         $(INDEX_WEB_CONTENT_WRAPPER)            \
1209         $(MASTER_DELETE_TARGET)                 \
1210         $(MASTER_DELETE_TARGET).mdb             \
1211         $(MASTER_DELETE_WRAPPER)                \
1212         $(SNIPPET_TEST_TARGET)                  \
1213         $(SNIPPET_TEST_TARGET).mdb              \
1214         $(SNIPPET_TEST_WRAPPER)                 \
1215         $(TERM_STATS_TARGET)                    \
1216         $(TERM_STATS_TARGET).mdb                \
1217         $(TERM_STATS_WRAPPER)                   \
1218         $(NAME_INDEX_TARGET)                    \
1219         $(NAME_INDEX_TARGET).mdb                \
1220         $(NAME_INDEX_WRAPPER)                   \
1221         $(FS_SANITY_CHECK_TARGET)               \
1222         $(FS_SANITY_CHECK_TARGET).mdb           \
1223         $(FS_SANITY_CHECK_WRAPPER)              \
1224         $(MANAGE_INDEX_TARGET)                  \
1225         $(MANAGE_INDEX_TARGET).mdb              \
1226         $(MANAGE_INDEX_WRAPPER)                 \
1227         $(BUILD_INDEX_TARGET)                   \
1228         $(BUILD_INDEX_TARGET).mdb               \
1229         $(BUILD_INDEX_WRAPPER)                  \
1230         $(WEBSERVICES_BACKEND_TARGET)           \
1231         $(WEBSERVICES_BACKEND_TARGET).mdb       \
1232         $(WEBSERVICES_FRONTEND_TARGET)          \
1233         $(WEBSERVICES_FRONTEND_TARGET).mdb      \
1234         $(WEBSERVICES_XSP_TARGET)               \
1235         $(WEBSERVICES_XSP_TARGET).mdb           \
1236         $(THUNDERBIRD_TARGET)                   \
1237         $(THUNDERBIRD_TARGET).mdb