Merge branch 'meshd_integrate' into tizen
[platform/upstream/bluez.git] / Makefile.mesh
1 if MESH
2
3 if DATAFILES
4 dbus_DATA += mesh/bluetooth-mesh.conf
5 endif
6
7 if SYSTEMD
8 systemdsystemunit_DATA += mesh/bluetooth-mesh.service
9 dbussystembus_DATA += mesh/org.bluez.mesh.service
10 endif
11
12 mesh_sources = mesh/mesh.h mesh/mesh.c \
13                                 mesh/net-keys.h mesh/net-keys.c \
14                                 mesh/mesh-io.h mesh/mesh-io.c \
15                                 mesh/mesh-mgmt.c mesh/mesh-mgmt.h \
16                                 mesh/error.h mesh/mesh-io-api.h \
17                                 mesh/mesh-io-generic.h \
18                                 mesh/mesh-io-generic.c \
19                                 mesh/net.h mesh/net.c \
20                                 mesh/crypto.h mesh/crypto.c \
21                                 mesh/friend.h mesh/friend.c \
22                                 mesh/appkey.h mesh/appkey.c \
23                                 mesh/node.h mesh/node.c \
24                                 mesh/provision.h mesh/prov.h \
25                                 mesh/model.h mesh/model.c \
26                                 mesh/cfgmod.h mesh/cfgmod-server.c \
27                                 mesh/mesh-config.h mesh/mesh-config-json.c \
28                                 mesh/util.h mesh/util.c \
29                                 mesh/dbus.h mesh/dbus.c \
30                                 mesh/agent.h mesh/agent.c \
31                                 mesh/prov-acceptor.c mesh/prov-initiator.c \
32                                 mesh/manager.h mesh/manager.c \
33                                 mesh/pb-adv.h mesh/pb-adv.c \
34                                 mesh/keyring.h mesh/keyring.c \
35                                 mesh/mesh-defs.h
36 libexec_PROGRAMS += mesh/bluetooth-meshd
37
38 mesh/mesh.$(OBJEXT): ell/internal
39 mesh/main.$(OBJEXT): src/builtin.h lib/bluetooth/bluetooth.h
40
41 mesh_bluetooth_meshd_SOURCES = $(mesh_sources) mesh/main.c
42 mesh_bluetooth_meshd_LDADD = src/libshared-ell.la $(ell_ldadd) -ljson-c
43 mesh_bluetooth_meshd_DEPENDENCIES = $(ell_dependencies) src/libshared-ell.la \
44                                 mesh/bluetooth-mesh.service
45
46 EXTRA_DIST += mesh/bluetooth-mesh.conf mesh/bluetooth-mesh.service.in \
47                         mesh/org.bluez.mesh.service mesh/mesh-main.conf
48
49 CLEANFILES += mesh/bluetooth-mesh.service
50
51 endif