1 # SPDX-License-Identifier: GPL-2.0
3 #systemduserunitdir = @SYSTEMD_USERUNITDIR@
4 systemduserunitdir = $(SYSTEMD_SYSTEMUNITDIR)
5 systemduserunit_DATA = obexd/src/obex.service
7 #dbussessionbusdir = @DBUS_SESSIONBUSDIR@
8 dbussessionbusdir = @DBUS_SYSTEMBUSDIR@
9 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
12 EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
16 obex_plugindir = $(libdir)/obex/plugins
18 obexd_builtin_modules =
19 obexd_builtin_sources =
20 obexd_builtin_nodist =
22 obexd_builtin_modules += filesystem
23 obexd_builtin_sources += obexd/plugins/filesystem.c obexd/plugins/filesystem.h
25 obexd_builtin_modules += bluetooth
26 obexd_builtin_sources += obexd/plugins/bluetooth.c
29 obexd_builtin_modules += pcsuite
30 obexd_builtin_sources += obexd/plugins/pcsuite.c
33 obexd_builtin_modules += opp
34 obexd_builtin_sources += obexd/plugins/opp.c
36 obexd_builtin_modules += ftp
37 obexd_builtin_sources += obexd/plugins/ftp.c obexd/plugins/ftp.h
39 obexd_builtin_modules += irmc
40 obexd_builtin_sources += obexd/plugins/irmc.c
42 obexd_builtin_modules += pbap
43 obexd_builtin_sources += obexd/plugins/pbap.c \
44 obexd/plugins/vcard.h obexd/plugins/vcard.c \
45 obexd/plugins/phonebook.h \
46 obexd/plugins/phonebook-tizen.c
47 EXTRA_DIST += obexd/plugins/phonebook-dummy.c obexd/plugins/phonebook-ebook.c \
48 obexd/plugins/phonebook-tracker.c
50 obexd_builtin_modules += mas
51 obexd_builtin_sources += obexd/plugins/mas.c obexd/src/map_ap.h \
52 obexd/plugins/messages.h \
53 obexd/plugins/messages-tizen.c
55 obexd_builtin_modules += mns
56 obexd_builtin_sources += obexd/client/mns.c obexd/src/map_ap.h \
57 obexd/client/mns-tizen.c \
58 obexd/client/map-event.h
60 libexec_PROGRAMS += obexd/src/obexd
62 obexd_src_obexd_SOURCES = $(btio_sources) $(gobex_sources) \
63 $(obexd_builtin_sources) \
64 obexd/src/main.c obexd/src/obexd.h \
65 obexd/src/plugin.h obexd/src/plugin.c \
66 obexd/src/log.h obexd/src/log.c \
67 obexd/src/manager.h obexd/src/manager.c \
68 obexd/src/obex.h obexd/src/obex.c obexd/src/obex-priv.h \
69 obexd/src/mimetype.h obexd/src/mimetype.c \
70 obexd/src/service.h obexd/src/service.c \
71 obexd/src/transport.h obexd/src/transport.c \
72 obexd/src/server.h obexd/src/server.c \
73 obexd/client/manager.h obexd/client/manager.c \
74 obexd/client/session.h obexd/client/session.c \
75 obexd/client/bluetooth.h obexd/client/bluetooth.c \
76 obexd/client/sync.h obexd/client/sync.c \
77 obexd/client/pbap.h obexd/client/pbap.c \
78 obexd/client/ftp.h obexd/client/ftp.c \
79 obexd/client/opp.h obexd/client/opp.c \
80 obexd/client/map.h obexd/client/map.c \
81 obexd/client/map-event.h obexd/client/map-event.c \
82 obexd/client/transfer.h obexd/client/transfer.c \
83 obexd/client/transport.h obexd/client/transport.c \
84 obexd/client/driver.h obexd/client/driver.c \
86 obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
87 gdbus/libgdbus-internal.la \
88 $(ICAL_LIBS) $(DBUS_LIBS) $(GLIB_LIBS) \
89 @LIBXML_LIBS@ @INIPARSER_LIBS@ -ldl
91 obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
93 obexd_src_obexd_CPPFLAGS = $(AM_CPPLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
94 @LIBXML_CFLAGS@ @INIPARSER_CFLAGS@ \
95 $(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \
96 -DPLUGINDIR=\""$(obex_plugindir)"\" \
97 -D_FILE_OFFSET_BITS=64 \
98 -I$(builddir)/lib -I$(builddir)/obexd/src \
99 -I$(srcdir)/obexd/src -I$(srcdir)/btio \
100 -I$(srcdir)/gobex -I$(srcdir)/gdbus
102 obexd_src_obexd_CFLAGS = $(AMCFLAGS) -fPIC
106 obexd_src_obexd_SHORTNAME = obexd
108 obexd_builtin_files = obexd/src/builtin.h $(obexd_builtin_nodist)
110 nodist_obexd_src_obexd_SOURCES = $(obexd_builtin_files)
112 BUILT_SOURCES += obexd/src/builtin.h
114 obexd/src/plugin.$(OBJEXT): obexd/src/builtin.h
116 obexd/src/builtin.h: obexd/src/genbuiltin $(obexd_builtin_sources)
117 $(AM_V_at)$(MKDIR_P) $(dir $@)
118 $(AM_V_GEN)$(srcdir)/obexd/src/genbuiltin $(obexd_builtin_modules) > $@
120 CLEANFILES += obexd/src/builtin.h $(builtin_files) obexd/src/obex.service
122 EXTRA_DIST += obexd/src/genbuiltin