2006-02-27 Gabor Kelemen <kelemeng@gnome.hu>
[beagle.git] / BeagleClient / Makefile.am
blobdf23afb0117a3c1c210383dc381500427219b0cb
2 CSC = mcs -debug
4 TARGET = Beagle.dll
6 CSFLAGS =                                       \
7         -target:library                         \
8         -define:PREFIX=$(prefix)                \
9         -define:PKGLIBDIR=$(pkglibdir)          \
10         $(BEAGLE_DEFINES)
12 CSFILES =                                       \
13         $(srcdir)/Client.cs                     \
14         $(srcdir)/Hit.cs                        \
15         $(srcdir)/IIndexableGenerator.cs        \
16         $(srcdir)/Indexable.cs                  \
17         $(srcdir)/IndexingService.cs            \
18         $(srcdir)/Message.cs                    \
19         $(srcdir)/Property.cs                   \
20         $(srcdir)/Query.cs                      \
21         $(srcdir)/QueryPart.cs                  \
22         $(srcdir)/QueryResponses.cs             \
23         $(srcdir)/QueryableStatus.cs            \
24         $(srcdir)/RemoteControl.cs              \
25         $(srcdir)/Snippet.cs                    \
26         $(srcdir)/Versioned.cs
28 if ENABLE_WEBSERVICES
29 CSFILES +=      $(srcdir)/NetworkHit.cs
30 endif
32 LOCAL_ASSEMBLIES =                      \
33         ../Util/Util.dll
36 ASSEMBLIES =                            \
37         $(BEAGLED_LIBS)                 \
38         $(SHARPZIPLIBS_LIBS)            \
39         -r:Mono.Posix                   \
40         $(LOCAL_ASSEMBLIES:%=-r:%)
42 RESOURCES =
44 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES) $(RESOURCES)
45         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
47 all: $(TARGET)
49 install-data-local: $(TARGET)
50         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
51         $(INSTALL_DATA) $(TARGET) $(TARGET).mdb $(DESTDIR)$(pkglibdir)
53 uninstall-local:
54         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
56 EXTRA_DIST =                    \
57         $(CSFILES)              \
58         $(srcdir)/NetworkHit.cs
60 CLEANFILES =            \
61         $(TARGET)       \
62         $(TARGET).mdb