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
9 TARGET_CONFIG = $(TARGET).config
11 CSFLAGS = -target:library
14 CSFLAGS += -define:OS_LINUX
18 CSFLAGS += -define:OS_FREEBSD
22 CSFLAGS += -define:ENABLE_WEBSERVICES
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" \
45 $(srcdir)/ArrayFu.cs \
46 $(srcdir)/BetterBitArray.cs \
48 $(srcdir)/CommandLineFu.cs \
49 $(srcdir)/CompatFileChooser.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 \
62 $(srcdir)/GtkUtils.cs \
64 $(srcdir)/HigMessageDialog.cs \
65 $(srcdir)/ImBuddy.cs \
67 $(srcdir)/Inotify.cs \
68 $(srcdir)/IoPriority.cs \
69 $(srcdir)/JpegHeader.cs \
70 $(srcdir)/KdeUtils.cs \
72 $(srcdir)/Mozilla.cs \
73 $(srcdir)/MultiReader.cs \
74 $(srcdir)/NautilusTools.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 \
90 $(srcdir)/XKeybinder.cs
94 $(srcdir)/ApeReader.cs \
95 $(srcdir)/Mp3Reader.cs \
96 $(srcdir)/FlacReader.cs \
97 $(srcdir)/OggReader.cs \
108 -r:System.Web.Services \
109 -r:Mono.Data.SqliteClient \
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)
134 rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
137 $(srcdir)/ApeReader.cs \
138 $(srcdir)/Mp3Reader.cs \
139 $(srcdir)/FlacReader.cs \
140 $(srcdir)/OggReader.cs \
142 $(srcdir)/ChmFile.cs \