[build] conditionally build cli and ncp FTD/MTD/radio libs (#3067)

This commit is contained in:
Jonathan Hui
2018-09-12 20:17:17 -10:00
committed by GitHub
parent 5c08fb8e3b
commit 39cd92c743
2 changed files with 21 additions and 9 deletions
+9 -4
View File
@@ -108,10 +108,15 @@ include $(abs_top_nlbuild_autotools_dir)/automake/pre.am
# Unless and until these libraries do not "accidently" suck in
# a "flavored" header file somewhere.
lib_LIBRARIES = \
libopenthread-cli-mtd.a \
libopenthread-cli-ftd.a \
$(NULL)
lib_LIBRARIES = $(NULL)
if OPENTHREAD_ENABLE_FTD
lib_LIBRARIES += libopenthread-cli-ftd.a
endif
if OPENTHREAD_ENABLE_MTD
lib_LIBRARIES += libopenthread-cli-mtd.a
endif
CPPFLAGS_COMMON = \
-I$(top_srcdir)/include \
+12 -5
View File
@@ -34,12 +34,19 @@ EXTRA_DIST = \
# Pull in the sources that comprise the OpenThread NCP library.
lib_LIBRARIES = \
libopenthread-ncp-mtd.a \
libopenthread-ncp-ftd.a \
libopenthread-ncp-radio.a \
$(NULL)
lib_LIBRARIES = $(NULL)
if OPENTHREAD_ENABLE_FTD
lib_LIBRARIES += libopenthread-ncp-ftd.a
endif
if OPENTHREAD_ENABLE_MTD
lib_LIBRARIES += libopenthread-ncp-mtd.a
endif
if OPENTHREAD_ENABLE_RADIO_ONLY
lib_LIBRARIES += libopenthread-ncp-radio.a
endif
COMMON_CPPFLAGS = \
-I$(top_srcdir)/include \