summaryrefslogtreecommitdiff
path: root/client/Makefile.am
blob: c661a5296e64c3a7e4c6170bde0ac17084533fa4 (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
if HAVE_INTROSPECTION
include $(INTROSPECTION_MAKEFILE)

dconf-0.3.gir: libdconf.so
dconf_0_3_gir_INCLUDES = Gio-2.0
dconf_0_3_gir_CFLAGS = $(INCLUDES)
dconf_0_3_gir_LIBS = dconf
dconf_0_3_gir_FILES = dconf-client.c dconf-client.h
dconf_0_3_gir_SCANNERFLAGS = --no-libtool
INTROSPECTION_GIRS = dconf-0.3.gir

girdir = $(datadir)/gir-1.0
dist_gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
endif

AM_CFLAGS = -std=c89 -Wall -Wmissing-prototypes -Wwrite-strings -D__dconf_h__ -fPIC -DPIC
INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/gvdb -I$(top_srcdir)/engine $(gio_CFLAGS)

shlibdir=$(libdir)
shlib_PROGRAMS = libdconf.so.0
noinst_DATA = libdconf.so

libdconf.so: libdconf.so.0
	ln -fs libdconf.so.0 libdconf.so

install-data-hook:
	ln -fs libdconf.so.0 $(DESTDIR)$(shlibdir)/libdconf.so

dconfinclude_HEADERS = \
	dconf-client.h	\
	dconf.h

libdconf_so_0_LDFLAGS = -shared -Wl,-soname=libdconf.so.0 $(gio_LIBS)
libdconf_so_0_SOURCES = \
	../common/dconf-shmdir.c	\
	../common/dconf-paths.c		\
	../engine/dconf-engine.c	\
	../gvdb/gvdb-reader.c		\
	dconf-client.vala engine.vapi
libdconf_so_0_VALAFLAGS = --library dconf --pkg=gio-2.0

EXTRA_DIST = dconf.vapi extra-docs.c
dconf.vapi: libdconf.so.0

dconf.deps:
	$(AM_V_GEN) echo gio-2.0 > dconf.deps

vapi_DATA = dconf.vapi dconf.deps
vapidir = $(datadir)/vala/vapi

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

CLEANFILES = $(dist_gir_DATA) $(typelib_DATA) dconf.deps