summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a8f97e49db3a40a76f7887159ac700c38915cb51 (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
AM_CPPFLAGS = $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS)
AM_LDFLAGS = $(GLIB_LIBS) $(DBUS_GLIB_LIBS)

# Marshallers generation
#BUILT_SOURCES = lib/marshallers.c lib/marshallers.h
#GENMARSHAL_FLAGS = --prefix="g_cclosure_bt_marshal" --g-fatal-warnings
#
#lib/marshallers.h: lib/marshallers.list
#			glib-genmarshal $(GENMARSHAL_FLAGS) --header lib/marshallers.list > lib/marshallers.h
#
#lib/marshallers.c: lib/marshallers.list
#			glib-genmarshal $(GENMARSHAL_FLAGS) --body lib/marshallers.list > lib/marshallers.c

bluez_sources = lib/bluez/adapter.c lib/bluez/adapter.h \
		lib/bluez/agent.c lib/bluez/agent.h \
		lib/bluez/audio.c lib/bluez/audio.h \
		lib/bluez/device.c lib/bluez/device.h \
		lib/bluez/input.c lib/bluez/input.h \
		lib/bluez/manager.c lib/bluez/manager.h \
		lib/bluez/network.c lib/bluez/network.h \
		lib/bluez/network_server.c lib/bluez/network_server.h \
		lib/bluez/serial.c lib/bluez/serial.h

if OBEX
obexd_sources = lib/obexd/obexagent.c lib/obexd/obexagent.h \
		lib/obexd/obexclient.c lib/obexd/obexclient.h \
		lib/obexd/obexclient_file_transfer.c lib/obexd/obexclient_file_transfer.h \
		lib/obexd/obexclient_session.c lib/obexd/obexclient_session.h \
		lib/obexd/obexclient_transfer.c lib/obexd/obexclient_transfer.h \
		lib/obexd/obexmanager.c lib/obexd/obexmanager.h \
		lib/obexd/obexsession.c lib/obexd/obexsession.h \
		lib/obexd/obextransfer.c lib/obexd/obextransfer.h
else
obexd_sources =
endif

lib_sources = 	lib/marshallers.c lib/marshallers.h \
		lib/dbus-common.c lib/dbus-common.h \
		lib/helpers.c lib/helpers.h \
		lib/sdp.c lib/sdp.h \
		lib/bluez-api.h

if OBEX
lib_sources += lib/obexd-api.h
endif

bin_PROGRAMS = bt-monitor bt-adapter bt-agent bt-device bt-input bt-audio bt-network bt-serial
bt_monitor_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-monitor.c
bt_adapter_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-adapter.c
bt_agent_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-agent.c
bt_device_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-device.c
bt_input_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-input.c
bt_audio_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-audio.c
bt_network_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-network.c
bt_serial_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-serial.c

if OBEX
bin_PROGRAMS += bt-obex
bt_obex_SOURCES = $(lib_sources) $(bluez_sources) $(obexd_sources) bt-obex.c
bt_obex_LDADD = $(LIBREADLINE)
endif

dist_man_MANS = bt-monitor.1 bt-adapter.1 bt-agent.1 bt-device.1 bt-input.1 bt-audio.1 bt-network.1 bt-serial.1
if OBEX
dist_man_MANS += bt-obex.1
endif

#CLEANFILES =	lib/marshallers.c lib/marshallers.h