btpclient and bluetooth mesh fail to build on their own until
certain ELL and generated header files have been built, which
can cause a build to fail if derived objects are generated in
wrong order.
Change-Id: I4e50d13e8fbd2718cc6a1fc3ee6bef5db0d46e94
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/mesh-defs.h
libexec_PROGRAMS += mesh/bluetooth-meshd
-mesh_meshd_SOURCES = $(mesh_sources) mesh/main.c
-
-mesh_meshd_LDADD = src/shared/ecc.lo src/shared/queue.lo src/shared/io-ell.lo \
- src/shared/util.lo src/shared/hci.lo src/shared/mgmt.lo \
- @DBUS_LIBS@ @ELL_LIBS@ -ljson-c
+mesh/mesh.$(OBJEXT): ell/internal
+mesh/main.$(OBJEXT): src/builtin.h lib/bluetooth/bluetooth.h
mesh_bluetooth_meshd_SOURCES = $(mesh_sources) mesh/main.c
mesh_bluetooth_meshd_LDADD = src/libshared-ell.la $(ell_ldadd) -ljson-c