[FFmpeg-devel] [PATCH] tablegen: the executable depends on tablegen headers as well

Måns Rullgård mans
Fri Jul 2 02:06:31 CEST 2010


Diego Elio 'Flameeyes' Petten? <flameeyes at gmail.com> writes:

> Make sure that the *_tablegen.h header is listed in the dependencies, but
> filter it out in the compile line.
> ---
>  libavcodec/Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/Makefile b/libavcodec/Makefile
> index 8184e18..c1cb1e0 100644
> --- a/libavcodec/Makefile
> +++ b/libavcodec/Makefile
> @@ -652,8 +652,8 @@ else
>  $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0
>  endif
>
> -$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c
> -	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS)
> +$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)%_tablegen.h $(SUBDIR)tableprint.c
> +	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(filter %.c,$^) $(HOSTLIBS)
>
>  $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
>  	$(M)./$< > $@
> -- 
> 1.7.1.1

OK

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list