mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[build] conditionally build cli and ncp FTD/MTD/radio libs (#3067)
This commit is contained in:
+9
-4
@@ -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
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user