Makefile.conf
branchENGINE-261
changeset 2083 361a6dc2c075
parent 2081 1593ebbb7f31
child 2086 a2fdd84d9f95
     1.1 --- a/Makefile.conf	Wed Sep 20 17:53:25 2017 +0200
     1.2 +++ b/Makefile.conf	Thu Sep 21 15:29:14 2017 +0200
     1.3 @@ -4,9 +4,13 @@
     1.4  # see LICENSE.txt
     1.5  
     1.6  # This file gives an overview over all the parameters that can be easily customized for a build.
     1.7 -# If you want to customized the build configuration without making the working copy unclean, create an addional makefile at `local.conf`.
     1.8 -# `local.conf` will be included at the end of this file, and thus allows overriding any of the variables here.
     1.9 -# If nothing is changed here (or in `local.conf`) a default configuration for your platform will be used.
    1.10 +# There are three ways in which you can customize your build:
    1.11 +# 1) Edit the variable assignments in this file
    1.12 +# 2) Create `local.conf` and fill it with variable assignments.
    1.13 +#    These `local.conf` takes precedence over the assignments below.
    1.14 +# 3) Set the environment variable `BUILD_CONFIG` to an absolute path.
    1.15 +#    The variable assignments found at the path indicated by `BUILD_CONFIG` take precedence over the assignments below and the assignments in `local.conf`.
    1.16 +# If nothing is changed according to these 3 methods, a default configuration for your platform will be used for the build.
    1.17  
    1.18  HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
    1.19  
    1.20 @@ -68,7 +72,8 @@
    1.21  ifeq ($(BUILD_FOR),Linux)
    1.22      CC=gcc -std=c99 -pthread
    1.23  else ifeq ($(BUILD_FOR),Darwin)
    1.24 -    # clang issues a warning when "-pthread" is used for linking. So, include it in CFLAGS, and not in CC
    1.25 +    # clang issues a warning when "-pthread" is used for linking.
    1.26 +    # So, include it in CFLAGS, and not in CC
    1.27      CC=clang -std=c99
    1.28  endif
    1.29  
    1.30 @@ -109,7 +114,11 @@
    1.31  
    1.32  # Additional CFLAGS used for compiling ASN1C-generated code
    1.33  ifeq ($(BUILD_FOR),Linux)
    1.34 -    # The '_DEFAULT_SOURCE' feature test macro is required to suppress the warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" otherwise printed during the compilation of every asn1c-generated C file. It's a glibc specific warning, only present in few versions around ~2.19. See https://lwn.net/Articles/590381/ for a discussion.
    1.35 +    # The '_DEFAULT_SOURCE' feature test macro is required to suppress the warning
    1.36 +    #   _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE
    1.37 +    # otherwise printed during the compilation of every asn1c-generated C file.
    1.38 +    # It's a glibc specific warning, only present in few versions around ~2.19.
    1.39 +    # See https://lwn.net/Articles/590381/ for a discussion.
    1.40      CFLAGS_GENERATED=-D_DEFAULT_SOURCE
    1.41  else ifeq ($(BUILD_FOR),Darwin)
    1.42      CFLAGS_GENERATED=
    1.43 @@ -236,4 +245,8 @@
    1.44  #LLDB_BIN
    1.45  
    1.46  
    1.47 --include HERE/local.conf
    1.48 \ No newline at end of file
    1.49 +-include HERE/local.conf
    1.50 +
    1.51 +ifdef BUILD_CONF
    1.52 +    -include $(BUILD_CONF)
    1.53 +endif