@ -1215,7 +1215,8 @@ $(OBJDIR)/$(CONFIG)/${os.path.splitext(src)[0]}.o: ${' '.join(proto_to_cc(src2)
% e n d f o r
< / % d e f >
< % d e f name = "maketarget(tgt)" >
< % d e f name = "maketarget(tgt)" ><% has_no_sources = not tgt.src %>
% if not has_no_sources :
${tgt.name.upper()}_SRC = \\
% for src in tgt.src :
@ -1224,7 +1225,7 @@ ${tgt.name.upper()}_SRC = \\
% e n d f o r
${tgt.name.upper()}_OBJS = $( addprefix $( OBJDIR) /$( CONFIG) /, $( addsuffix .o, $( basename $( ${ tgt .name.upper() } _SRC) ) ) )
% e n d i f
% if tgt.get('secure', 'check') == 'yes' or tgt.get('secure', 'check') == 'check' :
i f e q ( $( NO_SECURE ) , t r u e )
@ -1254,9 +1255,15 @@ $(BINDIR)/$(CONFIG)/${tgt.name}: protobuf_dep_error
e l s e
$(BINDIR)/$(CONFIG)/${tgt.name} : $( PROTOBUF_DEP ) $( $ {tgt .name .upper ( ) }_OBJS ) \
$(BINDIR)/$(CONFIG)/${tgt.name} : \
% if not has_no_sources :
$( PROTOBUF_DEP ) $( $ {tgt .name .upper ( ) }_OBJS ) \
% e n d i f
% else :
$(BINDIR)/$(CONFIG)/${tgt.name} : $( $ {tgt .name .upper ( ) }_OBJS ) \
$(BINDIR)/$(CONFIG)/${tgt.name} : \
% if not has_no_sources :
$( $ {tgt .name .upper ( ) }_OBJS ) \
% e n d i f
% e n d i f
% for dep in tgt.deps :
$( LIBDIR) /$( CONFIG) /lib${ dep } .a\
@ -1267,17 +1274,26 @@ $(BINDIR)/$(CONFIG)/${tgt.name}: $(${tgt.name.upper()}_OBJS)\
% if tgt.build == 'protoc' :
$( E) " [HOSTLD] Linking $@ "
$( Q) mkdir -p ` dirname $@ `
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) $( ${ tgt .name.upper() } _OBJS) \
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) \
% if not has_no_sources :
$( $ {tgt .name .upper ( ) }_OBJS ) \
% e n d i f
% else :
$( E) " [LD] Linking $@ "
$( Q) mkdir -p ` dirname $@ `
$( Q) $( LDXX) $( LDFLAGS) $( ${ tgt .name.upper() } _OBJS) \
$( Q) $( LDXX) $( LDFLAGS) \
% if not has_no_sources :
$( $ {tgt .name .upper ( ) }_OBJS ) \
% e n d i f
% e n d i f
% else :
## C-only targets specificities.
$( E) " [LD] Linking $@ "
$( Q) mkdir -p ` dirname $@ `
$( Q) $( LD) $( LDFLAGS) $( ${ tgt .name.upper() } _OBJS) \
$( Q) $( LD) $( LDFLAGS) \
% if not has_no_sources :
$( $ {tgt .name .upper ( ) }_OBJS ) \
% e n d i f
% e n d i f
% for dep in tgt.deps :
$( LIBDIR) /$( CONFIG) /lib${ dep } .a\
@ -1319,9 +1335,11 @@ $(OBJDIR)/$(CONFIG)/${os.path.splitext(src)[0]}.o: \
% e n d f o r
% e n d f o r
% if not has_no_sources :
deps_${tgt.name} : $( $ {tgt .name .upper ( ) }_OBJS :.o =.dep )
% e n d i f
% if not has_no_sources :
% if tgt.get('secure', 'check') == 'yes' or tgt.get('secure', 'check') == 'check' :
i f n e q ( $( NO_SECURE ) , t r u e )
% e n d i f
@ -1331,6 +1349,7 @@ endif
% if tgt.get('secure', 'check') == 'yes' or tgt.get('secure', 'check') == 'check' :
e n d i f
% e n d i f
% e n d i f
< / % d e f >
i f n e q ( $( OPENSSL_DEP ) , )