summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a32269a965cff01d22980cc2fa0b3df5b33cace6 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
## Process this file with automake to produce Makefile.in

SUBDIRS = . tests

NULL =

EXTRA_DIST =

INCLUDES = \
	-I$(top_builddir) -I$(top_srcdir)	 		\
	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" 		\
	-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" 		\
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" 			\
	-DPACKAGE_BIN_DIR=\""$(bindir)"\" 			\
	-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" 	\
	-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" 		\
	-DPACKAGE_LIB_DIR=\""$(libdir)"\" 			\
	-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT			\
	-DUDISKS_COMPILATION					\
	$(POLKIT_GOBJECT_1_CFLAGS) 				\
	$(GUDEV_CFLAGS) 					\
	$(GLIB_CFLAGS) 						\
	$(GIO_CFLAGS)						\
	$(WARN_CFLAGS)						\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

BUILT_SOURCES = 							\
	udisks-daemon-marshal.h		udisks-daemon-marshal.c		\
	$(NULL)

udisks-daemon-marshal.h: udisks-daemon-marshal.list
	glib-genmarshal $< --prefix=udisks_daemon_marshal --header > $@

udisks-daemon-marshal.c: udisks-daemon-marshal.list
	echo "#include \"udisks-daemon-marshal.h\"" > $@ && glib-genmarshal $< --prefix=udisks_daemon_marshal --body >> $@

EXTRA_DIST += udisks-daemon-marshal.list

# ----------------------------------------------------------------------------------------------------

noinst_LTLIBRARIES = libudisks-daemon.la

libudisks_daemon_la_SOURCES =						\
	udisksdaemontypes.h						\
	udisksdaemon.h			udisksdaemon.c			\
	udisksprovider.h		udisksprovider.c		\
	udiskslinuxprovider.h		udiskslinuxprovider.c		\
	udiskslinuxblock.h		udiskslinuxblock.c		\
	udiskslinuxfilesystem.h		udiskslinuxfilesystem.c		\
	udiskslinuxencrypted.h		udiskslinuxencrypted.c		\
	udiskslinuxloop.h		udiskslinuxloop.c		\
	udiskslinuxdrive.h		udiskslinuxdrive.c		\
	udiskslinuxmanager.h		udiskslinuxmanager.c		\
	udisksbasejob.h			udisksbasejob.c			\
	udisksspawnedjob.h		udisksspawnedjob.c		\
	udisksthreadedjob.h		udisksthreadedjob.c		\
	udiskssimplejob.h		udiskssimplejob.c		\
	udisksmount.h			udisksmount.c			\
	udisksmountmonitor.h		udisksmountmonitor.c		\
	udiskspersistentstore.h		udiskspersistentstore.c		\
	udisksdaemonutil.h		udisksdaemonutil.c		\
	udiskslogging.h			udiskslogging.c			\
	udiskscleanup.h			udiskscleanup.c			\
	udisksprivate.h							\
	$(BUILT_SOURCES)						\
	$(NULL)

libudisks_daemon_la_CFLAGS =				\
	-I$(top_srcdir)					\
	-DG_LOG_DOMAIN=\"udisksd\"			\
	$(GLIB_CFLAGS)					\
	$(GIO_CFLAGS)					\
	$(GUDEV_CFLAGS)					\
	$(LIBATASMART_CFLAGS)				\
	$(POLKIT_GOBJECT_1_CFLAGS) 			\
	$(NULL)

libudisks_daemon_la_LIBADD =				\
	$(GLIB_LIBS)					\
	$(GIO_LIBS)					\
	$(GUDEV_LIBS)					\
	$(LIBATASMART_LIBS)				\
	$(POLKIT_GOBJECT_1_LIBS) 			\
	$(top_builddir)/udisks/libudisks2.la		\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

privlib_PROGRAMS = udisksd

udisksd_SOURCES = 					\
				main.c			\
	$(NULL)

udisksd_CFLAGS = 					\
	-DG_LOG_DOMAIN=\"udisks2-daemon\"		\
	$(LIBATASMART_CFLAGS)				\
	$(NULL)

udisksd_LDADD = 					\
	$(GLIB_LIBS)					\
	$(GIO_LIBS)					\
	libudisks-daemon.la				\
	$(NULL)

# ----------------------------------------------------------------------------------------------------

install-data-local:
	-$(mkdir_p) $(DESTDIR)$(localstatedir)/lib/udisks2
	-chmod 0700 $(DESTDIR)$(localstatedir)/lib/udisks2