summaryrefslogtreecommitdiff
path: root/ohmd/Makefile.am
blob: da966a1a27ecabe732959ac66ffc196554928cbd (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
INCLUDES =							\
	$(HAL_CFLAGS)						\
	$(GLIB_CFLAGS)						\
	$(DBUS_CFLAGS)						\
	$(GTHREAD_CFLAGS)					\
	-DDBUS_API_SUBJECT_TO_CHANGE				\
	-DVERSION_MAJOR=$(VERSION_MAJOR)			\
	-DVERSION_MINOR=$(VERSION_MINOR)			\
	-DVERSION_PATCH=$(VERSION_PATCH)			\
	-DBINDIR=\"$(bindir)\"					\
	-DLIBDIR=\"$(libdir)\"					\
	-DSBINDIR=\"$(sbindir)\"				\
	-DSYSCONFDIR=\"$(sysconfdir)\"				\
	-DDATADIR=\"$(datadir)\"

ohmpluginincludedir=$(includedir)/ohm

ohmplugininclude_HEADERS =					\
	ohm-plugin.h

noinst_PROGRAMS = ohmd-test

ohmd_test_SOURCES = 						\
	ohm-debug.c						\
	ohm-debug.h						\
	ohm-conf.c						\
	ohm-conf.h						\
	ohm-marshal.h						\
	ohm-marshal.c						\
	ohm-test.c
ohmd_test_LDADD = $(DBUS_LIBS) $(GTHREAD_LIBS) $(GMODULE_LIBS)

sbin_PROGRAMS = ohmd

ohmd_SOURCES = 							\
	ohm-common.h						\
	ohm-debug.c						\
	ohm-debug.h						\
	ohm-conf.c						\
	ohm-conf.h						\
	ohm-marshal.h						\
	ohm-marshal.c						\
	ohm-keystore.c						\
	ohm-keystore.h						\
	ohm-module.c						\
	ohm-module.h						\
	ohm-plugin.c						\
	ohm-plugin.h						\
	ohm-plugin-internal.h					\
	ohm-manager.c						\
	ohm-manager.h						\
	ohm-main.c
ohmd_LDADD = $(HAL_LIBS) $(DBUS_LIBS) $(GTHREAD_LIBS) $(GMODULE_LIBS)

BUILT_SOURCES =							\
	ohm-marshal.c						\
	ohm-marshal.h						\
	ohm-dbus-manager.h					\
	ohm-dbus-keystore.h

ohm-marshal.c: ohm-marshal.list
	echo "#include \"ohm-marshal.h\"" > $@ && \
	@GLIB_GENMARSHAL@ $< --prefix=ohm_marshal --body >> $@

ohm-marshal.h: ohm-marshal.list
	@GLIB_GENMARSHAL@ $< --prefix=ohm_marshal --header > $@

ohm-dbus-manager.h: ohm-dbus-manager.xml
	$(LIBTOOL) --mode=execute dbus-binding-tool --prefix=ohm_manager --mode=glib-server --output=ohm-dbus-manager.h $(srcdir)/ohm-dbus-manager.xml

ohm-dbus-keystore.h: ohm-dbus-keystore.xml
	$(LIBTOOL) --mode=execute dbus-binding-tool --prefix=ohm_keystore --mode=glib-server --output=ohm-dbus-keystore.h $(srcdir)/ohm-dbus-keystore.xml

CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST =							\
	ohm-marshal.list					\
	ohm-dbus-manager.xml					\
	ohm-dbus-keystore.xml