build: do not append $(FFLIBS-) to $(FFLIBS) if $(NAME) is not defined
authorJanne Grunau <janne-libav@jannau.net>
Tue, 13 May 2014 22:05:27 +0000 (00:05 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Wed, 14 May 2014 07:46:43 +0000 (09:46 +0200)
Avoids including disabled library Makefiles.

common.mak

index cdcdc8a..c17b5bf 100644 (file)
@@ -8,7 +8,7 @@ all: all-yes
 include $(SRC_PATH)/arch.mak
 
 OBJS      += $(OBJS-yes)
-FFLIBS    := $(FFLIBS-$(NAME)) $(FFLIBS-yes) $(FFLIBS)
+FFLIBS    := $(FFLIBS-$(if $(NAME),$(NAME),no)) $(FFLIBS-yes) $(FFLIBS)
 TESTPROGS += $(TESTPROGS-yes)
 
 LDLIBS       = $(FFLIBS:%=%$(BUILDSUF))