Skip to content
  • Thomas Haller's avatar
    build: create "config-extra.h" header instead of passing directory variables via CFLAGS · a75ab799
    Thomas Haller authored
    1) the command line gets shorter. I frequently run `make V=1` to see
       the command line arguments for the compiler, and there is a lot
       of noise.
    
    2) define each of these variables at one place. This makes it easy
       to verify that for all compilation units, a particular
       define has the same value. Previously that was not obvious or
       even not the case (see commit e5d1a713
       and commit d63cf1ef).
       The point is to avoid redundancy.
    
    3) not all compilation units need all defines. In fact, most modules
       would only need a few of these defines. We aimed to pass the necessary
       minium of defines to each compilation unit, but that was non-obvious
       to get right and often we set a define that wasn't used. See for example
       "src_settings_plugins_ibft_cppflags" which needlessly had "-DSYSCONFDIR".
       This question is now entirely avoided by just defini...
    a75ab799