X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=subdir.mak;h=36a40d375a5da6045fb6f8419381454c289b2f2c;hb=c184bb44db00e524b273eca4e0cc3138fd945713;hp=68850c80ba566969a845ca00a811cb5d27730e1c;hpb=0147b92ea55999730b53db8a591ee068b8360f39;p=ffmpeg diff --git a/subdir.mak b/subdir.mak index 68850c80ba5..36a40d375a5 100644 --- a/subdir.mak +++ b/subdir.mak @@ -4,71 +4,98 @@ include $(SUBDIR)../common.mak LIBVERSION := $(lib$(NAME)_VERSION) LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) +INCINSTDIR := $(INCDIR)/lib$(NAME) +THIS_LIB := $(SUBDIR)$($(CONFIG_SHARED:yes=S)LIBNAME) + +all-$(CONFIG_STATIC): $(SUBDIR)$(LIBNAME) +all-$(CONFIG_SHARED): $(SUBDIR)$(SLIBNAME) + +$(SUBDIR)%-test.o: $(SUBDIR)%.c + $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^ + +$(SUBDIR)%-test.o: $(SUBDIR)%-test.c + $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^ -ifeq ($(BUILD_STATIC),yes) -all: $(SUBDIR)$(LIBNAME) +$(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm + $(YASMDEP) $(YASMFLAGS) -I $( $(@:.o=.d) + $(YASM) $(YASMFLAGS) -I $(