Build system: add include directories and dependencies for generators
authorRichard Levitte <levitte@openssl.org>
Thu, 21 Apr 2016 12:30:08 +0000 (14:30 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 25 Apr 2016 16:06:06 +0000 (18:06 +0200)
commit8d34daf0ce3bd2fc08dda0f1b0d1213dec452a1d
treebddf80d3549bba3a35ffabe413e4ec150f78528d
parent79356a83b78a2d936dcd022847465d9ebf6c67b1
Build system: add include directories and dependencies for generators

In the case of generating a file like this:

    GENERATE[foo.S]=mkfoo.pl arg1 arg2

the 'mkfoo.pl' generator itself might need to include other files,
such as perl modules within our source tree.  We can reuse already
existing syntax for it, like this:

    INCLUDE[mkfoo.pl]=module/path

or:

    DEPEND[mkfoo.pl]=modules/mymodule.pm

This change implements the support for such constructs, and for the
DEPEND statement, for any value that indicates a perl module (.pm
file), it will automatically infer an INCLUDE statement for its
directory, just like it does for C header files, so you won't have do
write this:

    DEPEND[mkfoo.pl]=modules/mymodule.pm
    INCLUDE[mkfoo.pl]=modules

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Configurations/common.tmpl
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure