improve VERBOSE handling
[olsrd.git] / lib / txtinfo / Makefile
index 63c2920..a2fa16a 100644 (file)
@@ -46,8 +46,10 @@ include $(TOPDIR)/Makefile.inc
 default_target: $(PLUGIN_FULLNAME)
 
 $(PLUGIN_FULLNAME): $(OBJS) version-script.txt
+ifeq ($(VERBOSE),0)
                @echo "[LD] $@"
-               @$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
+endif
+               $(MAKECMDPREFIX)$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
 
 install:       $(PLUGIN_FULLNAME)
                $(STRIP) $(PLUGIN_FULLNAME)