On Sat, Jun 25, 2011 at 05:45:18PM +0100, Mans Rullgard wrote:
> This generates dependencies for the *-test.o files ensuring
> rebuilds when necessary.
> 
> --- a/subdir.mak
> +++ b/subdir.mak
> @@ -11,16 +11,17 @@ all-$(CONFIG_STATIC): $(SUBDIR)$(LIBNAME)
>  all-$(CONFIG_SHARED): $(SUBDIR)$(SLIBNAME)
>  
>  $(SUBDIR)%-test.o: $(SUBDIR)%-test.c
> -     $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^
> +     $(COMPILE_C)
>  
>  $(SUBDIR)%-test.o: $(SUBDIR)%.c
> -     $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $(CC_O) $^
> +     $(COMPILE_C)

This is OK pending a solution to the ECFLAGS issue from patch 1/2.

> -$(OBJS) $(SUBDIR)%.ho $(SUBDIR)%-test.o $(TESTOBJS): CPPFLAGS += 
> -DHAVE_AV_CONFIG_H
> +$(OBJS) $(SUBDIR)%.ho $(TESTOBJS): CPPFLAGS += -DHAVE_AV_CONFIG_H
> +$(TESTOBJS): CPPFLAGS += -DTEST

OK - and can be pushed anytime I think.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to