[[]]
TARGET = {{targets[0]['NAME']}}
-[[ExpandDict('DEPS', targets[0].get('DEPS', []))]]
-[[ExpandDict('LIBS', targets[0].get('LIBS', []), pre_list=['$(DEPS)'])]]
+[[if sel_ldr and targets[0].get('SEL_LDR_LIBS'):]]
+ifdef SEL_LDR
+[[ ExpandDict('DEPS', targets[0].get('SEL_LDR_DEPS', []))]]
+[[ ExpandDict('LIBS', targets[0].get('SEL_LDR_LIBS', []))]]
+else
+[[ ExpandDict('DEPS', targets[0].get('DEPS', []))]]
+[[ ExpandDict('LIBS', targets[0].get('LIBS', []))]]
+endif
+[[else:]]
+[[ ExpandDict('DEPS', targets[0].get('DEPS', []))]]
+[[ ExpandDict('LIBS', targets[0].get('LIBS', []))]]
+[[]]
[[for target in targets:]]
[[ source_list = (s for s in sorted(target['SOURCES']) if not s.endswith('.h'))]]