[FFmpeg-devel] [RFC] AES init
Rich Felker
dalias
Mon May 14 04:08:30 CEST 2007
On Sun, May 13, 2007 at 05:49:09PM -0700, Trent Piepho wrote:
> > I like it! As usual, Michael has a great solution! Now write the
> > script to compile and run the program to generate the static table and
> > update the C source file. :)
>
> If you stick each table in its own header file, it's easy to write a C
> program that generates the header, and have make automatically run the
> program to create the table.
>
> Simplified makefile:
>
> aes.h: table-foo.h
>
> table-foo.h: make-foo
> make-foo > table-foo.h
>
> make-foo: make-foo.c
> $(HOSTCC) make-foo.c -o make-foo # HOSTCC, for cross compiling
>
> It's especially useful if the contents of the table itself are being
> developed.
One issue: the table should be kept in the repo/tarball even if it's
generated because this won't work when cross-compiling. Or at least
you need a more elaborate build process with both CC and HOSTCC if you
want to support cross-compiling.
Rich
More information about the ffmpeg-devel
mailing list