New e-d-s backend which indexes all local addressbooks and calendars.
[beagle.git] / Util / Makefile.am
blobbee4a0101f5b5426848cfa318c88acfa80168d79
1 # Warnings we don't want to see
2 # 0067 = event defined but not used
3 # 0618 = Mono.Posix.Syscall is obsolete
5 CSC = mcs -debug -nowarn:0067,0618
8 TARGET = Util.dll
9 TARGET_CONFIG = $(TARGET).config
11 CSFLAGS = -target:library
13 if OS_LINUX
14 CSFLAGS += -define:OS_LINUX
15 endif
17 if OS_FREEBSD
18 CSFLAGS += -define:OS_FREEBSD
19 endif
21 if ENABLE_WEBSERVICES
22 CSFLAGS += -define:ENABLE_WEBSERVICES
23 endif
25 GOOGLE_WSDL = $(srcdir)/GoogleSearch.wsdl
26 GOOGLE_CS   = GoogleSearch.cs
28 $(GOOGLE_CS): $(GOOGLE_WSDL)
29         wsdl -namespace:Beagle.Util -out:$@ $^
31 EXTSTR = ExternalStringsHack.cs
32 EXTSTR_IN = $(srcdir)/$(EXTSTR).in
33 $(EXTSTR): $(EXTSTR_IN)
34         sed     -e "s|\@prefix\@|$(prefix)|g"                   \
35                 -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
36                 -e "s|\@pkgdatadir\@|$(pkgdatadir)|g"           \
37                 -e "s|\@localstatedir\@|$(localstatedir)|g"     \
38                 -e "s|\@VERSION\@|$(VERSION)|g"                 \
39                 -e "s|\@GNOME_PREFIX\@|$(GNOME_PREFIX)|g"       \
40                 -e "s|\@KDE_PREFIX\@|$(KDE_PREFIX)|g"           \
41                 -e "s|\@XATTR_LIB\@|$(XATTR_LIB)|g"             \
42                 < $(EXTSTR_IN) > $@
44 CSFILES =                                       \
45         $(srcdir)/ArrayFu.cs                    \
46         $(srcdir)/camel.cs                      \
47         $(srcdir)/CommandLineFu.cs              \
48         $(srcdir)/CompatFileChooser.cs          \
49         $(srcdir)/Conf.cs                       \
50         $(srcdir)/DirectoryWalker.cs            \
51         $(srcdir)/Evolution.cs                  \
52         $(srcdir)/ExceptionHandlingThread.cs    \
53         $(srcdir)/ExifData.cs                   \
54         $(srcdir)/ExtendedAttribute.cs          \
55         $(srcdir)/FileAdvise.cs                 \
56         $(srcdir)/FileSystem.cs                 \
57         $(srcdir)/FrequencyStatistics.cs        \
58         $(srcdir)/FSpotTools.cs                 \
59         $(srcdir)/GeckoUtils.cs                 \
60         $(srcdir)/gnome.cs                      \
61         $(srcdir)/GtkUtils.cs                   \
62         $(srcdir)/GuidFu.cs                     \
63         $(srcdir)/HigMessageDialog.cs           \
64         $(srcdir)/ImBuddy.cs                    \
65         $(srcdir)/ImLog.cs                      \
66         $(srcdir)/Inotify.cs                    \
67         $(srcdir)/IoPriority.cs                 \
68         $(srcdir)/JpegHeader.cs                 \
69         $(srcdir)/KdeUtils.cs                   \
70         $(srcdir)/Logger.cs                     \
71         $(srcdir)/Mozilla.cs                    \
72         $(srcdir)/MultiReader.cs                \
73         $(srcdir)/NautilusTools.cs              \
74         $(srcdir)/Note.cs                       \
75         $(srcdir)/PathFinder.cs                 \
76         $(srcdir)/PullingReader.cs              \
77         $(srcdir)/Scheduler.cs                  \
78         $(srcdir)/Stopwatch.cs                  \
79         $(srcdir)/StringFu.cs                   \
80         $(srcdir)/StringMatcher.cs              \
81         $(srcdir)/SystemInformation.cs          \
82         $(srcdir)/Timeline.cs                   \
83         $(srcdir)/UnixClient.cs                 \
84         $(srcdir)/UnixListener.cs               \
85         $(srcdir)/UriFu.cs                      \
86         $(srcdir)/Vfs.cs                        \
87         $(srcdir)/XKeybinder.cs
89 if ! ENABLE_GST_SHARP
90 CSFILES +=                                      \
91         $(srcdir)/ApeReader.cs                  \
92         $(srcdir)/Mp3Reader.cs                  \
93         $(srcdir)/FlacReader.cs                 \
94         $(srcdir)/OggReader.cs                  \
95         $(srcdir)/Tag.cs                        
96 endif
98 if HAS_LIBCHM 
99 CSFILES +=                                      \
100         $(srcdir)/ChmFile.cs
101 endif
103 ASSEMBLIES =                                    \
104         $(BEAGLE_UI_LIBS)                       \
105         -r:System.Web.Services                  \
106         -r:Mono.Data.SqliteClient               \
107         -r:Mono.Posix
109 if ENABLE_GALAGO
110 CSFILES +=                                      \
111         $(srcdir)/Galago.cs
113 ASSEMBLIES +=                                   \
114         $(GALAGO_LIBS)
115 endif
118 $(TARGET): $(CSFILES) $(GOOGLE_CS) $(EXTSTR)
119         $(CSC) -unsafe -out:$@ $(CSFLAGS) $^ $(ASSEMBLIES)
121 Inotify.exe: $(srcdir)/Inotify.cs $(srcdir)/Logger.cs $(srcdir)/DirectoryWalker.cs
122         $(CSC) -unsafe -out:$@ $^ -r:Mono.Posix -define:INOTIFY_TEST
124 all: $(TARGET) Inotify.exe
126 install-data-local: $(TARGET)
127         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
128         $(INSTALL_DATA) $(TARGET) $(TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
130 uninstall-local:
131         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
133 COND_CS_FILES =                 \
134         $(srcdir)/ApeReader.cs  \
135         $(srcdir)/Mp3Reader.cs  \
136         $(srcdir)/FlacReader.cs \
137         $(srcdir)/OggReader.cs  \
138         $(srcdir)/Tag.cs        \
139         $(srcdir)/ChmFile.cs    \
140         $(srcdir)/Galago.cs
142 EXTRA_DIST =                    \
143         $(GOOGLE_WSDL)          \
144         $(EXTSTR_IN)            \
145         $(CSFILES)              \
146         $(COND_CS_FILES)        \
147         Util.dll.config.in      \
148         inotify-test
150 CLEANFILES =                    \
151         $(GOOGLE_CS)            \
152         $(EXTSTR)               \
153         $(TARGET)               \
154         $(TARGET).mdb           \
155         Inotify.exe             \
156         Inotify.exe.mdb