Compute lucene-style scores for our hits.
[beagle.git] / Util / Makefile.am
blobc43da80be16f0f91febdd9f10b1ee614d1a29938
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)/BetterBitArray.cs             \
47         $(srcdir)/camel.cs                      \
48         $(srcdir)/CommandLineFu.cs              \
49         $(srcdir)/CompatFileChooser.cs          \
50         $(srcdir)/Conf.cs                       \
51         $(srcdir)/DirectoryWalker.cs            \
52         $(srcdir)/Evolution.cs                  \
53         $(srcdir)/ExceptionHandlingThread.cs    \
54         $(srcdir)/ExifData.cs                   \
55         $(srcdir)/ExtendedAttribute.cs          \
56         $(srcdir)/FileAdvise.cs                 \
57         $(srcdir)/FileSystem.cs                 \
58         $(srcdir)/FrequencyStatistics.cs        \
59         $(srcdir)/FSpotTools.cs                 \
60         $(srcdir)/GeckoUtils.cs                 \
61         $(srcdir)/gnome.cs                      \
62         $(srcdir)/GtkUtils.cs                   \
63         $(srcdir)/GuidFu.cs                     \
64         $(srcdir)/HigMessageDialog.cs           \
65         $(srcdir)/ImBuddy.cs                    \
66         $(srcdir)/ImLog.cs                      \
67         $(srcdir)/Inotify.cs                    \
68         $(srcdir)/IoPriority.cs                 \
69         $(srcdir)/JpegHeader.cs                 \
70         $(srcdir)/KdeUtils.cs                   \
71         $(srcdir)/Logger.cs                     \
72         $(srcdir)/Mozilla.cs                    \
73         $(srcdir)/MultiReader.cs                \
74         $(srcdir)/NautilusTools.cs              \
75         $(srcdir)/Note.cs                       \
76         $(srcdir)/PathFinder.cs                 \
77         $(srcdir)/PullingReader.cs              \
78         $(srcdir)/Scheduler.cs                  \
79         $(srcdir)/SmallIntArray.cs              \
80         $(srcdir)/Stopwatch.cs                  \
81         $(srcdir)/StringFu.cs                   \
82         $(srcdir)/StringMatcher.cs              \
83         $(srcdir)/SystemInformation.cs          \
84         $(srcdir)/Timeline.cs                   \
85         $(srcdir)/TopScores.cs                  \
86         $(srcdir)/UnixClient.cs                 \
87         $(srcdir)/UnixListener.cs               \
88         $(srcdir)/UriFu.cs                      \
89         $(srcdir)/Vfs.cs                        \
90         $(srcdir)/XKeybinder.cs
92 if ! ENABLE_GST_SHARP
93 CSFILES +=                                      \
94         $(srcdir)/ApeReader.cs                  \
95         $(srcdir)/Mp3Reader.cs                  \
96         $(srcdir)/FlacReader.cs                 \
97         $(srcdir)/OggReader.cs                  \
98         $(srcdir)/Tag.cs                        
99 endif
101 if HAS_LIBCHM 
102 CSFILES +=                                      \
103         $(srcdir)/ChmFile.cs
104 endif
106 ASSEMBLIES =                                    \
107         $(BEAGLE_UI_LIBS)                       \
108         -r:System.Web.Services                  \
109         -r:Mono.Data.SqliteClient               \
110         -r:Mono.Posix
112 if ENABLE_GALAGO
113 CSFILES +=                                      \
114         $(srcdir)/Galago.cs
116 ASSEMBLIES +=                                   \
117         $(GALAGO_LIBS)
118 endif
121 $(TARGET): $(CSFILES) $(GOOGLE_CS) $(EXTSTR)
122         $(CSC) -unsafe -out:$@ $(CSFLAGS) $^ $(ASSEMBLIES)
124 Inotify.exe: $(srcdir)/Inotify.cs $(srcdir)/Logger.cs $(srcdir)/DirectoryWalker.cs
125         $(CSC) -unsafe -out:$@ $^ -r:Mono.Posix -define:INOTIFY_TEST
127 all: $(TARGET) Inotify.exe
129 install-data-local: $(TARGET)
130         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
131         $(INSTALL_DATA) $(TARGET) $(TARGET_CONFIG) $(DESTDIR)$(pkglibdir)
133 uninstall-local:
134         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
136 COND_CS_FILES =                 \
137         $(srcdir)/ApeReader.cs  \
138         $(srcdir)/Mp3Reader.cs  \
139         $(srcdir)/FlacReader.cs \
140         $(srcdir)/OggReader.cs  \
141         $(srcdir)/Tag.cs        \
142         $(srcdir)/ChmFile.cs    \
143         $(srcdir)/Galago.cs
145 EXTRA_DIST =                    \
146         $(GOOGLE_WSDL)          \
147         $(EXTSTR_IN)            \
148         $(CSFILES)              \
149         $(COND_CS_FILES)        \
150         Util.dll.config.in      \
151         inotify-test
153 CLEANFILES =                    \
154         $(GOOGLE_CS)            \
155         $(EXTSTR)               \
156         $(TARGET)               \
157         $(TARGET).mdb           \
158         Inotify.exe             \
159         Inotify.exe.mdb