6
noinst_LTLIBRARIES = libcommon.la
7
lib_LTLIBRARIES = libgnome-bluetooth.la
9
libcommon_la_SOURCES = \
10
bluetooth-client.h bluetooth-client.c \
11
bluetooth-client-private.h \
12
bluetooth-agent.h bluetooth-agent.c \
13
bluetooth-killswitch.h bluetooth-killswitch.c \
14
obex-agent.h obex-agent.c \
15
bluetooth-plugin-manager.c \
16
bluetooth-plugin-manager.h \
17
bling-spinner.c bling-spinner.h \
19
libcommon_la_LIBADD = $(COMMON_LIBS)
20
libcommon_la_LDFLAGS = -no-undefined $(AM_LDFLAGS)
22
libgnome_bluetooth_la_SOURCES = \
24
bluetooth-client.h bluetooth-client.c \
25
bluetooth-client-private.h \
27
gnome-bluetooth-enum-types.h \
28
gnome-bluetooth-enum-types.c \
29
bling-spinner.c bling-spinner.h \
30
bluetooth-chooser.c bluetooth-chooser.h \
31
bluetooth-chooser-button.c bluetooth-chooser-button.h
33
libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS)
35
libgnome_bluetooth_la_LDFLAGS = \
36
-version-info $(GNOMEBT_LT_VERSION) \
39
-export-symbols $(srcdir)/gnome-bluetooth.symbols
41
gnomebluetoothdir = $(pkgincludedir)
42
gnomebluetooth_HEADERS = \
45
bluetooth-chooser-button.h \
49
AM_CFLAGS = -I$(srcdir) $(LIBGNOMEBT_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) -DPLUGINDIR=\"$(libdir)/gnome-bluetooth/plugins\"
51
BUILT_GIRSOURCES += GnomeBluetooth-1.0.gir
53
GnomeBluetooth-1.0.gir: $(libgnome_bluetooth_la_SOURCES)
54
GnomeBluetooth-1.0.gir: $(gnomebluetooth_HEADERS)
55
GnomeBluetooth-1.0.gir: libgnome-bluetooth.la
56
GnomeBluetooth-1.0.gir: $(INTROSPECTION_SCANNER)
57
$(INTROSPECTION_SCANNER) -v --namespace GnomeBluetooth --nsversion=1.0 \
58
--add-include-path=$(srcdir) --add-include-path=. \
59
--include=GObject-2.0 \
61
--include=DBusGLib-1.0 \
62
--include=GModule-2.0 \
63
--libtool="$(LIBTOOL)" \
64
--library=gnome-bluetooth \
71
$(LIBGNOMEBT_CFLAGS) \
72
$(gnomebluetooth_HEADERS)
77
dist_gir_DATA = $(BUILT_GIRSOURCES)
79
EXTRA_DIST += $(BUILT_GIRSOURCES)
81
typelibsdir = $(TYPELIBDIR)
82
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
84
%.typelib: %.gir $(G_IR_COMPILER)
85
LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F)
87
endif # HAVE_INTROSPECTION
89
BUILT_SOURCES = marshal.h marshal.c \
90
bluetooth-client-glue.h \
91
bluetooth-agent-glue.h \
93
gnome-bluetooth-enum-types.h \
94
gnome-bluetooth-enum-types.c
96
nodist_libcommon_la_SOURCES = $(BUILT_SOURCES)
98
CLEANFILES = $(BUILT_SOURCES)
100
noinst_PROGRAMS = test-client test-agent test-deviceselection test-plugins
102
test_client_LDADD = libcommon.la $(GTK_LIBS) $(DBUS_LIBS)
104
test_agent_LDADD = libcommon.la $(DBUS_LIBS)
106
test_deviceselection_LDADD = libgnome-bluetooth.la
108
test_plugins_LDADD = libcommon.la
110
EXTRA_DIST += marshal.list \
111
bluetooth-client.xml \
112
bluetooth-agent.xml \
114
gnome-bluetooth.symbols
116
MAINTAINERCLEANFILES = Makefile.in
118
marshal.h: marshal.list
119
$(GLIB_GENMARSHAL) --prefix=marshal $< --header > $@
121
marshal.c: marshal.list
122
$(GLIB_GENMARSHAL) --prefix=marshal $< --header --body > $@
124
bluetooth-client-glue.h: bluetooth-client.xml bluetooth-agent.h bluetooth-agent.c
125
$(DBUS_BINDING_TOOL) --prefix=bluetooth_client --mode=glib-client --output=$@ $<
127
bluetooth-agent-glue.h: bluetooth-agent.xml bluetooth-agent.h bluetooth-agent.c
128
$(DBUS_BINDING_TOOL) --prefix=bluetooth_agent --mode=glib-server --output=$@ $<
130
obex-agent-glue.h: obex-agent.xml
131
$(DBUS_BINDING_TOOL) --prefix=obex_agent --mode=glib-server --output=$@ $<
133
gnome_bluetooth_headers_to_scan_for_enums = bluetooth-enums.h
134
# Generate the enums source code, with glib-mkenums:
135
# This is based on the same Makefile.am stuff in pango:
136
gnome_bluetooth_built_headers = gnome-bluetooth-enum-types.h
137
gnome_bluetooth_built_cfiles = gnome-bluetooth-enum-types.c
139
# Don't build the library until we have built the header that it needs:
140
$(OBJECTS) $(libgnomevfs_2_la_OBJECTS): $(libgnomevfs_built_headers)
142
gnome-bluetooth-enum-types.h: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile
143
(cd $(srcdir) && glib-mkenums \
144
--fhead "#ifndef __GNOME_BLUETOOTH_ENUM_TYPES_H__\n#define __GNOME_BLUETOOTH_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
145
--fprod "/* enumerations from \"@filename@\" */\n" \
146
--vhead "GType @enum_name@_get_type (void);\n#define BLUETOOTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
147
--ftail "G_END_DECLS\n\n#endif /* __GNOME_BLUETOOTH_ENUM_TYPES_H__ */" \
148
$(gnome_bluetooth_headers_to_scan_for_enums)) > $@
150
gnome-bluetooth-enum-types.c: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile gnome-bluetooth-enum-types.h
151
(cd $(srcdir) && glib-mkenums \
152
--fhead "#include <bluetooth-enums.h>\n" \
153
--fhead "#include \"gnome-bluetooth-enum-types.h\"\n" \
154
--fhead "#include \"bluetooth-enums.h\"\n" \
155
--fhead "#include <glib-object.h>" \
156
--fprod "\n/* enumerations from \"@filename@\" */" \
157
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
158
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
159
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
160
$(gnome_bluetooth_headers_to_scan_for_enums)) > $@