blob: d6ff2dcaa5718ff4a0b10ac6923063fb7b2daf85 (
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
NULL=
GCONFD_BINARY_NAME=gconfd-2
INCLUDES= \
-I$(top_srcdir) \
-I$(top_builddir) \
$(DEPENDENT_WITH_XML_AND_GTK_CFLAGS) \
$(DEPENDENT_DBUS_CFLAGS) \
$(DEPENDENT_ORBIT_CFLAGS) \
-DG_LOG_DOMAIN=\"GConf\" \
-DPREFIX=\""$(prefix)"\" \
-DGCONF_LOCALE_DIR=\""$(datadir)/locale"\" \
-DGCONF_SRCDIR=\""$(absolute_top_srcdir)"\" \
-DGCONF_CONFDIR=\""$(sysgconfdir)/$(MAJOR_VERSION)"\" \
-DGCONF_ETCDIR=\""$(sysgconfdir)"\" \
-DGCONF_BINDIR=\""$(bindir)"\" \
-DGCONF_SERVERDIR=\""$(libexecdir)"\" \
-DGCONF_BUILDDIR=\""$(top_builddir)"\" \
-DGCONF_BACKEND_DIR=\""$(pkglibdir)/$(MAJOR_VERSION)"\" \
-DVERSION=\""$(VERSION)"\" \
-DGCONF_ENABLE_INTERNALS=1 \
-DGCONFD=\""$(GCONFD_BINARY_NAME)$(EXEEXT)"\" \
$(NULL)
EFENCE=
if GTK
SANITY_CHECK=gconf-sanity-check-2
else
SANITY_CHECK=
endif
lib_LTLIBRARIES = libgconf-2.la
bin_PROGRAMS = gconftool-2
libexec_PROGRAMS = gconfd-2 $(SANITY_CHECK)
CORBA_SOURCECODE = GConfX-common.c GConfX-skels.c GConfX-stubs.c GConfX.h
BUILT_SOURCES = \
gconfmarshal.h \
gconfmarshal.c
if HAVE_CORBA
BUILT_SOURCES += $(CORBA_SOURCECODE)
endif
$(libgconf_2_la_OBJECTS) $(gconftool_2_OBJECTS) $(gconfd_2_OBJECTS): $(built_sourcecode)
CLEANFILES = $(BUILT_SOURCES) $(service_DATA)
DISTCLEANFILES = default.path
dist-hook:
cd $(distdir) ; rm -f $(CLEANFILES)
gconf_headers = \
gconf.h \
gconf-changeset.h \
gconf-listeners.h \
gconf-schema.h \
gconf-value.h \
gconf-error.h \
gconf-engine.h \
gconf-client.h
gconfincludedir = $(includedir)/gconf/$(MAJOR_VERSION)/gconf
gconfinclude_HEADERS = \
$(gconf_headers) \
gconf-enum-types.h
## This is broken I know, I'm going to break the server/client up and have a library later
gconfd_2_SOURCES = \
gconf-database.h \
gconf-database.c \
gconf-sources.h \
gconfd.h \
gconfd.c
if HAVE_DBUS
gconfd_2_SOURCES += \
gconfd-dbus.c \
gconfd-dbus.h \
gconf-database-dbus.h \
gconf-database-dbus.c
endif
if OS_WIN32
gconfd_2_LDFLAGS = -mwindows
endif
gconfd_2_CFLAGS = $(INCLUDES) $(DEPENDENT_DBUS_CFLAGS)
gconfd_2_LDADD = libgconf-$(MAJOR_VERSION).la $(EFENCE) $(INTLLIBS) \
$(DEPENDENT_LIBS) $(DEPENDENT_DBUS_LIBS) $(DEPENDENT_ORBIT_LIBS)
gconftool_2_SOURCES = \
gconftool.c
gconftool_2_LDADD = libgconf-$(MAJOR_VERSION).la $(EFENCE) $(INTLLIBS) $(DEPENDENT_WITH_XML_LIBS)
gconf_sanity_check_2_SOURCES = \
gconf-sanity-check.c
gconf_sanity_check_2_LDADD = libgconf-$(MAJOR_VERSION).la $(EFENCE) $(INTLLIBS) $(DEPENDENT_WITH_XML_AND_GTK_LIBS)
$(CORBA_SOURCECODE): $(srcdir)/GConfX.idl $(ORBIT_IDL)
$(ORBIT_IDL) $(srcdir)/GConfX.idl
if OS_WIN32
WIN32_SOURCECODE = dllmain.c
endif
libgconf_2_la_SOURCES = \
gconf-internals.c \
gconf-internals.h \
gconf-backend.h \
gconf-backend.c \
gconf-changeset.c \
gconf-error.c \
gconf-listeners.c \
gconf-locale.h \
gconf-locale.c \
gconf-schema.c \
gconf-sources.c \
gconf-value.c \
gconf.c \
gconf-client.c \
gconf-enum-types.c \
$(WIN32_SOURCECODE)
if HAVE_CORBA
libgconf_2_la_SOURCES += $(CORBA_SOURCECODE)
endif
if HAVE_DBUS
libgconf_2_la_SOURCES += \
gconf-dbus.c \
gconf-dbus-utils.c \
gconf-dbus-utils.h
endif
libgconf_2_la_LDFLAGS = -version-info $(GCONF_CURRENT):$(GCONF_REVISION):$(GCONF_AGE) -no-undefined
libgconf_2_la_LIBADD = $(INTLLIBS) $(DEPENDENT_LIBS) $(DEPENDENT_DBUS_LIBS) $(DEPENDENT_ORBIT_LIBS)
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS= --includedir=$(srcdir)
if HAVE_INTROSPECTION
introspection_files = \
$(gconfinclude_HEADERS) \
$(filter-out $(CORBA_SOURCECODE), $(filter %.c,$(libgconf_2_la_SOURCES)))
GConf-2.0.gir: libgconf-2.la Makefile
GConf_2_0_gir_INCLUDES = GObject-2.0
GConf_2_0_gir_CFLAGS = \
$(INCLUDES)
GConf_2_0_gir_LIBS = libgconf-2.la
GConf_2_0_gir_FILES = $(addprefix $(srcdir)/, $(introspection_files))
GConf_2_0_gir_SCANNERFLAGS = --identifier-prefix=GConf --symbol-prefix=gconf
INTROSPECTION_GIRS += GConf-2.0.gir
girdir = $(datadir)/gir-1.0/
gir_DATA = $(INTROSPECTION_GIRS)
typelibsdir = $(libdir)/girepository-1.0/
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
endif
EXTRA_DIST=GConfX.idl default.path.in org.gnome.GConf.service.in gconfmarshal.list regenerate-enum-header.sh regenerate-enum-footer.sh
default.path: $(srcdir)/default.path.in
sed -e 's,[@]sysgconfdir[@],$(sysgconfdir),g' \
<$(srcdir)/default.path.in >default.path
org.gnome.GConf.service: $(srcdir)/org.gnome.GConf.service.in
sed -e 's,[@]libexecdir[@],$(libexecdir),g' \
<$(srcdir)/org.gnome.GConf.service.in >org.gnome.GConf.service
servicedir = $(datadir)/dbus-1/services
service_DATA = org.gnome.GConf.service
install-data-local: default.path
$(mkinstalldirs) $(DESTDIR)$(sysgconfdir)/$(MAJOR_VERSION)
if test -f $(DESTDIR)$(sysgconfdir)/$(MAJOR_VERSION)/path; then \
echo "Existing path configuration file not changed"; \
else \
$(INSTALL_DATA) default.path $(DESTDIR)$(sysgconfdir)/$(MAJOR_VERSION)/path; \
fi
uninstall-local:
rm -f $(DESTDIR)$(sysgconfdir)/$(MAJOR_VERSION)/path
gconfmarshal.h: gconfmarshal.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) $< --header --prefix=gconf_marshal > $@
gconfmarshal.c: gconfmarshal.list $(GLIB_GENMARSHAL)
echo "#include \"gconfmarshal.h\"" > $@ && \
$(GLIB_GENMARSHAL) $< --body --prefix=gconf_marshal >> $@
regenerate-built-sources:
GCONF_SRCDIR=$(srcdir) $(srcdir)/regenerate-enum-header.sh $(gconf_headers)
GCONF_SRCDIR=$(srcdir) $(srcdir)/regenerate-enum-footer.sh $(gconf_headers)
|