summaryrefslogtreecommitdiff
path: root/monitor/proxy/Makefile.am
blob: 1c0fc7ecd3ca04b477e9845ac9024e3db705deb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

NULL =

remote_volume_monitorsdir = $(datadir)/gvfs/remote-volume-monitors

module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload|query)'

dbus_built_sources = gvfsvolumemonitordbus.c gvfsvolumemonitordbus.h
BUILT_SOURCES = $(dbus_built_sources)

$(dbus_built_sources) : Makefile.am dbus-interfaces.xml
	gdbus-codegen									\
		--interface-prefix org.gtk.Private.					\
		--c-namespace GVfs							\
		--generate-c-code gvfsvolumemonitordbus					\
		dbus-interfaces.xml							\
		$(NULL)



giomodules_LTLIBRARIES = libgioremote-volume-monitor.la

libgioremote_volume_monitor_la_SOURCES =				\
	remote-volume-monitor-module.c					\
	gproxydrive.c			gproxydrive.h			\
	gproxyvolume.c			gproxyvolume.h			\
	gproxymount.c			gproxymount.h			\
	gproxyshadowmount.c		gproxyshadowmount.h		\
	gproxyvolumemonitor.c		gproxyvolumemonitor.h		\
	gproxymountoperation.c		gproxymountoperation.h		\
	$(dbus_built_sources)						\
	$(NULL)

libgioremote_volume_monitor_la_CFLAGS =					\
	-DG_LOG_DOMAIN=\"GVFS-RemoteVolumeMonitor\"			\
	-I$(top_srcdir)/common                  			\
	$(GLIB_CFLAGS)                          			\
	-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"				\
	-DREMOTE_VOLUME_MONITORS_DIR=\"$(remote_volume_monitorsdir)\" 	\
	-DGVFS_LOCALEDIR=\""$(localedir)"\"				\
	$(NULL)

libgioremote_volume_monitor_la_LDFLAGS = 				\
	$(module_flags)               					\
	$(NULL)

libgioremote_volume_monitor_la_LIBADD  =		     		\
	$(GLIB_LIBS)                                 			\
	$(top_builddir)/common/libgvfscommon.la 			\
	$(NULL)

############################################################################

noinst_LTLIBRARIES = libgvfsproxyvolumemonitordaemon-noin.la

libgvfsproxyvolumemonitordaemon_noin_la_SOURCES =		\
	gvfsproxyvolumemonitordaemon.c				\
	gvfsproxyvolumemonitordaemon.h				\
	$(dbus_built_sources)					\
	$(NULL)

libgvfsproxyvolumemonitordaemon_noin_la_CFLAGS =		\
	-I$(top_srcdir)/common                  		\
	$(GLIB_CFLAGS)                          		\
	$(GDU_CFLAGS)                           		\
	-DG_LOG_DOMAIN=\"GVFS-RemoteVolumeMonitorDaemon\"	\
	-DGVFS_LOCALEDIR=\""$(localedir)"\"			\
	$(NULL)

libgvfsproxyvolumemonitordaemon_noin_la_LIBADD  =     		\
	$(GLIB_LIBS)                                 		\
	$(top_builddir)/common/libgvfscommon.la 		\
	$(NULL)

clean-local:
	rm -f *~ *.loT

install-data-local:
	mkdir -p $(DESTDIR)$(remote_volume_monitorsdir)

EXTRA_DIST =							\
	dbus-interfaces.xml					\
	$(NULL)

CLEANFILES =							\
	$(dbus_built_sources)					\
	$(NULL)