$(GIO_CFLAGS) \
$(NULL)
-generated-bindings.stamp : Makefile.am $(top_srcdir)/data/org.freedesktop.UDisks.xml
+$(dbus_built_sources) : Makefile.am $(top_srcdir)/data/org.freedesktop.UDisks.xml
gdbus-codegen \
--strip-prefix org.freedesktop.UDisks. \
--namespace UDisks \
$(NULL)
udisksenumtypes.h: udisksenums.h udisksenumtypes.h.template
- ( top_builddir=`cd $(top_builddir) && pwd`; \
- cd $(srcdir) && glib-mkenums --template udisksenumtypes.h.template udisksenums.h ) | \
- sed 's,U_TYPE_DISKS,UDISKS_TYPE,' | sed 's,u_disks,udisks,' > \
+ ( top_builddir=`cd $(top_builddir) && pwd`; \
+ cd $(srcdir) && glib-mkenums --template udisksenumtypes.h.template udisksenums.h ) | \
+ sed 's,U_TYPE_DISKS,UDISKS_TYPE,' | sed 's,u_disks,udisks,' > \
udisksenumtypes.h.tmp && mv udisksenumtypes.h.tmp udisksenumtypes.h
udisksenumtypes.c: udisksenums.h udisksenumtypes.c.template
- ( top_builddir=`cd $(top_builddir) && pwd`; \
- cd $(srcdir) && glib-mkenums --template udisksenumtypes.c.template udisksenums.h ) | \
- sed 's,U_TYPE_DISKS,UDISKS_TYPE,' | sed 's,u_disks,udisks,' > \
+ ( top_builddir=`cd $(top_builddir) && pwd`; \
+ cd $(srcdir) && glib-mkenums --template udisksenumtypes.c.template udisksenums.h ) | \
+ sed 's,U_TYPE_DISKS,UDISKS_TYPE,' | sed 's,u_disks,udisks,' > \
udisksenumtypes.c.tmp && mv udisksenumtypes.c.tmp udisksenumtypes.c
-BUILT_SOURCES = \
+enum_built_sources = \
+ udisksenumtypes.h udisksenumtypes.c \
+ $(NULL)
+
+dbus_built_sources = \
generated-bindings.stamp \
generated-bindings-sections.txt \
generated-bindings.types \
generated-udisksjob.h generated-udisksjob.c \
generated-udisksproxymanager.h generated-udisksproxymanager.c \
generated-udisksconfigurationitem.h generated-udisksconfigurationitem.c \
- udisksenumtypes.h udisksenumtypes.c \
$(NULL)
-lib_LTLIBRARIES=libudisks.la
+BUILT_SOURCES = \
+ $(enum_built_sources) \
+ $(dbus_built_sources) \
+ $(NULL)
+
+lib_LTLIBRARIES=libudisks-2.0.la
-libudisksincludedir=$(includedir)/udisks-1.2/udisks
+libudisks_2_0includedir=$(includedir)/udisks-2.0/udisks
-libudisksinclude_HEADERS= \
+libudisks_2_0include_HEADERS= \
udisks.h \
udisksenums.h \
udisksenumtypes.h \
generated-udisksjob.h \
$(NULL)
-libudisks_la_SOURCES = \
+libudisks_2_0_la_SOURCES = \
$(BUILT_SOURCES) \
udisksenums.h \
udiskserror.h udiskserror.c \
$(NULL)
-libudisks_la_CPPFLAGS = \
- -DG_LOG_DOMAIN=\"libudisks\" \
+libudisks_2_0_la_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"libudisks-2.0\" \
$(NULL)
-libudisks_la_CFLAGS = \
+libudisks_2_0_la_CFLAGS = \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS) \
$(NULL)
-libudisks_la_LIBADD = \
+libudisks_2_0_la_LIBADD = \
$(GLIB_LIBS) \
$(GIO_LIBS) \
$(NULL)
# ----------------------------------------------------------------------------------------------------
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = udisks-2.0.pc
+
+# ----------------------------------------------------------------------------------------------------
+
CLEANFILES =
EXTRA_DIST = \
+ udisks-2.0.pc.in \
$(NULL)
clean-local :