aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 736fd61d371f73af6f65223654e7f50166ac36d6 (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
SUBDIRS = gtk-dialog

libexec_PROGRAMS = indicator-status-service indicator-users-service indicator-session-service

###################
# Indicator Stuff
###################

status_users_sessionlibdir = $(INDICATORDIR)
status_users_sessionlib_LTLIBRARIES = libstatus-users-session.la
libstatus_users_session_la_SOURCES = \
	indicator-sus.c \
	dbus-shared-names.h \
	status-service-client.h
libstatus_users_session_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Werror
libstatus_users_session_la_LIBADD = $(APPLET_LIBS)
libstatus_users_session_la_LDFLAGS = -module -avoid-version

################
# Status Stuff
################

indicator_status_service_SOURCES = \
	status-service.c \
	status-service-dbus.h \
	status-service-dbus.c \
	status-service-server.h \
	status-provider.h \
	status-provider.c \
	status-provider-pidgin.h \
	status-provider-pidgin.c \
	status-provider-pidgin-marshal.h \
	status-provider-pidgin-marshal.c
indicator_status_service_CFLAGS = $(STATUSSERVICE_CFLAGS) -Wall -Werror
indicator_status_service_LDADD = $(STATUSSERVICE_LIBS)

status-service-client.h: $(srcdir)/status-service.xml
	dbus-binding-tool \
		--prefix=_status_service_client \
		--mode=glib-client \
		--output=status-service-client.h \
		$(srcdir)/status-service.xml

status-service-server.h: $(srcdir)/status-service.xml
	dbus-binding-tool \
		--prefix=_status_service_server \
		--mode=glib-server \
		--output=status-service-server.h \
		$(srcdir)/status-service.xml

status-provider-pidgin-marshal.h: $(srcdir)/status-provider-pidgin.list
	glib-genmarshal --header \
		--prefix=_status_provider_pidgin_marshal $(srcdir)/status-provider-pidgin.list \
		> status-provider-pidgin-marshal.h

status-provider-pidgin-marshal.c: $(srcdir)/status-provider-pidgin.list
	glib-genmarshal --body \
		--prefix=_status_provider_pidgin_marshal $(srcdir)/status-provider-pidgin.list \
		> status-provider-pidgin-marshal.c

###############
# Users Stuff
###############

indicator_users_service_SOURCES = users-service.c
indicator_users_service_CFLAGS = $(USERSSERVICE_CFLAGS) -Wall -Werror
indicator_users_service_LDADD = $(USERSSERVICE_LIBS)

#################
# Session Stuff
#################

indicator_session_service_SOURCES = session-service.c
indicator_session_service_CFLAGS = $(SESSIONSERVICE_CFLAGS) -DLIBEXECDIR=\"$(libexecdir)\" -Wall -Werror
indicator_session_service_LDADD = $(SESSIONSERVICE_LIBS)

###############
# Other Stuff
###############

BUILT_SOURCES = \
	status-service-client.h \
	status-service-server.h \
	status-provider-pidgin-marshal.h \
	status-provider-pidgin-marshal.c

EXTRA_DIST = \
	status-service.xml \
	status-provider-pidgin.list

CLEANFILES = \
	$(BUILT_SOURCES)