Do not use the pts/dts calculation code which needs a parser, when no parser
[ffmpeg.git] / subdir.mak
index 6384d8baf88350e144af03829ed53cd1ce7e63b6..68850c80ba566969a845ca00a811cb5d27730e1c 100644 (file)
@@ -19,7 +19,7 @@ endif
 INCINSTDIR := $(INCDIR)/lib$(NAME)
 
 define RULES
-ifeq ($(BUILD_SHARED),yes)
+ifdef BUILD_SHARED
 all: $(SUBDIR)$(SLIBNAME)
 
 install-libs: install-lib$(NAME)-shared
@@ -32,9 +32,8 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS)
        $(CC) $(SHFLAGS) $(FFLDFLAGS) -o $$@ $$^ $(FFEXTRALIBS) $(EXTRAOBJS)
        $(SLIB_EXTRA_CMD)
 
-ifneq ($(SUBDIR),)
-$(SUBDIR)$(SLIBNAME_WITH_MAJOR): \
-    $(foreach L,$(FFLIBS),lib$(L)/$(SLIBPREF)$(L)$(SLIBSUF))
+ifdef SUBDIR
+$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(DEP_LIBS)
 endif
 endif