[Omake] how to generate config.h files?
Jason Hickey
jyh at cs.caltech.edu
Fri Jul 14 08:45:43 PDT 2006
Erick Tryzelaar wrote:
> Hi all,
>
> Say I wanted to generate a config.h file similar to how the autotools
> does things. Is there an easy way to write this file out, or would I
> need to go through the file interface to manually write it out?
Hi Erick,
Do you mean for the built-in configure files? We haven't implemented a
mechanism for automatically generating a config.h from those
configurations, but it is a good idea. For now, it must be done manually,
config.h:
echo $"""\
#$(if $(FOO_ENABLED), define, undef) FOO_ENABLED
#define FOO $(FOO)""" > $@
But I think it would be nice to come up with a standard scheme for
generating these files.
Jason
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list