Build: Make it possible to have defines assigned to end products as well
authorRichard Levitte <levitte@openssl.org>
Fri, 2 Nov 2018 12:08:38 +0000 (13:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 5 Nov 2018 07:13:05 +0000 (08:13 +0100)
commit7b34f0fa5d060409be1fb5165ef29e5a159b1e33
tree88c3ee121f1bd02cac650f72c4d3677de188fc05
parent0a37ff4dcaf7da498355dfe9a1672905ac5496a5
Build: Make it possible to have defines assigned to end products as well

This simple fix allows the following construct:

    PROGRAMS=foo
    SOURCE[foo]=foo.c bar.c
    DEFINE[foo]=FOO=1 BAR=0

These will trickle down to the build of object files, so building
foo.o and bar.o will be done with these options: -DFOO=1 -DBAR=0
(exact syntax depending on platform, of course)

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7553)
Configurations/common.tmpl