1.1 --- a/gmyth/src/Makefile.am Mon Dec 04 22:00:41 2006 +0000
1.2 +++ b/gmyth/src/Makefile.am Thu Dec 07 18:39:41 2006 +0000
1.3 @@ -2,7 +2,11 @@
1.4
1.5 lib_LTLIBRARIES = libgmyth.la
1.6
1.7 -libgmyth_la_SOURCES = \
1.8 +BUILT_SOURCES = \
1.9 + gmyth_marshal.c \
1.10 + gmyth_marshal.h
1.11 +
1.12 +libgmyth_la_SOURCES = \
1.13 gmyth_common.c \
1.14 gmyth_debug.c \
1.15 gmyth_epg.c \
1.16 @@ -14,34 +18,47 @@
1.17 gmyth_query.c \
1.18 gmyth_socket.c \
1.19 gmyth_stringlist.c \
1.20 - gmyth_monitor_handler.c \
1.21 - gmyth_file_transfer.c \
1.22 + gmyth_monitor_handler.c \
1.23 + gmyth_file_transfer.c \
1.24 gmyth_livetv.c \
1.25 gmyth_backendinfo.c \
1.26 gmyth_programinfo.c \
1.27 - gmyth_uri.c
1.28 + gmyth_uri.c \
1.29 + $(BUILT_SOURCES)
1.30
1.31 -libgmyth_la_CFLAGS = \
1.32 - -DDATADIR=\"$(pkgdatadir)\" \
1.33 +EXTRA_libgmyth_la_SOURCES = gmyth_marshal.list
1.34 +
1.35 +gmyth_marshal.h: gmyth_marshal.list
1.36 + glib-genmarshal --header --prefix=gmyth_marshal gmyth_marshal.list > gmyth_marshal.h.tmp
1.37 + mv gmyth_marshal.h.tmp gmyth_marshal.h
1.38 +
1.39 +gmyth_marshal.c: gmyth_marshal.list gmyth_marshal.h
1.40 + echo "#include \"glib-object.h\"" > gmyth_marshal.c.tmp
1.41 + echo "#include \"gmyth_marshal.h\"" >> gmyth_marshal.c.tmp
1.42 + glib-genmarshal --body --prefix=gmyth_marshal $(srcdir)/gmyth_marshal.list >> gmyth_marshal.c.tmp
1.43 + mv gmyth_marshal.c.tmp gmyth_marshal.c
1.44 +
1.45 +libgmyth_la_CFLAGS = \
1.46 + -DDATADIR=\"$(pkgdatadir)\" \
1.47 $(GLIB_CFLAGS) \
1.48 $(GOBJECT_CFLAGS) \
1.49 $(GST_CFLAGS) \
1.50 $(GSTBASE_CFLAGS) \
1.51 - $(GSTPLUGINSBASE_CFLAGS) \
1.52 + $(GSTPLUGINSBASE_CFLAGS) \
1.53 $(MYSQL_CFLAGS)
1.54
1.55 -libgmyth_la_LDFLAGS = \
1.56 +libgmyth_la_LDFLAGS = \
1.57 -export-dynamic \
1.58 $(MYSQL_LIBS) \
1.59 $(GST_LIBS) \
1.60 $(GSTBASE_LIBS) \
1.61 $(GSTPLUGINS_LIBS)
1.62
1.63 -libgmyth_includedir = \
1.64 +libgmyth_includedir = \
1.65 $(pkgincludedir)
1.66
1.67 -libgmyth_include_HEADERS = \
1.68 - gmyth.h \
1.69 +libgmyth_include_HEADERS = \
1.70 + gmyth.h \
1.71 gmyth_common.h \
1.72 gmyth_debug.h \
1.73 gmyth_epg.h \
1.74 @@ -53,12 +70,11 @@
1.75 gmyth_socket.h \
1.76 gmyth_remote_util.h \
1.77 gmyth_stringlist.h \
1.78 - gmyth_monitor_handler.h \
1.79 - gmyth_file_transfer.h \
1.80 + gmyth_monitor_handler.h \
1.81 + gmyth_file_transfer.h \
1.82 gmyth_livetv.h \
1.83 gmyth_backendinfo.h \
1.84 gmyth_programinfo.h \
1.85 gmyth_uri.h
1.86
1.87 CLEANFILES = $(BUILT_SOURCES)
1.88 -