summaryrefslogtreecommitdiff
path: root/dbus-1/Makefile.am
blob: 7444c1750f2484769f5ad5eb409980a10e81d18e (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
include $(top_srcdir)/Makefile.gtester

noinst_LIBRARIES = libdconf-libdbus-1.a libdconf-libdbus-1-shared.a

libdconf_libdbus_1_a_CFLAGS = $(dbus_CFLAGS) $(glib_CFLAGS)
libdconf_libdbus_1_a_SOURCES = \
	dconf-libdbus-1.h		\
	dconf-libdbus-1.c

libdconf_libdbus_1_shared_a_CFLAGS = $(libdconf_libdbus_1_a_CFLAGS) -fPIC -DPIC
libdconf_libdbus_1_shared_a_SOURCES = $(libdconf_libdbus_1_a_SOURCES)

dconf_dbus_1includedir = $(includedir)/dconf-dbus-1
dconf_dbus_1include_HEADERS = dconf-dbus-1.h

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

shlibdir = $(libdir)
shlib_PROGRAMS = libdconf-dbus-1.so.0.0.0

libdconf_dbus_1_so_0_0_0_CFLAGS = $(dbus_CFLAGS) $(gio_CFLAGS) -fPIC -DPIC
libdconf_dbus_1_so_0_0_0_LDADD = \
	../engine/libdconf-engine-shared.a		\
	../common/libdconf-common-hidden.a		\
	./libdconf-libdbus-1-shared.a			\
	../gvdb/libgvdb-shared.a			\
	../shm/libdconf-shm-shared.a			\
	 $(dbus_LIBS)					\
	$(glib_LIBS)
libdconf_dbus_1_so_0_0_0_LDFLAGS = -shared -Wl,-soname=libdconf-dbus-1.so.0
libdconf_dbus_1_so_0_0_0_SOURCES = dconf-dbus-1.c

nodist_noinst_DATA = libdconf-dbus-1.so libdconf-dbus-1.so.0

libdconf-dbus-1.so.0 libdconf-dbus-1.so: libdconf-dbus-1.so.0.0.0
	$(AM_V_GEN) ln -fs libdconf-dbus-1.so.0.0.0 $@

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

uninstall-hook:
	rm -f $(DESTDIR)$(shlibdir)/libdconf-dbus-1.so.0
	rm -f $(DESTDIR)$(shlibdir)/libdconf-dbus-1.so

CLEANFILES = libdconf-dbus-1.so.0 libdconf-dbus-1.so