Remove superflous ifdef CONFIG_{STATIC,SHARED} in makefiles
Originally committed as revision 22396 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -22,12 +22,10 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
|
|||||||
|
|
||||||
$(OBJS) $(SUBDIR)%.ho $(SUBDIR)%-test.o $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
|
$(OBJS) $(SUBDIR)%.ho $(SUBDIR)%-test.o $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
|
||||||
|
|
||||||
ifdef CONFIG_STATIC
|
|
||||||
$(SUBDIR)$(LIBNAME): $(OBJS)
|
$(SUBDIR)$(LIBNAME): $(OBJS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
$(AR) rc $@ $^ $(EXTRAOBJS)
|
$(AR) rc $@ $^ $(EXTRAOBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
endif
|
|
||||||
|
|
||||||
install-headers: install-lib$(NAME)-headers install-lib$(NAME)-pkgconfig
|
install-headers: install-lib$(NAME)-headers install-lib$(NAME)-pkgconfig
|
||||||
|
|
||||||
@ -47,7 +45,6 @@ distclean:: clean
|
|||||||
$(RM) $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
|
$(RM) $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
|
||||||
$(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
|
$(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
|
||||||
|
|
||||||
ifdef CONFIG_SHARED
|
|
||||||
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
|
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
|
||||||
$(Q)cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)
|
$(Q)cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)
|
||||||
|
|
||||||
@ -59,7 +56,6 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver
|
|||||||
ifdef SUBDIR
|
ifdef SUBDIR
|
||||||
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(DEP_LIBS)
|
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(DEP_LIBS)
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
|
install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
|
||||||
$(Q)mkdir -p "$(SHLIBDIR)"
|
$(Q)mkdir -p "$(SHLIBDIR)"
|
||||||
|
Reference in New Issue
Block a user