summaryrefslogtreecommitdiffstats
path: root/src/gdu/Makefile.am
blob: 7bd608e365ac8bbc74178b01be7b23d5b4d4b21e (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

BUILT_SOURCES =                                         	\
        devkit-disks-daemon-glue.h                      	\
        devkit-disks-device-glue.h				\
	gdu-marshal.h			gdu-marshal.c

gdu-marshal.h: gdu-marshal.list
	glib-genmarshal $< --prefix=gdu_marshal --header > $@

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

devkit-disks-daemon-glue.h: /usr/share/dbus-1/interfaces/org.freedesktop.DeviceKit.Disks.xml Makefile.am
	dbus-binding-tool --prefix=devkit_disks_daemon --mode=glib-client --output=devkit-disks-daemon-glue.h /usr/share/dbus-1/interfaces/org.freedesktop.DeviceKit.Disks.xml

devkit-disks-device-glue.h: /usr/share/dbus-1/interfaces/org.freedesktop.DeviceKit.Disks.Device.xml Makefile.am
	dbus-binding-tool --prefix=devkit_disks_daemon --mode=glib-client --output=devkit-disks-device-glue.h /usr/share/dbus-1/interfaces/org.freedesktop.DeviceKit.Disks.Device.xml

lib_LTLIBRARIES=libgdu.la

libgduincludedir=$(includedir)/gnome-disk-utility/gdu

libgduinclude_HEADERS =              			\
	gdu.h						\
	gdu-types.h					\
	gdu-callbacks.h					\
	gdu-device.h					\
	gdu-drive.h					\
	gdu-linux-md-drive.h				\
	gdu-error.h					\
	gdu-known-filesystem.h				\
	gdu-pool.h					\
	gdu-presentable.h				\
	gdu-process.h					\
	gdu-ata-smart-attribute.h			\
	gdu-ata-smart-historical-data.h			\
	gdu-util.h					\
	gdu-volume.h					\
	gdu-volume-hole.h

libgdu_la_SOURCES =                                					\
						gdu.h					\
						gdu-types.h				\
						gdu-callbacks.h				\
	gdu-util.h				gdu-util.c				\
	gdu-pool.c				gdu-pool.h				\
	gdu-ata-smart-historical-data.c		gdu-ata-smart-historical-data.h		\
	gdu-ata-smart-attribute.c		gdu-ata-smart-attribute.h		\
	gdu-device.c				gdu-device.h				\
	gdu-drive.c				gdu-drive.h				\
	gdu-linux-md-drive.c			gdu-linux-md-drive.h			\
	gdu-volume.c				gdu-volume.h				\
	gdu-presentable.c			gdu-presentable.h			\
	gdu-volume-hole.c			gdu-volume-hole.h			\
	gdu-known-filesystem.c			gdu-known-filesystem.h			\
	gdu-error.c				gdu-error.h				\
	gdu-process.c				gdu-process.h				\
						gdu-private.h				\
	$(BUILT_SOURCES)

libgdu_la_CPPFLAGS = 					\
	-I$(top_srcdir)/src				\
	-I$(top_builddir)/src				\
	-DG_LOG_DOMAIN=\"libgdu\"			\
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"	\
	$(DISABLE_DEPRECATED)				\
	$(AM_CPPFLAGS)					\
	-DGDU_API_IS_SUBJECT_TO_CHANGE			\
	-DGDU_COMPILATION

libgdu_la_CFLAGS = 					\
	$(GLIB2_CFLAGS)					\
	$(GOBJECT2_CFLAGS)				\
	$(GIO2_CFLAGS)					\
	$(GIO_UNIX2_CFLAGS)				\
	$(DBUS_GLIB_CFLAGS)				\
	$(POLKIT_DBUS_CFLAGS)				\
	$(GNOME_KEYRING_CFLAGS)				\
	$(WARN_CFLAGS)					\
	$(AM_CFLAGS)

libgdu_la_LIBADD = 					\
	$(GLIB2_LIBS)					\
	$(GIO2_LIBS)					\
	$(GIO_UNIX2_LIBS)				\
	$(DBUS_GLIB_LIBS)				\
	$(POLKIT_DBUS_LIBS)				\
	$(GNOME_KEYRING_LIBS)				\
	$(INTLLIBS)

libgdu_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
		    -export-dynamic -no-undefined -export-symbols-regex '(^gdu_.*)'

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gdu.pc

CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA)

EXTRA_DIST = gdu-marshal.list

clean-local :
	rm -f *~ $(BUILT_SOURCES)