Some more fixes wrt child-indexables. Namely, fix proper handling of child indexables...
[beagle.git] / Util / Makefile.am
blob0434229ac0fbbc22d467364cdf2da8d076a09d80
1 # Warnings we don't want to see
2 # 0169 = The private field is never used
4 CSC = $(MCS) -debug -nowarn:0169
5 CSFLAGS = -target:library
7 UTIL_TARGET = Util.dll
8 UTIL_TARGET_CONFIG = $(UTIL_TARGET).config
10 UI_UTIL_TARGET = UiUtil.dll
11 UI_UTIL_TARGET_CONFIG = $(UI_UTIL_TARGET).config
13 if OS_LINUX
14 CSFLAGS += -define:OS_LINUX
15 endif
17 if OS_FREEBSD
18 CSFLAGS += -define:OS_FREEBSD
19 endif
21 EXTSTR = ExternalStringsHack.cs
22 EXTSTR_IN = $(srcdir)/$(EXTSTR).in
23 $(EXTSTR): $(EXTSTR_IN)
24         sed     -e "s|\@prefix\@|$(prefix)|g"                   \
25                 -e "s|\@sysconfdir\@|$(sysconfdir)|g"           \
26                 -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
27                 -e "s|\@pkgdatadir\@|$(pkgdatadir)|g"           \
28                 -e "s|\@localstatedir\@|$(localstatedir)|g"     \
29                 -e "s|\@VERSION\@|$(VERSION)|g"                 \
30                 -e "s|\@GNOME_PREFIX\@|$(GNOME_PREFIX)|g"       \
31                 -e "s|\@KDE_PREFIX\@|$(KDE_PREFIX)|g"           \
32                 -e "s|\@SQLITE_MAJ_VER\@|$(SQLITE_MAJ_VER)|g"   \
33                 < $(EXTSTR_IN) > $@
35 UTIL_CSFILES =                                  \
36         $(srcdir)/ArrayFu.cs                    \
37         $(srcdir)/BetterBitArray.cs             \
38         $(srcdir)/EndianConverter.cs            \
39         $(srcdir)/camel.cs                      \
40         $(srcdir)/CommandLineFu.cs              \
41         $(srcdir)/Conf.cs                       \
42         $(srcdir)/DateTimeUtil.cs               \
43         $(srcdir)/DelayedTextWriter.cs          \
44         $(srcdir)/DigikamTags.cs                \
45         $(srcdir)/DirectoryWalker.cs            \
46         $(srcdir)/Evolution.cs                  \
47         $(srcdir)/ExceptionHandlingThread.cs    \
48         $(srcdir)/ExifData.cs                   \
49         $(srcdir)/ExtendedAttribute.cs          \
50         $(srcdir)/FileAdvise.cs                 \
51         $(srcdir)/FileSystem.cs                 \
52         $(srcdir)/FrequencyStatistics.cs        \
53         $(srcdir)/FSpotTools.cs                 \
54         $(srcdir)/GuidFu.cs                     \
55         $(srcdir)/ICalParser.cs                 \
56         $(srcdir)/ImBuddy.cs                    \
57         $(srcdir)/ImLog.cs                      \
58         $(srcdir)/Inotify.cs                    \
59         $(srcdir)/IoPriority.cs                 \
60         $(srcdir)/JpegHeader.cs                 \
61         $(srcdir)/KdeUtils.cs                   \
62         $(srcdir)/KonqHistoryUtil.cs            \
63         $(srcdir)/Log.cs                        \
64         $(srcdir)/Logger.cs                     \
65         $(srcdir)/MetadataStore.cs              \
66         $(srcdir)/Mozilla.cs                    \
67         $(srcdir)/MultiReader.cs                \
68         $(srcdir)/NautilusTools.cs              \
69         $(srcdir)/Note.cs                       \
70         $(srcdir)/PathFinder.cs                 \
71         $(srcdir)/PngHeader.cs                  \
72         $(srcdir)/PullingReader.cs              \
73         $(srcdir)/ReflectionFu.cs               \
74         $(srcdir)/SafeProcess.cs                \
75         $(srcdir)/Scheduler.cs                  \
76         $(srcdir)/SmallIntArray.cs              \
77         $(srcdir)/Stopwatch.cs                  \
78         $(srcdir)/StringFu.cs                   \
79         $(srcdir)/StringMatcher.cs              \
80         $(srcdir)/SystemInformation.cs          \
81         $(srcdir)/TeeTextWriter.cs              \
82         $(srcdir)/ThreadPond.cs                 \
83         $(srcdir)/Tiff.cs                       \
84         $(srcdir)/Timeline.cs                   \
85         $(srcdir)/TopScores.cs                  \
86         $(srcdir)/TypeCacheAttribute.cs         \
87         $(srcdir)/UnclosableStream.cs           \
88         $(srcdir)/UriFu.cs                      \
89         $(srcdir)/XdgMime.cs                    \
90         $(srcdir)/XmlFu.cs                      \
91         $(srcdir)/XmpFile.cs                    \
92         $(srcdir)/SemWeb/ForwardLogic.cs                \
93         $(srcdir)/SemWeb/KnowledgeModel.cs              \
94         $(srcdir)/SemWeb/MemoryStore.cs         \
95         $(srcdir)/SemWeb/N3Parser.cs                    \
96         $(srcdir)/SemWeb/N3Writer.cs                    \
97         $(srcdir)/SemWeb/NamespaceManager.cs            \
98         $(srcdir)/SemWeb/Query.cs                       \
99         $(srcdir)/SemWeb/RdfParser.cs                   \
100         $(srcdir)/SemWeb/RdfWriter.cs                   \
101         $(srcdir)/SemWeb/Reasoning.cs                   \
102         $(srcdir)/SemWeb/Resource.cs                    \
103         $(srcdir)/SemWeb/RSquary.cs                     \
104         $(srcdir)/SemWeb/RSquaryFilters.cs              \
105         $(srcdir)/SemWeb/Sparql.cs                      \
106         $(srcdir)/SemWeb/SQLStore.cs                    \
107         $(srcdir)/SemWeb/Statement.cs                   \
108         $(srcdir)/SemWeb/Store.cs                       \
109         $(srcdir)/SemWeb/UriMap.cs                      \
110         $(srcdir)/SemWeb/Util.cs                        \
111         $(srcdir)/SemWeb/XmlParser.cs                   \
112         $(srcdir)/SemWeb/XmlWriter.cs                   \
113         $(srcdir)/SemWeb/XPathSemWebNavigator.cs        \
114         $(srcdir)/PropertyKeywordAttribute.cs
116 if ENABLE_THUNDERBIRD
117 UTIL_CSFILES +=                         \
118         $(srcdir)/Mork.cs               \
119         $(srcdir)/Thunderbird.cs
120 endif
122 if HAS_LIBCHM 
123 UTIL_CSFILES +=                                 \
124         $(srcdir)/ChmFile.cs
125 endif
127 UTIL_ASSEMBLIES =                               \
128         $(BEAGLED_LIBS)                         \
129         -r:System.Web.Services                  \
130         -r:System.Data                          \
131         -r:Mono.Data.SqliteClient               \
132         -r:Mono.Posix                           \
133         -r:System.Web                           \
134         -r:ICSharpCode.SharpZipLib
138 if ENABLE_INOTIFY
139 INOTIFY_EXE = Inotify.exe
140 CSFLAGS += -define:ENABLE_INOTIFY
141 else
142 INOTIFY_EXE =
143 endif
145 UTIL_TARGET_FILES = $(UTIL_CSFILES) $(EXTSTR)
147 if ENABLE_GOOGLEDRIVER
148 GOOGLE_WSDL = $(srcdir)/GoogleSearch.wsdl
149 GOOGLE_CS   = GoogleSearch.cs
151 $(GOOGLE_CS): $(GOOGLE_WSDL)
152         wsdl -namespace:Beagle.Util -out:$@ $^
154 UTIL_TARGET_FILES +=                            \
155         $(GOOGLE_CS)
156 endif
158 $(UTIL_TARGET): $(UTIL_TARGET_FILES)
159         $(CSC) -unsafe -out:$@ $(CSFLAGS) $^ $(UTIL_ASSEMBLIES)
161 UI_UTIL_CSFILES =                               \
162         $(srcdir)/CompatFileChooser.cs          \
163         $(srcdir)/GnomeFu.cs                    \
164         $(srcdir)/GtkUtils.cs                   \
165         $(srcdir)/HigMessageDialog.cs           \
166         $(srcdir)/XKeybinder.cs
168 UI_UTIL_ASSEMBLIES =                            \
169         $(BEAGLE_UI_LIBS)                       \
170         -r:Util.dll
172 if ENABLE_GALAGO
173 UI_UTIL_CSFILES +=                                      \
174         $(srcdir)/Galago.cs
176 UI_UTIL_ASSEMBLIES +=                           \
177         $(GALAGO_LIBS)
178 endif
180 $(UI_UTIL_TARGET): $(UI_UTIL_CSFILES) $(UTIL_TARGET)
181         $(CSC) -unsafe -out:$@ $(CSFLAGS) $(UI_UTIL_CSFILES) $(UI_UTIL_ASSEMBLIES)
183 INOTIFY_TEST_CSFILES =                          \
184         $(srcdir)/Inotify.cs                    \
185         $(srcdir)/Log.cs                        \
186         $(srcdir)/Logger.cs                     \
187         $(srcdir)/DelayedTextWriter.cs          \
188         $(srcdir)/TeeTextWriter.cs              \
189         $(srcdir)/DirectoryWalker.cs            \
190         $(srcdir)/FileSystem.cs                 \
191         $(srcdir)/ExceptionHandlingThread.cs
193 Inotify.exe: $(INOTIFY_TEST_CSFILES)
194         $(CSC) -unsafe -out:$@ $^ -r:Mono.Posix -define:INOTIFY_TEST -define:ENABLE_INOTIFY
196 ALL_TARGETS =                   \
197         $(UTIL_TARGET)          \
198         $(INOTIFY_EXE)
200 if ENABLE_GUI
201 ALL_TARGETS += $(UI_UTIL_TARGET)
202 endif
204 all: $(ALL_TARGETS)
206 install-data-local: $(ALL_TARGETS)
207         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
208         $(INSTALL_DATA) $(UTIL_TARGET) $(UTIL_TARGET).mdb $(UTIL_TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
209 if ENABLE_GUI
210         $(INSTALL_DATA) $(UI_UTIL_TARGET) $(UI_UTIL_TARGET).mdb $(srcdir)/$(UI_UTIL_TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
211 endif
213 uninstall-local:
214         rm -f $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET) $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET).mdb $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET_CONFIG)
215         rm -f $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET) $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET).mdb $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET_CONFIG)
218 COND_CS_FILES =                 \
219         $(srcdir)/ChmFile.cs    \
220         $(srcdir)/Galago.cs
222 EXTRA_DIST =                    \
223         $(EXTSTR_IN)            \
224         $(UTIL_CSFILES)         \
225         $(UI_UTIL_CSFILES)      \
226         $(COND_CS_FILES)        \
227         UiUtil.dll.config       \
228         Util.dll.config.in      \
229         inotify-test
231 CLEANFILES =                    \
232         $(EXTSTR)               \
233         $(UTIL_TARGET)          \
234         $(UTIL_TARGET).mdb      \
235         $(UI_UTIL_TARGET)       \
236         $(UI_UTIL_TARGET).mdb   \
237         Inotify.exe             \
238         Inotify.exe.mdb
240 if ENABLE_GOOGLEDRIVER
241 EXTRA_DIST +=                   \
242         $(GOOGLE_WSDL)
244 CLEANFILES +=                   \
245         $(GOOGLE_CS)
246 endif