summaryrefslogtreecommitdiff
path: root/panels/user-accounts/Makefile.am
blob: 8a333fb6d2c5d3d6889968018612214334aea110 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
SUBDIRS = data

# This is used in PANEL_CFLAGS
cappletname = user-accounts
NULL =

ccpanelsdir = $(PANELS_DIR)
ccpanels_LTLIBRARIES = libuser-accounts.la

AM_CPPFLAGS =						\
	-DDATADIR=\""$(datadir)"\"			\
	-DUIDIR=\""$(pkgdatadir)/ui/user-accounts"\"	\
	-DLIBLOCALEDIR=\""$(prefix)/lib/locale"\"       \
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
	-DUM_PIXMAP_DIR=\""$(pkgdatadir)/pixmaps"\"	\
	-DHAVE_LIBPWQUALITY				\
	-I$(srcdir)/../common/				\
	-I$(srcdir)/../../shell/			\
	$(PANEL_CFLAGS)					\
	$(USER_ACCOUNTS_PANEL_CFLAGS)

if BUILD_CHEESE
AM_CPPFLAGS += $(CHEESE_CFLAGS)
endif

BUILT_SOURCES = \
       um-realm-generated.c \
       um-realm-generated.h

libuser_accounts_la_SOURCES =		\
	um-account-type.h		\
	um-account-type.c 		\
	gsd-alarm.h			\
	gsd-alarm.c			\
	gsd-identity-manager.h		\
	gsd-identity-manager.c		\
	gsd-identity.h			\
	gsd-identity.c			\
	$(kerberos_sources)		\
	um-user.h 			\
	um-user.c 			\
	um-user-manager.h 		\
	um-user-manager.c 		\
	um-account-dialog.h		\
	um-account-dialog.c		\
	um-password-dialog.h		\
	um-password-dialog.c		\
	pw-utils.h			\
	pw-utils.c			\
	um-photo-dialog.h		\
	um-photo-dialog.c		\
	um-crop-area.h			\
	um-crop-area.c			\
	um-fingerprint-dialog.h		\
	um-fingerprint-dialog.c		\
	um-utils.h			\
	um-utils.c			\
	fingerprint-strings.h		\
	run-passwd.h			\
	run-passwd.c			\
	um-editable-button.h		\
	um-editable-button.c		\
	um-editable-combo.h		\
	um-editable-combo.c		\
	um-user-panel.h 		\
	um-user-panel.c			\
	um-user-module.c		\
	um-realm-manager.c		\
	um-realm-manager.h		\
	$(BUILT_SOURCES)

if BUILD_KERBEROS
libuser_accounts_la_SOURCES +=		\
	gsd-kerberos-identity-manager.h	\
	gsd-kerberos-identity-manager.c	\
	gsd-kerberos-identity.h		\
	gsd-kerberos-identity.c
endif


libuser_accounts_la_LIBADD = 		\
	$(PANEL_LIBS)			\
	$(USER_ACCOUNTS_PANEL_LIBS)	\
	$(top_builddir)/panels/common/liblanguage.la \
	-lpwquality			\
	-lcrypt				\
	-lm

if BUILD_CHEESE
libuser_accounts_la_LIBADD += $(CHEESE_LIBS)
endif

libuser_accounts_la_LDFLAGS = $(PANEL_LDFLAGS)

um-realm-generated.c: $(srcdir)/data/org.freedesktop.realmd.xml
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.realmd. \
		--generate-c-code um-realm-generated --c-namespace UmRealm $<
um-realm-generated.h: um-realm-generated.c

noinst_PROGRAMS = frob-account-dialog

frob_account_dialog_SOURCES = \
	frob-account-dialog.c \
	um-account-dialog.h \
	um-account-dialog.c \
	um-realm-manager.c \
	um-realm-manager.h \
	um-user.h \
	um-user.c \
	um-user-manager.c \
	um-user-manager.h \
	um-utils.h \
	um-utils.c \
	$(BUILT_SOURCES)

frob_account_dialog_LDADD = \
	$(libuser_accounts_la_LIBADD)

frob_account_dialog_CFLAGS = \
	$(AM_CFLAGS) \
	-DUIDIR=\""$(pkgdatadir)/ui/user-accounts"\"

polkitdir = $(datadir)/polkit-1/actions
polkit_in_files = org.gnome.controlcenter.user-accounts.policy.in

@INTLTOOL_POLICY_RULE@
polkit_DATA = $(polkit_in_files:.policy.in=.policy)

EXTRA_DIST =				\
	$(polkit_in_files)		\
	$(NULL)

CLEANFILES =				\
	$(BUILT_SOURCES)		\
	$(polkit_DATA)			\
	$(NULL)

MAINTAINERCLEANFILES =                  \
        *~                              \
        Makefile.in

-include $(top_srcdir)/git.mk