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 \
47 $(srcdir)/CommandLineFu.cs \
48 $(srcdir)/CompatFileChooser.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 \
61 $(srcdir)/GtkUtils.cs \
63 $(srcdir)/HigMessageDialog.cs \
64 $(srcdir)/ImBuddy.cs \
66 $(srcdir)/Inotify.cs \
67 $(srcdir)/IoPriority.cs \
68 $(srcdir)/JpegHeader.cs \
69 $(srcdir)/KdeUtils.cs \
71 $(srcdir)/Mozilla.cs \
72 $(srcdir)/MultiReader.cs \
73 $(srcdir)/NautilusTools.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 \
87 $(srcdir)/XKeybinder.cs
91 $(srcdir)/ApeReader.cs \
92 $(srcdir)/Mp3Reader.cs \
93 $(srcdir)/FlacReader.cs \
94 $(srcdir)/OggReader.cs \
105 -r:System.Web.Services \
106 -r:Mono.Data.SqliteClient \
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)
131 rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
134 $(srcdir)/ApeReader.cs \
135 $(srcdir)/Mp3Reader.cs \
136 $(srcdir)/FlacReader.cs \
137 $(srcdir)/OggReader.cs \
139 $(srcdir)/ChmFile.cs \