Makefile.conf
author Damiano Boppart <damiano@pep-security.net>
Sun, 13 Aug 2017 02:22:03 +0200
branchENGINE-228
changeset 1953 e9f2e628cc12
parent 1942 f734d5bd851a
child 1958 433df9ee336d
permissions -rw-r--r--
Split platform-specific parts of Makefile.conf into separate files
     1 # Copyright 2017, pEp Security SA
     2 # This file is part of pEpEngine
     3 # This file may be used under the terms of the GNU General Public License version 3
     4 # see LICENSE.txt
     5 
     6 # To use custom build configuration variables, put them in a new file at `build-config/<name>.conf`. Execute `export PLATFORM_OVERRIDE=<name>` before running make. If this environment variable is not set, make will load a default configuration for your platform.
     7 
     8 BUILD_CONFIG=build-config
     9 
    10 include $(BUILD_CONFIG)/common.conf
    11 ifdef PLATFORM_OVERRIDE
    12     include $(BUILD_CONFIG)/$(PLATFORM_OVERRIDE).conf
    13 # cross-compiling is currently not supported, but maybe you can hack something with `PLATFORM_OVERRIDE`
    14 else ifeq ($(BUILD_ON),$(BUILD_FOR))
    15     include $(BUILD_CONFIG)/$(BUILD_ON).conf
    16 else
    17     $(error I don't know how to build for $(BUILD_FOR) on $(BUILD_ON))
    18 endif