-# Copyright (c) 2007-2008 INdT.
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-AUTOMAKE_OPTIONS = foreign
-
-bin_PROGRAMS = maevies
-
-maevies_SOURCES = main.cpp \
- mywindow.cpp \
- mywindow.h
-
-maevies_LDADD = $(LIBHILDONMM_LIBS) $(LIBOSSO_LIBS)
-maevies_CXXFLAGS = $(LIBHILDONMM_CFLAGS) $(LIBOSSO_CFLAGS) -DHELLOWORLD_LOCALEDIR=\"${HELLOWORLD_LOCALEDIR}\"
+bin_PROGRAMS = mvs \
+ maevies_service
+
+mvs_SOURCES = \
+ main.c
+
+mvs_CFLAGS = \
+ $(DEPS_CFLAGS)
+
+mvs_LDADD = \
+ $(DEPS_LIBS)
+
+maevies_service_SOURCES = \
+ maevies-service.c \
+ mvs-minfo-provider.c \
+ mvs-minfo-provider.h \
+ mvs-minfo-provider-service.c \
+ mvs-minfo-provider-service.h \
+ mvs-minfo-provider-service-glue.h \
+ mvs-tmdb-movie.c \
+ mvs-tmdb-movie.h \
+ mvs-tmdb-image.c \
+ mvs-tmdb-image.h \
+ mvs-watc-movie.c \
+ mvs-watc-movie.h \
+ mvs-tmdb-movie-service.c \
+ mvs-tmdb-movie-service.h \
+ mvs-tmdb-movie-service-glue.h \
+ mvs-marshal.c \
+ mvs-marshal.h
+
+maevies_service_CFLAGS = \
+ $(DEPS_CFLAGS)
+
+maevies_service_LDADD = \
+ $(DEPS_LIBS)
+
+MAINTAINERCLEANFILES = \
+ *.in \
+ *~
+
+mvs-minfo-provider-service-glue.h: mvs-minfo-provider.xml
+ dbus-binding-tool --mode=glib-server --prefix=mvs_minfo_provider_service $< > $@
+
+mvs-tmdb-movie-service-glue.h: mvs-tmdb-movie.xml
+ dbus-binding-tool --mode=glib-server --prefix=mvs_tmdb_movie_service $< > $@
+
+mvs-marshal.h: marshal.list
+ glib-genmarshal --header --prefix=mvs_marshal $< > $@
+
+mvs-marshal.c: marshal.list
+ glib-genmarshal --body --prefix=mvs_marshal $< > $@
+
+DISTCLEANFILES = $(MAINTAINERCLEANFILES)
+
+BUILT_SOURCES = \
+ mvs-minfo-provider-service-glue.h \
+ mvs-tmdb-movie-service-glue.h \
+ mvs-marshal.h \
+ mvs-marshal.c
\ No newline at end of file