[FFmpeg-devel] [PATCH] Automatically generate ac3enc_data.h
Sat Jan 12 17:31:00 CET 2008
Diego 'Flameeyes' Petten? wrote:
> It's not the nicest thing out there, but it should work...
> +%-gentables: %_tables.c
> + $(CC) $(CFLAGS) -DGENTABLES -o $@ $^ $(EXTRALIBS)
$(CC) is the TARGET compiler. You can't use it to compile binary that
must be run on HOST. (you cross-compiling...)
Now that I think about it, it could be better to keep the ac3enc_data.h
file in the repository, and have a `make gentable` target which would
force tables re-building.
That way, normal compilation would be exactly the same as now (no need
for a different HOST and TARGET compiler, etc...), and tables can still
be re-built automatically when a developer want to change a table
(in this specific situation, you may assume that HOST==TARGET, and
thus, don't care about cross-compilation).
More information about the ffmpeg-devel