Remove debug statements from KCal backends.
[beagle.git] / Util / Makefile.am
blob9f1b3f598f5155898cd64c738a957613d1a84f6f
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)/DelayedTextWriter.cs          \
43         $(srcdir)/DigikamTags.cs                \
44         $(srcdir)/DirectoryWalker.cs            \
45         $(srcdir)/Evolution.cs                  \
46         $(srcdir)/ExceptionHandlingThread.cs    \
47         $(srcdir)/ExifData.cs                   \
48         $(srcdir)/ExtendedAttribute.cs          \
49         $(srcdir)/FileAdvise.cs                 \
50         $(srcdir)/FileSystem.cs                 \
51         $(srcdir)/FrequencyStatistics.cs        \
52         $(srcdir)/FSpotTools.cs                 \
53         $(srcdir)/GuidFu.cs                     \
54         $(srcdir)/ICalParser.cs                 \
55         $(srcdir)/ImBuddy.cs                    \
56         $(srcdir)/ImLog.cs                      \
57         $(srcdir)/Inotify.cs                    \
58         $(srcdir)/IoPriority.cs                 \
59         $(srcdir)/JpegHeader.cs                 \
60         $(srcdir)/KdeUtils.cs                   \
61         $(srcdir)/KonqHistoryUtil.cs            \
62         $(srcdir)/Log.cs                        \
63         $(srcdir)/Logger.cs                     \
64         $(srcdir)/MetadataStore.cs              \
65         $(srcdir)/Mozilla.cs                    \
66         $(srcdir)/MultiReader.cs                \
67         $(srcdir)/NautilusTools.cs              \
68         $(srcdir)/Note.cs                       \
69         $(srcdir)/PathFinder.cs                 \
70         $(srcdir)/PngHeader.cs                  \
71         $(srcdir)/PullingReader.cs              \
72         $(srcdir)/ReflectionFu.cs               \
73         $(srcdir)/SafeProcess.cs                \
74         $(srcdir)/Scheduler.cs                  \
75         $(srcdir)/SmallIntArray.cs              \
76         $(srcdir)/Stopwatch.cs                  \
77         $(srcdir)/StringFu.cs                   \
78         $(srcdir)/StringMatcher.cs              \
79         $(srcdir)/SystemInformation.cs          \
80         $(srcdir)/TeeTextWriter.cs              \
81         $(srcdir)/ThreadPond.cs                 \
82         $(srcdir)/Tiff.cs                       \
83         $(srcdir)/Timeline.cs                   \
84         $(srcdir)/TopScores.cs                  \
85         $(srcdir)/TypeCacheAttribute.cs         \
86         $(srcdir)/UnclosableStream.cs           \
87         $(srcdir)/UriFu.cs                      \
88         $(srcdir)/XdgMime.cs                    \
89         $(srcdir)/XmlFu.cs                      \
90         $(srcdir)/XmpFile.cs                    \
91         $(srcdir)/SemWeb/ForwardLogic.cs                \
92         $(srcdir)/SemWeb/KnowledgeModel.cs              \
93         $(srcdir)/SemWeb/MemoryStore.cs         \
94         $(srcdir)/SemWeb/N3Parser.cs                    \
95         $(srcdir)/SemWeb/N3Writer.cs                    \
96         $(srcdir)/SemWeb/NamespaceManager.cs            \
97         $(srcdir)/SemWeb/Query.cs                       \
98         $(srcdir)/SemWeb/RdfParser.cs                   \
99         $(srcdir)/SemWeb/RdfWriter.cs                   \
100         $(srcdir)/SemWeb/Reasoning.cs                   \
101         $(srcdir)/SemWeb/Resource.cs                    \
102         $(srcdir)/SemWeb/RSquary.cs                     \
103         $(srcdir)/SemWeb/RSquaryFilters.cs              \
104         $(srcdir)/SemWeb/Sparql.cs                      \
105         $(srcdir)/SemWeb/SQLStore.cs                    \
106         $(srcdir)/SemWeb/Statement.cs                   \
107         $(srcdir)/SemWeb/Store.cs                       \
108         $(srcdir)/SemWeb/UriMap.cs                      \
109         $(srcdir)/SemWeb/Util.cs                        \
110         $(srcdir)/SemWeb/XmlParser.cs                   \
111         $(srcdir)/SemWeb/XmlWriter.cs                   \
112         $(srcdir)/SemWeb/XPathSemWebNavigator.cs        \
113         $(srcdir)/PropertyKeywordAttribute.cs
115 if ENABLE_THUNDERBIRD
116 UTIL_CSFILES +=                         \
117         $(srcdir)/Mork.cs               \
118         $(srcdir)/Thunderbird.cs
119 endif
121 if HAS_LIBCHM 
122 UTIL_CSFILES +=                                 \
123         $(srcdir)/ChmFile.cs
124 endif
126 UTIL_ASSEMBLIES =                               \
127         $(BEAGLED_LIBS)                         \
128         -r:System.Web.Services                  \
129         -r:System.Data                          \
130         -r:Mono.Data.SqliteClient               \
131         -r:Mono.Posix                           \
132         -r:System.Web                           \
133         -r:ICSharpCode.SharpZipLib
137 if ENABLE_INOTIFY
138 INOTIFY_EXE = Inotify.exe
139 CSFLAGS += -define:ENABLE_INOTIFY
140 else
141 INOTIFY_EXE =
142 endif
144 UTIL_TARGET_FILES = $(UTIL_CSFILES) $(EXTSTR)
146 if ENABLE_GOOGLEDRIVER
147 GOOGLE_WSDL = $(srcdir)/GoogleSearch.wsdl
148 GOOGLE_CS   = GoogleSearch.cs
150 $(GOOGLE_CS): $(GOOGLE_WSDL)
151         wsdl -namespace:Beagle.Util -out:$@ $^
153 UTIL_TARGET_FILES +=                            \
154         $(GOOGLE_CS)
155 endif
157 $(UTIL_TARGET): $(UTIL_TARGET_FILES)
158         $(CSC) -unsafe -out:$@ $(CSFLAGS) $^ $(UTIL_ASSEMBLIES)
160 UI_UTIL_CSFILES =                               \
161         $(srcdir)/CompatFileChooser.cs          \
162         $(srcdir)/GnomeFu.cs                    \
163         $(srcdir)/GtkUtils.cs                   \
164         $(srcdir)/HigMessageDialog.cs           \
165         $(srcdir)/XKeybinder.cs
167 UI_UTIL_ASSEMBLIES =                            \
168         $(BEAGLE_UI_LIBS)                       \
169         -r:Util.dll
171 if ENABLE_GALAGO
172 UI_UTIL_CSFILES +=                                      \
173         $(srcdir)/Galago.cs
175 UI_UTIL_ASSEMBLIES +=                           \
176         $(GALAGO_LIBS)
177 endif
179 $(UI_UTIL_TARGET): $(UI_UTIL_CSFILES) $(UTIL_TARGET)
180         $(CSC) -unsafe -out:$@ $(CSFLAGS) $(UI_UTIL_CSFILES) $(UI_UTIL_ASSEMBLIES)
182 INOTIFY_TEST_CSFILES =                          \
183         $(srcdir)/Inotify.cs                    \
184         $(srcdir)/Log.cs                        \
185         $(srcdir)/Logger.cs                     \
186         $(srcdir)/DelayedTextWriter.cs          \
187         $(srcdir)/TeeTextWriter.cs              \
188         $(srcdir)/DirectoryWalker.cs            \
189         $(srcdir)/FileSystem.cs                 \
190         $(srcdir)/ExceptionHandlingThread.cs
192 Inotify.exe: $(INOTIFY_TEST_CSFILES)
193         $(CSC) -unsafe -out:$@ $^ -r:Mono.Posix -define:INOTIFY_TEST -define:ENABLE_INOTIFY
195 ALL_TARGETS =                   \
196         $(UTIL_TARGET)          \
197         $(INOTIFY_EXE)
199 if ENABLE_GUI
200 ALL_TARGETS += $(UI_UTIL_TARGET)
201 endif
203 all: $(ALL_TARGETS)
205 install-data-local: $(ALL_TARGETS)
206         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
207         $(INSTALL_DATA) $(UTIL_TARGET) $(UTIL_TARGET).mdb $(UTIL_TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
208 if ENABLE_GUI
209         $(INSTALL_DATA) $(UI_UTIL_TARGET) $(UI_UTIL_TARGET).mdb $(srcdir)/$(UI_UTIL_TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
210 endif
212 uninstall-local:
213         rm -f $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET) $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET).mdb $(DESTDIR)$(pkglibdir)/$(UTIL_TARGET_CONFIG)
214         rm -f $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET) $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET).mdb $(DESTDIR)$(pkglibdir)/$(UI_UTIL_TARGET_CONFIG)
217 COND_CS_FILES =                 \
218         $(srcdir)/ChmFile.cs    \
219         $(srcdir)/Galago.cs
221 EXTRA_DIST =                    \
222         $(EXTSTR_IN)            \
223         $(UTIL_CSFILES)         \
224         $(UI_UTIL_CSFILES)      \
225         $(COND_CS_FILES)        \
226         UiUtil.dll.config       \
227         Util.dll.config.in      \
228         inotify-test
230 CLEANFILES =                    \
231         $(EXTSTR)               \
232         $(UTIL_TARGET)          \
233         $(UTIL_TARGET).mdb      \
234         $(UI_UTIL_TARGET)       \
235         $(UI_UTIL_TARGET).mdb   \
236         Inotify.exe             \
237         Inotify.exe.mdb
239 if ENABLE_GOOGLEDRIVER
240 EXTRA_DIST +=                   \
241         $(GOOGLE_WSDL)
243 CLEANFILES +=                   \
244         $(GOOGLE_CS)
245 endif