summaryrefslogtreecommitdiff
path: root/tools/makefile.py
diff options
context:
space:
mode:
authorsszlbg <[email protected]>2021-07-25 17:00:00 +0800
committersszlbg <[email protected]>2021-07-25 17:00:00 +0800
commitbf88963a3ec85ce6da013e4cd1c59ec5041d29e1 (patch)
treed4cd7d4fa3ff6e7b0c859a7660209787f47d168b /tools/makefile.py
parent88d4faf68735948d6310e2d2271d576c5de254a0 (diff)
parent2b201cbb00c512def085332d7fb09194656418b9 (diff)
Merge branch 'master' into at_client-rt_realloc_iss
# Conflicts: # components/net/at/src/at_client.c
Diffstat (limited to 'tools/makefile.py')
-rw-r--r--tools/makefile.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/makefile.py b/tools/makefile.py
index 655e294575..97001892c9 100644
--- a/tools/makefile.py
+++ b/tools/makefile.py
@@ -51,6 +51,14 @@ def TargetMakefile(env):
if 'CXXFLAGS' in dir(rtconfig):
make.write('CXXFLAGS :=%s' % (rtconfig.CXXFLAGS))
make.write('\n')
+ if env.has_key('LIBS'):
+ make.write('EXTERN_LIB := ')
+ for tlib in env['LIBS']:
+ make.write('-l%s ' % (tlib))
+ if env.has_key('LIBPATH'):
+ for tlibpath in env['LIBPATH']:
+ make.write('-L%s ' % (tlibpath))
+ make.write('\n')
make.write('\n')